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
Files changed (1) hide show
  1. requirements.txt +15 -14
requirements.txt CHANGED
@@ -1,28 +1,29 @@
1
- # --- CORE INFRASTRUCTURE (CRITICAL UPDATES) ---
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
- # Updated to match newer Diffusers/Gradio compatibility
9
- torch==2.4.0
10
- torchvision==0.19.0
11
- torchaudio==2.4.0
 
12
  numpy<2.0.0
13
- accelerate>=0.34.0
14
 
15
  # --- IDM-VTON DEPENDENCIES ---
16
- # Updated Diffusers/Transformers per HF Support request
17
- diffusers>=0.30.0
18
- transformers>=4.44.2
19
- pydantic>=2.9.0
 
20
 
21
- # --- STABLE DEPENDENCIES (Keep these pinned to avoid math errors) ---
22
  scipy==1.10.1
23
  scikit-image==0.21.0
24
  opencv-python-headless
25
- pillow>=10.3.0
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