Update requirements.txt
Browse files- requirements.txt +13 -7
requirements.txt
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
# ============================================================================
|
| 2 |
-
# PYTORCH CUDA WHEELS (CUDA 12.1)
|
| 3 |
# ============================================================================
|
| 4 |
--extra-index-url https://download.pytorch.org/whl/cu121
|
| 5 |
|
|
@@ -43,14 +43,12 @@ xformers>=0.0.28,<0.1.0
|
|
| 43 |
opencv-python-headless==4.10.0.84
|
| 44 |
opencv-contrib-python-headless==4.10.0.84
|
| 45 |
git+https://github.com/facebookresearch/segment-anything-2.git
|
| 46 |
-
moviepy
|
| 47 |
-
# imageio must satisfy moviepy and scikit-image:
|
| 48 |
imageio==2.25.0
|
| 49 |
imageio-ffmpeg>=0.4.9,<1.0
|
| 50 |
ffmpeg-python>=0.2.0,<1.0
|
| 51 |
av>=11.0.0,<12.0
|
| 52 |
-
|
| 53 |
-
#scikit-image==0.22.0
|
| 54 |
albumentations>=1.3.1,<2.0
|
| 55 |
|
| 56 |
# ============================================================================
|
|
@@ -101,9 +99,8 @@ marshmallow>=3.20.0,<4.0
|
|
| 101 |
cerberus>=1.3.5,<2.0
|
| 102 |
|
| 103 |
# ============================================================================
|
| 104 |
-
# MATANYONE (install
|
| 105 |
# ============================================================================
|
| 106 |
-
# We'll install MatAnyone without dependencies so it doesn’t force imageio==2.25.0.
|
| 107 |
git+https://github.com/pq-yang/MatAnyone.git
|
| 108 |
|
| 109 |
# ============================================================================
|
|
@@ -138,3 +135,12 @@ pre-commit>=3.5.0,<4.0
|
|
| 138 |
gunicorn>=21.2.0,<22.0
|
| 139 |
supervisor>=4.2.5,<5.0
|
| 140 |
python-crontab>=3.0.0,<4.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# ============================================================================
|
| 2 |
+
# PYTORCH CUDA WHEELS (CUDA 12.1) - Always keep at the top for Hugging Face
|
| 3 |
# ============================================================================
|
| 4 |
--extra-index-url https://download.pytorch.org/whl/cu121
|
| 5 |
|
|
|
|
| 43 |
opencv-python-headless==4.10.0.84
|
| 44 |
opencv-contrib-python-headless==4.10.0.84
|
| 45 |
git+https://github.com/facebookresearch/segment-anything-2.git
|
| 46 |
+
# Fix for imageio version pinning to avoid conflicts with moviepy & scikit-image:
|
|
|
|
| 47 |
imageio==2.25.0
|
| 48 |
imageio-ffmpeg>=0.4.9,<1.0
|
| 49 |
ffmpeg-python>=0.2.0,<1.0
|
| 50 |
av>=11.0.0,<12.0
|
| 51 |
+
moviepy>=1.0.3,<2.0
|
|
|
|
| 52 |
albumentations>=1.3.1,<2.0
|
| 53 |
|
| 54 |
# ============================================================================
|
|
|
|
| 99 |
cerberus>=1.3.5,<2.0
|
| 100 |
|
| 101 |
# ============================================================================
|
| 102 |
+
# MATANYONE (install from GitHub only, no-deps) -- SEE NOTE!
|
| 103 |
# ============================================================================
|
|
|
|
| 104 |
git+https://github.com/pq-yang/MatAnyone.git
|
| 105 |
|
| 106 |
# ============================================================================
|
|
|
|
| 135 |
gunicorn>=21.2.0,<22.0
|
| 136 |
supervisor>=4.2.5,<5.0
|
| 137 |
python-crontab>=3.0.0,<4.0
|
| 138 |
+
|
| 139 |
+
# ============================================================================
|
| 140 |
+
# NOTES / FIXES
|
| 141 |
+
# ============================================================================
|
| 142 |
+
# 1. Keep --extra-index-url at the top.
|
| 143 |
+
# 2. Install MatAnyone ONLY from GitHub. Do not use PyPI version.
|
| 144 |
+
# 3. Imageio pinned to 2.25.0 to avoid moviepy/scikit-image breakage.
|
| 145 |
+
# 4. If CUDA issues: remove .cache on Spaces and restart Space.
|
| 146 |
+
# 5. For maximum stability, do not add 'matanyone' or 'sam2' from PyPI.
|