You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

Dockerfile 802 B

2 years ago
123456789101112131415161718192021222324
  1. ARG PYTORCH="1.6.0"
  2. ARG CUDA="10.1"
  3. ARG CUDNN="7"
  4. FROM pytorch/pytorch:${PYTORCH}-cuda${CUDA}-cudnn${CUDNN}-devel
  5. ENV TORCH_CUDA_ARCH_LIST="6.0 6.1 7.0+PTX"
  6. ENV TORCH_NVCC_FLAGS="-Xfatbin -compress-all"
  7. ENV CMAKE_PREFIX_PATH="$(dirname $(which conda))/../"
  8. RUN apt-get update && apt-get install -y ffmpeg libsm6 libxext6 git ninja-build libglib2.0-0 libsm6 libxrender-dev libxext6 \
  9. && apt-get clean \
  10. && rm -rf /var/lib/apt/lists/*
  11. # Install MMCV
  12. RUN pip install mmcv-full==1.3.14 -f https://download.openmmlab.com/mmcv/dist/cu101/torch1.6.0/index.html
  13. # Install MMDetection
  14. RUN conda clean --all
  15. RUN git clone https://github.com/open-mmlab/mmdetection.git /mmdetection
  16. WORKDIR /mmdetection
  17. ENV FORCE_CUDA="1"
  18. RUN pip install -r requirements/build.txt
  19. RUN pip install --no-cache-dir -e .

No Description

Contributors (3)