|
|
|
@ -4,6 +4,7 @@
|
|
|
|
|
|
|
|
|
|
# Start FROM PyTorch image https://hub.docker.com/r/pytorch/pytorch or nvcr.io/nvidia/pytorch:23.03-py3
|
|
|
|
|
FROM pytorch/pytorch:2.0.0-cuda11.7-cudnn8-runtime
|
|
|
|
|
RUN pip install --no-cache nvidia-tensorrt --index-url https://pypi.ngc.nvidia.com
|
|
|
|
|
|
|
|
|
|
# Downloads to user config dir
|
|
|
|
|
ADD https://ultralytics.com/assets/Arial.ttf https://ultralytics.com/assets/Arial.Unicode.ttf /root/.config/Ultralytics/
|
|
|
|
@ -29,7 +30,7 @@ ADD https://github.com/ultralytics/assets/releases/download/v0.0.0/yolov8n.pt /u
|
|
|
|
|
|
|
|
|
|
# Install pip packages
|
|
|
|
|
RUN python3 -m pip install --upgrade pip wheel
|
|
|
|
|
RUN pip install --no-cache -e . albumentations comet tensorboard thop pycocotools
|
|
|
|
|
RUN pip install --no-cache -e . albumentations comet thop pycocotools onnx onnx-simplifier onnxruntime-gpu
|
|
|
|
|
|
|
|
|
|
# Set environment variables
|
|
|
|
|
ENV OMP_NUM_THREADS=1
|
|
|
|
|