Spaces:
Runtime error
Runtime error
Fix build: pin torch 1.13 + mmcv-full pre-built wheel
Browse files- Pin torch==1.13.1+cpu and torchvision==0.14.1+cpu
- Use --find-links for pre-built mmcv-full wheel (CPU, torch 1.13)
- Pin numpy<2.0.0 for compatibility
- Add packages.txt for system dependencies (libgl, glib)
- packages.txt +2 -0
- requirements.txt +11 -5
packages.txt
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
libgl1-mesa-glx
|
| 2 |
+
libglib2.0-0
|
requirements.txt
CHANGED
|
@@ -1,10 +1,16 @@
|
|
| 1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
gradio>=5.0.0
|
| 3 |
opencv-python-headless>=4.8.0
|
| 4 |
-
numpy>=1.24.0
|
| 5 |
-
torch>=1.13.0
|
| 6 |
-
torchvision>=0.14.0
|
| 7 |
-
mmcv-full==1.7.2
|
| 8 |
easyocr>=1.7.0
|
| 9 |
scikit-image>=0.21.0
|
| 10 |
scipy>=1.9.0
|
|
|
|
| 1 |
+
--find-links https://download.pytorch.org/whl/cpu/torch_stable.html
|
| 2 |
+
--find-links https://download.openmmlab.com/mmcv/dist/cpu/torch1.13.0/index.html
|
| 3 |
+
|
| 4 |
+
# Pin torch 1.13 for mmcv-full compatibility
|
| 5 |
+
torch==1.13.1+cpu
|
| 6 |
+
torchvision==0.14.1+cpu
|
| 7 |
+
|
| 8 |
+
# mmcv-full pre-built wheel for torch 1.13 + CPU + Python 3.10
|
| 9 |
+
mmcv-full==1.7.2
|
| 10 |
+
|
| 11 |
gradio>=5.0.0
|
| 12 |
opencv-python-headless>=4.8.0
|
| 13 |
+
numpy>=1.24.0,<2.0.0
|
|
|
|
|
|
|
|
|
|
| 14 |
easyocr>=1.7.0
|
| 15 |
scikit-image>=0.21.0
|
| 16 |
scipy>=1.9.0
|