MogensR commited on
Commit
fc0105b
·
1 Parent(s): 8c12d2f

Update requirements.txt

Browse files
Files changed (1) hide show
  1. requirements.txt +67 -38
requirements.txt CHANGED
@@ -1,56 +1,85 @@
 
 
 
1
  # ============================================================================
2
- # BackgroundFX Pro - Complete Requirements for Hugging Face Spaces
3
  # ============================================================================
 
 
 
 
4
 
5
- # PRIORITY 1: Core Framework
6
- gradio>=4.0.0,<5.0.0
7
- torch>=2.0.0,<2.4.0
8
- torchvision>=0.15.0,<0.19.0
 
9
 
10
- # PRIORITY 2: Computer Vision & Image Processing
11
- opencv-python-headless>=4.8.0,<5.0.0
12
- pillow>=9.5.0,<11.0.0
13
- numpy>=1.21.0,<2.0.0
 
14
 
15
- # PRIORITY 3: SAM2 Dependencies (Meta's Segment Anything 2)
16
- # Main SAM2 installation
17
- git+https://github.com/facebookresearch/segment-anything-2.git
 
 
18
 
19
- # SAM2 core dependencies that might not auto-install
20
- hydra-core>=1.2.0
21
- iopath>=0.1.9
22
- fvcore>=0.1.5
23
 
24
- # PRIORITY 4: Network & File Handling
25
- requests>=2.25.0,<3.0.0
26
- urllib3>=1.26.0,<3.0.0
 
27
 
28
- # PRIORITY 5: Scientific Computing & Math
29
- scipy>=1.7.0,<2.0.0
30
- scikit-image>=0.19.0,<1.0.0
 
 
 
31
 
32
- # PRIORITY 6: System & Memory Management
33
- psutil>=5.8.0,<6.0.0
34
- tqdm>=4.62.0,<5.0.0
 
 
 
35
 
36
- # PRIORITY 7: Data Handling
37
- packaging>=21.0
38
- setuptools>=65.0.0
39
 
40
- # PRIORITY 8: Video Processing Enhancement (Optional but recommended)
41
- imageio>=2.19.0,<3.0.0
42
- imageio-ffmpeg>=0.4.7
 
 
43
 
44
- # PRIORITY 9: Additional ML/CV utilities
45
- timm>=0.6.0,<1.0.0
 
 
 
46
 
47
  # ============================================================================
48
- # FALLBACK: If git+https SAM2 installation fails, uncomment below:
49
  # ============================================================================
50
- # segment-anything-2
 
 
 
51
 
52
  # ============================================================================
53
- # DEVELOPMENT/DEBUG (Remove for production)
54
  # ============================================================================
55
- # ipython>=7.0.0
56
- # jupyter>=1.0.0
 
 
 
 
 
1
+ # BackgroundFX Pro - SAM2 + MatAnyone Requirements
2
+ # Optimized for video background replacement workflow
3
+
4
  # ============================================================================
5
+ # CORE FRAMEWORK
6
  # ============================================================================
7
+ gradio==4.44.0
8
+ torch==2.1.0
9
+ torchvision==0.16.0
10
+ torchaudio==2.1.0
11
 
12
+ # ============================================================================
13
+ # SAM2 ECOSYSTEM (Meta's Segment Anything 2)
14
+ # ============================================================================
15
+ # SAM2 core - install from official repo
16
+ git+https://github.com/facebookresearch/segment-anything-2.git
17
 
18
+ # SAM2 core dependencies
19
+ hydra-core==1.3.2
20
+ omegaconf==2.3.0
21
+ iopath==0.1.10
22
+ fvcore==0.1.5.post20221221
23
 
24
+ # ============================================================================
25
+ # MATANYONE DEPENDENCIES
26
+ # ============================================================================
27
+ # MatAnyone for advanced matting (if using specific version)
28
+ # git+https://github.com/SHI-Labs/MatAnyone.git
29
 
30
+ # Alternative matting libraries
31
+ alpha-matting==1.3.0
32
+ trimap==1.0.6
 
33
 
34
+ # Advanced image processing for matting
35
+ scikit-image==0.22.0
36
+ imageio==2.31.1
37
+ imageio-ffmpeg==0.4.9
38
 
39
+ # ============================================================================
40
+ # COMPUTER VISION CORE
41
+ # ============================================================================
42
+ opencv-python-headless==4.8.1.78
43
+ pillow==10.0.1
44
+ numpy==1.24.3
45
 
46
+ # ============================================================================
47
+ # DEEP LEARNING SUPPORT
48
+ # ============================================================================
49
+ # Vision transformers and models
50
+ timm==0.9.7
51
+ transformers==4.35.0
52
 
53
+ # Model utilities
54
+ safetensors==0.4.0
55
+ huggingface-hub==0.17.3
56
 
57
+ # ============================================================================
58
+ # SCIENTIFIC COMPUTING
59
+ # ============================================================================
60
+ scipy==1.11.3
61
+ matplotlib==3.7.2
62
 
63
+ # ============================================================================
64
+ # VIDEO PROCESSING
65
+ # ============================================================================
66
+ av==10.0.0
67
+ decord==0.6.0
68
 
69
  # ============================================================================
70
+ # UTILITIES
71
  # ============================================================================
72
+ requests==2.31.0
73
+ tqdm==4.66.1
74
+ psutil==5.9.6
75
+ packaging==23.2
76
 
77
  # ============================================================================
78
+ # FALLBACK OPTIONS (uncomment if needed)
79
  # ============================================================================
80
+ # If git installs fail, try these:
81
+ # segment-anything-2==0.4.1
82
+ #
83
+ # Alternative matting approach:
84
+ # backgroundremover==0.2.6
85
+ # rembg==2.0.50