Update requirements.txt
Browse files- requirements.txt +67 -38
requirements.txt
CHANGED
|
@@ -1,56 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# ============================================================================
|
| 2 |
-
#
|
| 3 |
# ============================================================================
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
|
| 5 |
-
#
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
|
|
|
| 9 |
|
| 10 |
-
#
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
|
|
|
| 14 |
|
| 15 |
-
#
|
| 16 |
-
#
|
| 17 |
-
|
|
|
|
|
|
|
| 18 |
|
| 19 |
-
#
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
fvcore>=0.1.5
|
| 23 |
|
| 24 |
-
#
|
| 25 |
-
|
| 26 |
-
|
|
|
|
| 27 |
|
| 28 |
-
#
|
| 29 |
-
|
| 30 |
-
|
|
|
|
|
|
|
|
|
|
| 31 |
|
| 32 |
-
#
|
| 33 |
-
|
| 34 |
-
|
|
|
|
|
|
|
|
|
|
| 35 |
|
| 36 |
-
#
|
| 37 |
-
|
| 38 |
-
|
| 39 |
|
| 40 |
-
#
|
| 41 |
-
|
| 42 |
-
|
|
|
|
|
|
|
| 43 |
|
| 44 |
-
#
|
| 45 |
-
|
|
|
|
|
|
|
|
|
|
| 46 |
|
| 47 |
# ============================================================================
|
| 48 |
-
#
|
| 49 |
# ============================================================================
|
| 50 |
-
|
|
|
|
|
|
|
|
|
|
| 51 |
|
| 52 |
# ============================================================================
|
| 53 |
-
#
|
| 54 |
# ============================================================================
|
| 55 |
-
#
|
| 56 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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
|