File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 11ARG PYTORCH="1.6.0"
22ARG CUDA="10.1"
33ARG CUDNN="7"
4+ ARG MMCV="1.3.12"
45
56FROM pytorch/pytorch:${PYTORCH}-cuda${CUDA}-cudnn${CUDNN}-devel
67
@@ -12,11 +13,17 @@ RUN apt-get update && apt-get install -y git ninja-build libglib2.0-0 libsm6 lib
1213 && apt-get clean \
1314 && rm -rf /var/lib/apt/lists/*
1415
15- # Install mmsegmentation
1616RUN conda clean --all
1717
18- RUN pip install mmcv-full==latest+torch1.6.0+cu101 -f https://download.openmmlab.com/mmcv/dist/index.html
18+ # Install MMCV
19+ ARG PYTORCH
20+ ARG CUDA
21+ ARG MMCV
22+ RUN ["/bin/bash" , "-c" , "pip install mmcv-full==${MMCV} -f https://download.openmmlab.com/mmcv/dist/cu${CUDA//./}/torch${PYTORCH}/index.html" ]
23+
24+ # Install MMSegmentation
1925RUN git clone https://github.com/open-mmlab/mmsegmentation.git /mmsegmentation
2026WORKDIR /mmsegmentation
27+ ENV FORCE_CUDA="1"
2128RUN pip install -r requirements.txt
2229RUN pip install --no-cache-dir -e .
You can’t perform that action at this time.
0 commit comments