File tree Expand file tree Collapse file tree 1 file changed +8
-12
lines changed Expand file tree Collapse file tree 1 file changed +8
-12
lines changed Original file line number Diff line number Diff line change 1- ARG PYTORCH="1.6 .0"
2- ARG CUDA="10 .1"
3- ARG CUDNN="7 "
1+ ARG PYTORCH="1.9 .0"
2+ ARG CUDA="11 .1"
3+ ARG CUDNN="8 "
44
55FROM pytorch/pytorch:${PYTORCH}-cuda${CUDA}-cudnn${CUDNN}-devel
66
7- ENV TORCH_CUDA_ARCH_LIST="6.0 6.1 7.0+PTX"
8- ENV TORCH_NVCC_FLAGS="-Xfatbin -compress-all"
9- ENV CMAKE_PREFIX_PATH="$(dirname $(which conda))/../"
10-
117# To fix GPG key error when running apt-get update
128RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub
139RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/7fa2af80.pub
@@ -16,13 +12,13 @@ RUN apt-get update && apt-get install -y git ninja-build libglib2.0-0 libsm6 lib
1612 && apt-get clean \
1713 && rm -rf /var/lib/apt/lists/*
1814
19- RUN conda clean --all
20- RUN pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cu101/torch1.6.0/index.html
21-
22- RUN pip install mmdet
23-
15+ RUN pip install -U openmim
16+ RUN mim install mmengine
17+ RUN mim install 'mmcv>=2.0.0rc1'
18+ RUN pip install 'mmdet>=3.0.0rc0'
2419RUN git clone https://github.com/open-mmlab/mmocr.git /mmocr
2520WORKDIR /mmocr
2621ENV FORCE_CUDA="1"
2722RUN pip install -r requirements.txt
2823RUN pip install --no-cache-dir -e .
24+ RUN pip install -r requirements/albu.txt
You can’t perform that action at this time.
0 commit comments