Hunsain Mazhar commited on
Commit Β·
a48384c
1
Parent(s): fac8d4d
Update requirements.txt to fix ZeroGPU auth bug and ensure compatibility with specific internal functions; pinned versions for torch, torchvision, torchaudio, diffusers, transformers, and pydantic.
Browse files- requirements.txt +15 -14
requirements.txt
CHANGED
|
@@ -1,28 +1,29 @@
|
|
| 1 |
-
# --- CORE INFRASTRUCTURE (
|
| 2 |
-
# Updated to fix the "Unlogged User" / ZeroGPU auth bug
|
| 3 |
spaces>=0.32.0
|
| 4 |
gradio>=5.0.0
|
| 5 |
huggingface_hub>=0.26.2
|
| 6 |
|
| 7 |
-
# --- AI FRAMEWORKS ---
|
| 8 |
-
#
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
|
|
|
| 12 |
numpy<2.0.0
|
| 13 |
-
accelerate
|
| 14 |
|
| 15 |
# --- IDM-VTON DEPENDENCIES ---
|
| 16 |
-
#
|
| 17 |
-
diffusers
|
| 18 |
-
|
| 19 |
-
|
|
|
|
| 20 |
|
| 21 |
-
# ---
|
| 22 |
scipy==1.10.1
|
| 23 |
scikit-image==0.21.0
|
| 24 |
opencv-python-headless
|
| 25 |
-
pillow
|
| 26 |
matplotlib==3.7.4
|
| 27 |
tqdm
|
| 28 |
config
|
|
|
|
| 1 |
+
# --- CORE INFRASTRUCTURE (New versions for ZeroGPU Auth) ---
|
|
|
|
| 2 |
spaces>=0.32.0
|
| 3 |
gradio>=5.0.0
|
| 4 |
huggingface_hub>=0.26.2
|
| 5 |
|
| 6 |
+
# --- AI FRAMEWORKS (Pinned for Compatibility) ---
|
| 7 |
+
# We MUST use these older versions because IDM-VTON's source code
|
| 8 |
+
# relies on specific internal functions that were removed in newer versions.
|
| 9 |
+
torch==2.1.2
|
| 10 |
+
torchvision==0.16.2
|
| 11 |
+
torchaudio==2.1.2
|
| 12 |
numpy<2.0.0
|
| 13 |
+
accelerate==0.26.1
|
| 14 |
|
| 15 |
# --- IDM-VTON DEPENDENCIES ---
|
| 16 |
+
# CRITICAL: Do not change these versions.
|
| 17 |
+
# The "hacked" files in src/ depend on diffusers 0.25.x logic.
|
| 18 |
+
diffusers==0.25.1
|
| 19 |
+
transformers==4.36.2
|
| 20 |
+
pydantic>=2.0.0
|
| 21 |
|
| 22 |
+
# --- UTILITIES ---
|
| 23 |
scipy==1.10.1
|
| 24 |
scikit-image==0.21.0
|
| 25 |
opencv-python-headless
|
| 26 |
+
pillow==9.5.0
|
| 27 |
matplotlib==3.7.4
|
| 28 |
tqdm
|
| 29 |
config
|