MogensR commited on
Commit
9f26dc2
·
1 Parent(s): 0401b51

Update requirements.txt

Browse files
Files changed (1) hide show
  1. requirements.txt +30 -76
requirements.txt CHANGED
@@ -1,89 +1,43 @@
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 - BEST-IN-CLASS ALPHA MATTING
26
- # ============================================================================
27
- # MatAnyone for professional alpha matting
28
- git+https://github.com/SHI-Labs/MatAnyone.git
29
 
30
- # MatAnyone core dependencies
31
- diffusers==0.21.4
32
- accelerate==0.24.1
33
- xformers==0.0.22
34
-
35
- # Advanced image processing for matting workflow
36
- scikit-image==0.22.0
37
- imageio==2.31.1
38
- imageio-ffmpeg==0.4.9
39
 
40
- # Fallback alpha matting if MatAnyone fails
41
- alpha-matting==1.3.0
 
 
 
42
 
43
- # ============================================================================
44
- # COMPUTER VISION CORE
45
- # ============================================================================
46
- opencv-python-headless==4.8.1.78
47
- pillow==10.0.1
48
- numpy==1.24.3
49
 
50
- # ============================================================================
51
- # DEEP LEARNING SUPPORT
52
- # ============================================================================
53
- # Vision transformers and models
54
- timm==0.9.7
55
- transformers==4.35.0
56
-
57
- # Model utilities
58
- safetensors==0.4.0
59
- huggingface-hub==0.17.3
60
 
61
- # ============================================================================
62
  # SCIENTIFIC COMPUTING
63
- # ============================================================================
64
- scipy==1.11.3
65
- matplotlib==3.7.2
66
 
67
- # ============================================================================
68
  # VIDEO PROCESSING
69
- # ============================================================================
70
- av==10.0.0
71
- decord==0.6.0
72
 
73
- # ============================================================================
74
- # UTILITIES
75
- # ============================================================================
76
- requests==2.31.0
77
- tqdm==4.66.1
78
- psutil==5.9.6
79
- packaging==23.2
80
-
81
- # ============================================================================
82
- # FALLBACK OPTIONS (uncomment if needed)
83
- # ============================================================================
84
- # If git installs fail, try these:
85
- # segment-anything-2==0.4.1
86
- #
87
- # Alternative matting approach:
88
- # backgroundremover==0.2.6
89
- # rembg==2.0.50
 
 
 
 
1
  # ============================================================================
2
+ # BackgroundFX Pro - SAM2 + MatAnyone Professional Pipeline
3
+ # Clean requirements for Hugging Face Spaces
4
  # ============================================================================
 
 
 
 
5
 
6
+ # CORE FRAMEWORK (Security updated)
7
+ gradio>=5.42.0
8
+ torch>=2.0.0
9
+ torchvision>=0.15.0
 
10
 
11
+ # COMPUTER VISION ESSENTIALS
12
+ opencv-python-headless>=4.8.0
13
+ pillow>=10.0.0
14
+ numpy>=1.21.0
 
 
 
 
 
 
 
15
 
16
+ # SAM2 - Segment Anything Model 2
17
+ git+https://github.com/facebookresearch/segment-anything-2.git
 
 
 
 
 
 
 
18
 
19
+ # SAM2 Core Dependencies
20
+ hydra-core>=1.3.0
21
+ omegaconf>=2.3.0
22
+ iopath>=0.1.9
23
+ fvcore>=0.1.5
24
 
25
+ # MATANYONE - Professional Video Matting (CVPR 2025)
26
+ git+https://github.com/pq-yang/MatAnyone
 
 
 
 
27
 
28
+ # UTILITIES
29
+ requests>=2.25.0
30
+ tqdm>=4.60.0
31
+ psutil>=5.8.0
 
 
 
 
 
 
32
 
 
33
  # SCIENTIFIC COMPUTING
34
+ scipy>=1.7.0
 
 
35
 
 
36
  # VIDEO PROCESSING
37
+ imageio>=2.19.0
38
+ imageio-ffmpeg>=0.4.7
 
39
 
40
+ # ADDITIONAL DEPENDENCIES (if needed by MatAnyone)
41
+ accelerate
42
+ timm
43
+ transformers