Skip to content

Commit b64565c

Browse files
authored
[Fix] Update dockerfile (#1671)
* [Fix] Update dockerfile * [Fix] Update dockerfile
1 parent 39f99ac commit b64565c

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

docker/Dockerfile

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
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

55
FROM 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
128
RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub
139
RUN 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'
2419
RUN git clone https://github.com/open-mmlab/mmocr.git /mmocr
2520
WORKDIR /mmocr
2621
ENV FORCE_CUDA="1"
2722
RUN pip install -r requirements.txt
2823
RUN pip install --no-cache-dir -e .
24+
RUN pip install -r requirements/albu.txt

0 commit comments

Comments
 (0)