Spaces:
Runtime error
Runtime error
Use mmcv-full with MMCV_WITH_OPS=0 (skip C++ extension build)
Browse filesC++ ops (NMS, RoIAlign) are already patched to torchvision in
chartdete_infer.py, so no native extensions needed.
- Dockerfile +4 -4
Dockerfile
CHANGED
|
@@ -16,10 +16,10 @@ RUN pip install --no-cache-dir \
|
|
| 16 |
torchvision==0.14.1+cpu \
|
| 17 |
-f https://download.pytorch.org/whl/cpu/torch_stable.html
|
| 18 |
|
| 19 |
-
# Install mmcv-full
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
|
| 24 |
# Install remaining dependencies
|
| 25 |
RUN pip install --no-cache-dir \
|
|
|
|
| 16 |
torchvision==0.14.1+cpu \
|
| 17 |
-f https://download.pytorch.org/whl/cpu/torch_stable.html
|
| 18 |
|
| 19 |
+
# Install mmcv-full from source WITHOUT C++ ops compilation
|
| 20 |
+
# The C++ ops (NMS, RoIAlign) are patched to use torchvision in chartdete_infer.py
|
| 21 |
+
ENV MMCV_WITH_OPS=0
|
| 22 |
+
RUN pip install --no-cache-dir mmcv-full==1.7.2
|
| 23 |
|
| 24 |
# Install remaining dependencies
|
| 25 |
RUN pip install --no-cache-dir \
|