Commit ·
4a78a43
1
Parent(s): 221146b
Fix: Add scipy, skimage and downgrade numpy
Browse files- backend/requirements.txt +5 -2
backend/requirements.txt
CHANGED
|
@@ -22,15 +22,18 @@ bcrypt>=4.3.0
|
|
| 22 |
# --- ML/AI Models (FORCE CPU ONLY) ---
|
| 23 |
--extra-index-url https://download.pytorch.org/whl/cpu
|
| 24 |
|
|
|
|
|
|
|
| 25 |
torch==2.2.1+cpu
|
| 26 |
torchvision==0.17.1+cpu
|
| 27 |
transformers>=4.48.0
|
| 28 |
huggingface-hub>=0.23.0
|
| 29 |
|
| 30 |
-
# Image Processing
|
| 31 |
opencv-python-headless>=4.9.0
|
|
|
|
|
|
|
| 32 |
Pillow>=10.1.0
|
| 33 |
-
numpy>=1.26.0
|
| 34 |
|
| 35 |
# Monitoring and Upload Tools
|
| 36 |
tqdm
|
|
|
|
| 22 |
# --- ML/AI Models (FORCE CPU ONLY) ---
|
| 23 |
--extra-index-url https://download.pytorch.org/whl/cpu
|
| 24 |
|
| 25 |
+
# CRITICAL: Downgrade numpy to 1.x for torch/transformers compatibility
|
| 26 |
+
numpy<2.0.0
|
| 27 |
torch==2.2.1+cpu
|
| 28 |
torchvision==0.17.1+cpu
|
| 29 |
transformers>=4.48.0
|
| 30 |
huggingface-hub>=0.23.0
|
| 31 |
|
| 32 |
+
# Image and Data Processing
|
| 33 |
opencv-python-headless>=4.9.0
|
| 34 |
+
scipy>=1.12.0
|
| 35 |
+
scikit-image>=0.22.0
|
| 36 |
Pillow>=10.1.0
|
|
|
|
| 37 |
|
| 38 |
# Monitoring and Upload Tools
|
| 39 |
tqdm
|