Skip to content

Commit 7820e34

Browse files
committed
Fix mmdetection imports
1 parent 59e69a1 commit 7820e34

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

label_studio_ml/examples/mmdetection-3/Dockerfile

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@ ARG TEST_ENV
88
WORKDIR /app
99

1010
# To fix GPG key error when running apt-get update
11-
RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub \
12-
&& apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/7fa2af80.pub
11+
RUN apt-get update && apt-get install -y --no-install-recommends wget gnupg ca-certificates \
12+
&& rm -rf /var/lib/apt/lists/*
13+
14+
RUN wget -qO - https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub | gpg --dearmor -o /usr/share/keyrings/nvidia.gpg \
15+
&& wget -qO - https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/7fa2af80.pub | gpg --dearmor -o /usr/share/keyrings/nvidia-ml.gpg
1316

1417
# Update the base OS
1518
RUN --mount=type=cache,target="/var/cache/apt",sharing=locked \
@@ -57,8 +60,9 @@ RUN --mount=type=cache,target=${PIP_CACHE_DIR},sharing=locked \
5760
fi
5861

5962
RUN mim install mmengine==0.10.3
60-
RUN mim install mmdet==3.3.0
61-
RUN mim download mmdet --config yolov3_mobilenetv2_8xb24-320-300e_coco --dest .
63+
RUN mim install mmcv==2.1.0
64+
RUN mim install mmdet==3.3.0
65+
RUN mim download mmdet --config yolov3_mobilenetv2_8xb24-320-300e_coco --dest .
6266

6367
COPY . .
6468

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
boto3>=1.26.103,<2.0.0
22
openmim~=0.3.9
3-
mmcv>=2.0.0rc4,<2.2.0
43
numpy~=1.26
54

65

0 commit comments

Comments
 (0)