|
|
|
@ -23,8 +23,8 @@ RUN apt upgrade --no-install-recommends -y openssl tar |
|
|
|
|
WORKDIR /usr/src/ultralytics |
|
|
|
|
|
|
|
|
|
# Copy contents |
|
|
|
|
# COPY . /usr/src/app (issues as not a .git directory) |
|
|
|
|
RUN git clone https://github.com/ultralytics/ultralytics /usr/src/ultralytics |
|
|
|
|
# COPY . /usr/src/ultralytics # git permission issues inside container |
|
|
|
|
RUN git clone https://github.com/ultralytics/ultralytics -b main /usr/src/ultralytics |
|
|
|
|
ADD https://github.com/ultralytics/assets/releases/download/v0.0.0/yolov8n.pt /usr/src/ultralytics/ |
|
|
|
|
|
|
|
|
|
# Install pip packages |
|
|
|
@ -34,9 +34,9 @@ RUN pip install --no-cache -e ".[export]" thop albumentations comet pycocotools |
|
|
|
|
# Run exports to AutoInstall packages |
|
|
|
|
RUN yolo export model=tmp/yolov8n.pt format=edgetpu imgsz=32 |
|
|
|
|
RUN yolo export model=tmp/yolov8n.pt format=ncnn imgsz=32 |
|
|
|
|
# Requires <= Python 3.10, bug with paddlepaddle==2.5.0 |
|
|
|
|
# Requires <= Python 3.10, bug with paddlepaddle==2.5.0 https://github.com/PaddlePaddle/X2Paddle/issues/991 |
|
|
|
|
RUN pip install --no-cache paddlepaddle==2.4.2 x2paddle |
|
|
|
|
# Fix error: `np.bool` was a deprecated alias for the builtin `bool` |
|
|
|
|
# Fix error: `np.bool` was a deprecated alias for the builtin `bool` segmentation error in Tests |
|
|
|
|
RUN pip install --no-cache numpy==1.23.5 |
|
|
|
|
# Remove exported models |
|
|
|
|
RUN rm -rf tmp |
|
|
|
|