Spaces:
Runtime error
Runtime error
Update requirements.txt
Browse files- requirements.txt +5 -4
requirements.txt
CHANGED
|
@@ -17,16 +17,17 @@ taming-transformers @ git+https://github.com/CompVis/taming-transformers.git@mas
|
|
| 17 |
clip @ git+https://github.com/openai/CLIP.git@main
|
| 18 |
|
| 19 |
# Computer vision
|
| 20 |
-
opencv-python==4.5.5.64
|
|
|
|
| 21 |
kornia==0.6
|
| 22 |
albumentations==0.4.3
|
| 23 |
-
imageio>=2.27
|
| 24 |
imageio-ffmpeg==0.4.2
|
| 25 |
matplotlib
|
| 26 |
-
scikit-image==0.21.0
|
| 27 |
Pillow
|
| 28 |
segment-anything
|
| 29 |
-
numpy==1.24.4
|
| 30 |
|
| 31 |
# Gradio
|
| 32 |
gradio
|
|
|
|
| 17 |
clip @ git+https://github.com/openai/CLIP.git@main
|
| 18 |
|
| 19 |
# Computer vision
|
| 20 |
+
opencv-python==4.5.5.64 # ✅ 避免 dnn.DictValue 错误
|
| 21 |
+
opencv-python-headless==4.5.5.64 # ✅ 防止系统默认装新版导致冲突(和 GUI 冲突不大)
|
| 22 |
kornia==0.6
|
| 23 |
albumentations==0.4.3
|
| 24 |
+
imageio>=2.27 # ✅ 保证兼容 scikit-image 0.21.0
|
| 25 |
imageio-ffmpeg==0.4.2
|
| 26 |
matplotlib
|
| 27 |
+
scikit-image==0.21.0
|
| 28 |
Pillow
|
| 29 |
segment-anything
|
| 30 |
+
numpy==1.24.4 # ✅ 避免 numpy 2.x 引发 ABI 问题
|
| 31 |
|
| 32 |
# Gradio
|
| 33 |
gradio
|