MogensR commited on
Commit
b21ba08
·
1 Parent(s): 424efea

Update requirements.txt

Browse files
Files changed (1) hide show
  1. requirements.txt +56 -75
requirements.txt CHANGED
@@ -1,13 +1,11 @@
1
  # ============================================
2
- # PRODUCTION REQUIREMENTS - FINAL VERSION
3
- # MatAnyone (BEST) + SAM2 (VIDEO) + Rembg (FAST)
4
- # Optimized for HuggingFace Spaces L4 GPU
5
  # ============================================
6
 
7
  # Core Dependencies
8
  streamlit==1.32.2
9
- opencv-python-headless==4.8.1.78 # Fixed for compatibility
10
- opencv-contrib-python==4.8.1.78 # Matching version
11
  numpy==1.26.4
12
  Pillow==10.2.0
13
 
@@ -17,113 +15,96 @@ GPUtil==1.4.0
17
  nvidia-ml-py==12.535.161
18
  py3nvml==0.2.7
19
 
20
- # PyTorch with CUDA (Latest stable)
21
- torch==2.2.0
22
- torchvision==0.17.0
23
- torchaudio==2.2.0
24
 
25
  # ============================================
26
- # PRIMARY METHOD: MatAnyone (Production Quality)
27
  # ============================================
28
  git+https://github.com/pq-yang/MatAnyone.git
29
 
30
  # ============================================
31
- # SECONDARY METHOD: SAM2 (Video Optimized)
32
  # ============================================
33
  git+https://github.com/facebookresearch/segment-anything-2.git
34
 
35
  # ============================================
36
- # TERTIARY METHOD: Rembg (Fast Fallback)
37
  # ============================================
38
  rembg==2.0.53
39
  onnxruntime-gpu==1.16.3
40
 
41
  # ============================================
42
- # Supporting Libraries
 
43
  # ============================================
44
 
45
- # Transformers & HuggingFace (for model downloads)
46
- transformers==4.37.2
47
- accelerate==0.26.1
48
- huggingface-hub==0.20.3
49
- safetensors==0.4.2
50
- tokenizers==0.15.1
51
 
52
  # Computer Vision
53
- timm==0.9.12
54
- albumentations==1.3.1
55
- ultralytics==8.1.18
56
- supervision==0.17.1
57
-
58
- # Image Processing
59
- scipy==1.12.0
60
- scikit-image==0.22.0
61
- matplotlib==3.8.2
62
- imageio==2.33.1
63
- imageio-ffmpeg==0.4.9
64
 
65
  # Video Processing
66
- moviepy==1.0.3
67
- av==11.0.0
68
- decord==0.6.0
69
 
70
  # ML Libraries
71
- xgboost==2.0.3
72
- lightgbm==4.3.0
73
- scikit-learn==1.4.0
74
 
75
  # Data Processing
76
- pandas==2.2.0
77
- pyarrow==15.0.0
78
 
79
  # Progress & UI
80
- tqdm==4.66.1
81
- rich==13.7.0
82
 
83
  # Web & Downloads
84
- requests==2.31.0
85
- httpx==0.26.0
86
- aiohttp==3.9.3
87
 
88
  # Memory Management
89
- memory-profiler==0.61.0
90
- pympler==1.0.1
91
- objgraph==3.6.1
92
 
93
  # Parallel Processing
94
- joblib==1.3.2
95
- threadpoolctl==3.2.0
96
 
97
  # Utilities
98
- python-dotenv==1.0.1
99
- fire==0.5.0
100
- typer==0.9.0
101
 
102
- # ============================================
103
- # OPTIONAL: Additional Features
104
- # ============================================
105
-
106
- # Audio support (for videos with sound)
107
- librosa==0.10.1
108
- soundfile==0.12.1
109
- pydub==0.25.1
110
 
111
  # Advanced CV models
112
- open-clip-torch==2.24.0
113
- clip-interrogator==0.6.0
114
- groundingdino-py==0.4.0
115
 
116
  # Monitoring
117
- wandb==0.16.3
118
- tensorboard==2.15.1
119
-
120
- # ============================================
121
- # NOTES:
122
- # 1. MatAnyone provides best quality with temporal consistency
123
- # 2. SAM2 is video-optimized segmentation
124
- # 3. Rembg is fast fallback
125
- # 4. OpenCV is always available (comes with opencv-python)
126
- # 5. Models download dynamically on first use
127
- # 6. Total package size: ~10-15GB
128
- # 7. Models add: 500MB-2GB depending on selection
129
- # ============================================
 
1
  # ============================================
2
+ # FIXED REQUIREMENTS - MatAnyone compatible
 
 
3
  # ============================================
4
 
5
  # Core Dependencies
6
  streamlit==1.32.2
7
+ opencv-python-headless==4.8.1.78
8
+ opencv-contrib-python==4.8.1.78
9
  numpy==1.26.4
10
  Pillow==10.2.0
11
 
 
15
  nvidia-ml-py==12.535.161
16
  py3nvml==0.2.7
17
 
18
+ # NOTE: PyTorch handled in Dockerfile
19
+ # Don't include torch/torchvision/torchaudio here
 
 
20
 
21
  # ============================================
22
+ # PRIMARY: MatAnyone (with its dependencies)
23
  # ============================================
24
  git+https://github.com/pq-yang/MatAnyone.git
25
 
26
  # ============================================
27
+ # SECONDARY: SAM2
28
  # ============================================
29
  git+https://github.com/facebookresearch/segment-anything-2.git
30
 
31
  # ============================================
32
+ # TERTIARY: Rembg
33
  # ============================================
34
  rembg==2.0.53
35
  onnxruntime-gpu==1.16.3
36
 
37
  # ============================================
38
+ # Supporting Libraries - NO VERSION PINNING!
39
+ # Let pip resolve versions automatically
40
  # ============================================
41
 
42
+ # Transformers & HuggingFace
43
+ transformers
44
+ accelerate
45
+ huggingface-hub
46
+ safetensors
47
+ tokenizers
48
 
49
  # Computer Vision
50
+ timm
51
+ albumentations
52
+ ultralytics
53
+ supervision
54
+
55
+ # Image Processing - NO VERSION for imageio!
56
+ scipy
57
+ scikit-image
58
+ matplotlib
59
+ imageio # NO VERSION - let MatAnyone decide!
60
+ imageio-ffmpeg
61
 
62
  # Video Processing
63
+ moviepy
64
+ av
 
65
 
66
  # ML Libraries
67
+ xgboost
68
+ lightgbm
69
+ scikit-learn
70
 
71
  # Data Processing
72
+ pandas
73
+ pyarrow
74
 
75
  # Progress & UI
76
+ tqdm
77
+ rich
78
 
79
  # Web & Downloads
80
+ requests
81
+ httpx
82
+ aiohttp
83
 
84
  # Memory Management
85
+ memory-profiler
86
+ pympler
87
+ objgraph
88
 
89
  # Parallel Processing
90
+ joblib
91
+ threadpoolctl
92
 
93
  # Utilities
94
+ python-dotenv
95
+ fire
96
+ typer
97
 
98
+ # Audio support
99
+ librosa
100
+ soundfile
101
+ pydub
 
 
 
 
102
 
103
  # Advanced CV models
104
+ open-clip-torch
105
+ clip-interrogator
106
+ groundingdino-py
107
 
108
  # Monitoring
109
+ wandb
110
+ tensorboard