1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- FROM pytorch/pytorch:2.0.1-cuda11.7-cudnn8-runtime
- RUN pip install --no-cache nvidia-tensorrt --index-url https://pypi.ngc.nvidia.com
- ADD https://ultralytics.com/assets/Arial.ttf https://ultralytics.com/assets/Arial.Unicode.ttf /root/.config/Ultralytics/
- RUN apt update \
- && apt install --no-install-recommends -y gcc git zip curl htop libgl1-mesa-glx libglib2.0-0 libpython3-dev gnupg g++ libusb-1.0-0
- RUN apt upgrade --no-install-recommends -y openssl tar
- WORKDIR /usr/src/ultralytics
- RUN git clone https://github.com/ultralytics/ultralytics /usr/src/ultralytics
- ADD https://github.com/ultralytics/assets/releases/download/v0.0.0/yolov8n.pt /usr/src/ultralytics/
- RUN python3 -m pip install --upgrade pip wheel
- RUN pip install --no-cache -e ".[export]" thop albumentations comet pycocotools
- RUN yolo export model=tmp/yolov8n.pt format=edgetpu imgsz=32
- RUN yolo export model=tmp/yolov8n.pt format=ncnn imgsz=32
- RUN pip install --no-cache paddlepaddle==2.4.2 x2paddle
- RUN pip install --no-cache numpy==1.23.5
- RUN rm -rf tmp
- ENV OMP_NUM_THREADS=1
- ENV MKL_THREADING_LAYER=GNU
|