DawnC commited on
Commit
4cda925
·
verified ·
1 Parent(s): b0aa948

Update requirements.txt

Browse files
Files changed (1) hide show
  1. requirements.txt +13 -52
requirements.txt CHANGED
@@ -1,81 +1,42 @@
1
- # SceneWeaver Hugging Face Spaces Deployment Requirements
2
- # Optimized for ZeroGPU environment with safe version ranges
3
-
4
- # ============================================
5
  # Core Deep Learning Framework
6
- # ============================================
7
- # PyTorch 2.x series - compatible with SDXL and xformers
8
  torch>=2.0.0,<2.5.0
9
  torchvision>=0.15.0,<0.20.0
10
  torchaudio>=2.0.0,<2.5.0
11
 
12
- # ============================================
 
 
 
 
 
13
  # Diffusion Models and Transformers
14
- # ============================================
15
- # Diffusers 0.25+ has better SDXL support, <0.32 for stability
16
  diffusers>=0.25.0,<0.32.0
17
- # Transformers compatible with diffusers and open_clip
18
- transformers>=4.35.0,<4.46.0
 
 
19
  # Accelerate for model loading optimizations
20
  accelerate>=0.24.0,<0.35.0
21
- # xformers for memory efficient attention (optional, may fail on some systems)
22
- # xformers>=0.0.22,<0.0.29
23
 
24
- # ============================================
25
  # Computer Vision and Image Processing
26
- # ============================================
27
- # OpenCV for image processing
28
  opencv-python>=4.8.0,<4.11.0
29
- # opencv-contrib-python for guided filter (cv2.ximgproc)
30
  opencv-contrib-python>=4.8.0,<4.11.0
31
- # Pillow for image I/O
32
  Pillow>=9.5.0,<11.0.0
33
- # SciPy for scientific computing
34
  scipy>=1.10.0,<1.15.0
35
 
36
- # ============================================
37
  # Background Removal
38
- # ============================================
39
- # rembg for foreground extraction (CPU version for compatibility)
40
  rembg>=2.0.50,<2.1.0
41
 
42
- # ============================================
43
  # Multi-modal Understanding (CLIP)
44
- # ============================================
45
- # OpenCLIP for image analysis
46
  open_clip_torch>=2.20.0,<2.27.0
47
- # Sentence transformers (dependency)
48
  sentence-transformers>=2.2.0,<3.1.0
49
 
50
- # ============================================
51
  # Web Interface
52
- # ============================================
53
- # Gradio 4.x for modern UI
54
- gradio>=4.0.0,<5.0.0
55
 
56
- # ============================================
57
  # Core Scientific Computing
58
- # ============================================
59
- # NumPy 1.x for compatibility
60
- numpy>=1.24.0,<2.0.0
61
 
62
- # ============================================
63
- # Hugging Face Integration
64
- # ============================================
65
- # HuggingFace Hub for model downloads
66
- huggingface_hub>=0.19.0,<0.27.0
67
- # Safetensors for efficient model loading
68
- safetensors>=0.4.0,<0.5.0
69
-
70
- # ============================================
71
  # System Utilities
72
- # ============================================
73
- # psutil for memory monitoring
74
  psutil>=5.9.0,<6.1.0
75
- # requests for HTTP operations
76
- requests>=2.28.0,<2.33.0
77
-
78
- # ============================================
79
- # Hugging Face Spaces (auto-installed on Spaces)
80
- # ============================================
81
- # spaces # ZeroGPU support - auto-available on HF Spaces
 
 
 
 
 
1
  # Core Deep Learning Framework
 
 
2
  torch>=2.0.0,<2.5.0
3
  torchvision>=0.15.0,<0.20.0
4
  torchaudio>=2.0.0,<2.5.0
5
 
6
+ # Hugging Face Integration (CRITICAL - Must be compatible)
7
+ huggingface_hub>=0.23.2,<1.0
8
+
9
+ # Safetensors for efficient model loading
10
+ safetensors>=0.4.0,<0.5.0
11
+
12
  # Diffusion Models and Transformers
 
 
13
  diffusers>=0.25.0,<0.32.0
14
+
15
+ # Transformers
16
+ transformers>=4.35.0,<4.47.0
17
+
18
  # Accelerate for model loading optimizations
19
  accelerate>=0.24.0,<0.35.0
 
 
20
 
 
21
  # Computer Vision and Image Processing
 
 
22
  opencv-python>=4.8.0,<4.11.0
 
23
  opencv-contrib-python>=4.8.0,<4.11.0
 
24
  Pillow>=9.5.0,<11.0.0
 
25
  scipy>=1.10.0,<1.15.0
26
 
 
27
  # Background Removal
 
 
28
  rembg>=2.0.50,<2.1.0
29
 
 
30
  # Multi-modal Understanding (CLIP)
 
 
31
  open_clip_torch>=2.20.0,<2.27.0
 
32
  sentence-transformers>=2.2.0,<3.1.0
33
 
 
34
  # Web Interface
35
+ gradio>=4.0.0
 
 
36
 
 
37
  # Core Scientific Computing
38
+ numpy>=1.24.0
 
 
39
 
 
 
 
 
 
 
 
 
 
40
  # System Utilities
 
 
41
  psutil>=5.9.0,<6.1.0
42
+ requests>=2.28.0,<2.33.0