Update requirements.txt
Browse files- requirements.txt +37 -62
requirements.txt
CHANGED
|
@@ -1,28 +1,28 @@
|
|
| 1 |
# =============================================================================
|
| 2 |
# Video Background Replacement - Enhanced Edition Requirements
|
| 3 |
-
# Updated: 2025-09-
|
| 4 |
# =============================================================================
|
| 5 |
|
| 6 |
# =============================================================================
|
| 7 |
-
# PyTorch ecosystem (CUDA 12.1) -
|
| 8 |
-
# UPDATED: PyTorch 2.4+ for diffusers compatibility (custom_op support)
|
| 9 |
# =============================================================================
|
| 10 |
--extra-index-url https://download.pytorch.org/whl/cu121
|
| 11 |
-
torch
|
| 12 |
-
torchvision
|
|
|
|
| 13 |
|
| 14 |
# =============================================================================
|
| 15 |
-
# Core scientific computing -
|
| 16 |
# =============================================================================
|
| 17 |
-
numpy
|
| 18 |
scipy==1.11.1
|
| 19 |
scikit-learn>=1.0.0
|
| 20 |
py-cpuinfo
|
| 21 |
|
| 22 |
# =============================================================================
|
| 23 |
-
# Image and video processing
|
| 24 |
# =============================================================================
|
| 25 |
-
opencv-python
|
| 26 |
Pillow==10.1.0
|
| 27 |
scikit-image==0.21.0
|
| 28 |
matplotlib==3.7.2
|
|
@@ -36,24 +36,24 @@ imageio-ffmpeg==0.4.9
|
|
| 36 |
av==10.0.0
|
| 37 |
|
| 38 |
# =============================================================================
|
| 39 |
-
# Core web interface -
|
| 40 |
# =============================================================================
|
| 41 |
-
gradio
|
| 42 |
|
| 43 |
# =============================================================================
|
| 44 |
-
# System monitoring and memory management
|
| 45 |
# =============================================================================
|
| 46 |
psutil>=5.9.0
|
| 47 |
GitPython>=3.1.40
|
| 48 |
|
| 49 |
# =============================================================================
|
| 50 |
-
# Enhanced SAM2 prompting dependencies
|
| 51 |
# =============================================================================
|
| 52 |
ultralytics>=8.0.0
|
| 53 |
mediapipe>=0.10.0
|
| 54 |
|
| 55 |
# =============================================================================
|
| 56 |
-
# SAM2 dependencies
|
| 57 |
# =============================================================================
|
| 58 |
onnxruntime-gpu==1.16.0
|
| 59 |
hydra-core>=1.3.2
|
|
@@ -62,12 +62,15 @@ iopath>=0.1.10
|
|
| 62 |
submitit>=1.4.5
|
| 63 |
|
| 64 |
# =============================================================================
|
| 65 |
-
# MatAnyone dependencies -
|
| 66 |
# =============================================================================
|
| 67 |
-
kornia
|
| 68 |
einops>=0.7.0
|
| 69 |
timm>=0.9.2
|
| 70 |
safetensors>=0.4.2
|
|
|
|
|
|
|
|
|
|
| 71 |
|
| 72 |
# =============================================================================
|
| 73 |
# Background removal
|
|
@@ -82,7 +85,7 @@ requests==2.31.0
|
|
| 82 |
filelock==3.12.2
|
| 83 |
|
| 84 |
# =============================================================================
|
| 85 |
-
# HuggingFace ecosystem
|
| 86 |
# =============================================================================
|
| 87 |
huggingface-hub>=0.19.3
|
| 88 |
diffusers>=0.30.0,<0.32.0
|
|
@@ -91,80 +94,52 @@ accelerate>=0.33.0
|
|
| 91 |
xformers>=0.0.22; sys_platform != "darwin"
|
| 92 |
|
| 93 |
# =============================================================================
|
| 94 |
-
# System monitoring
|
| 95 |
# =============================================================================
|
| 96 |
nvidia-ml-py3==7.352.0
|
|
|
|
|
|
|
| 97 |
|
| 98 |
# =============================================================================
|
| 99 |
-
#
|
| 100 |
# =============================================================================
|
| 101 |
-
# Memory management and process monitoring
|
| 102 |
memory-profiler>=0.61.0
|
| 103 |
-
|
| 104 |
-
# Enhanced logging
|
| 105 |
colorlog>=6.7.0
|
| 106 |
-
|
| 107 |
-
# JSON handling (enhanced)
|
| 108 |
ujson>=5.8.0
|
| 109 |
-
|
| 110 |
-
# Base64 utilities (enhanced)
|
| 111 |
base64io>=1.0.3
|
| 112 |
-
|
| 113 |
-
# UUID utilities (enhanced)
|
| 114 |
shortuuid>=1.0.11
|
| 115 |
-
|
| 116 |
-
# Random number generation (enhanced)
|
| 117 |
randomgen>=1.23.1
|
| 118 |
-
|
| 119 |
-
# Progress bars and timing
|
| 120 |
alive-progress>=3.1.4
|
| 121 |
-
|
| 122 |
-
# HTTP utilities for OpenAI API
|
| 123 |
httpx>=0.25.0
|
| 124 |
aiohttp>=3.8.5
|
| 125 |
-
|
| 126 |
-
# File format support
|
| 127 |
h5py>=3.9.0
|
| 128 |
hdf5storage>=0.1.19
|
| 129 |
-
|
| 130 |
-
# Compression utilities
|
| 131 |
lz4>=4.3.2
|
| 132 |
zstandard>=0.21.0
|
| 133 |
-
|
| 134 |
-
# Environment detection
|
| 135 |
python-dotenv>=1.0.0
|
| 136 |
-
|
| 137 |
-
# Enhanced error handling
|
| 138 |
better-exceptions>=0.3.3
|
| 139 |
-
|
| 140 |
-
# GPU monitoring utilities
|
| 141 |
-
pynvml>=11.5.0
|
| 142 |
-
gpustat>=1.1.1
|
| 143 |
-
|
| 144 |
-
# Enhanced file operations
|
| 145 |
send2trash>=1.8.2
|
| 146 |
watchdog>=3.0.0
|
| 147 |
-
|
| 148 |
-
# Configuration file formats
|
| 149 |
toml>=0.10.2
|
| 150 |
-
|
| 151 |
-
# Enhanced CLI utilities
|
| 152 |
click>=8.1.7
|
| 153 |
rich>=13.5.2
|
| 154 |
-
|
| 155 |
-
# Data validation
|
| 156 |
pydantic>=2.3.0
|
| 157 |
-
|
| 158 |
-
# Type hints and annotations
|
| 159 |
typing-extensions>=4.7.1
|
| 160 |
-
|
| 161 |
-
# Enhanced containers and data structures
|
| 162 |
more-itertools>=10.1.0
|
| 163 |
toolz>=0.12.0
|
| 164 |
-
|
| 165 |
-
# String processing
|
| 166 |
regex>=2023.8.8
|
| 167 |
chardet>=5.2.0
|
|
|
|
| 168 |
|
| 169 |
-
#
|
| 170 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# =============================================================================
|
| 2 |
# Video Background Replacement - Enhanced Edition Requirements
|
| 3 |
+
# Updated: 2025-09-11 - Fixed MatAnyone tensor compatibility issues
|
| 4 |
# =============================================================================
|
| 5 |
|
| 6 |
# =============================================================================
|
| 7 |
+
# PyTorch ecosystem (CUDA 12.1) - PINNED VERSIONS for stability
|
|
|
|
| 8 |
# =============================================================================
|
| 9 |
--extra-index-url https://download.pytorch.org/whl/cu121
|
| 10 |
+
torch==2.4.1
|
| 11 |
+
torchvision==0.19.1
|
| 12 |
+
torchaudio==2.4.1
|
| 13 |
|
| 14 |
# =============================================================================
|
| 15 |
+
# Core scientific computing - UPDATED for PyTorch 2.4+ compatibility
|
| 16 |
# =============================================================================
|
| 17 |
+
numpy>=1.25.0,<1.27.0
|
| 18 |
scipy==1.11.1
|
| 19 |
scikit-learn>=1.0.0
|
| 20 |
py-cpuinfo
|
| 21 |
|
| 22 |
# =============================================================================
|
| 23 |
+
# Image and video processing - FIXED OpenCV compatibility
|
| 24 |
# =============================================================================
|
| 25 |
+
opencv-python==4.8.1.78
|
| 26 |
Pillow==10.1.0
|
| 27 |
scikit-image==0.21.0
|
| 28 |
matplotlib==3.7.2
|
|
|
|
| 36 |
av==10.0.0
|
| 37 |
|
| 38 |
# =============================================================================
|
| 39 |
+
# Core web interface - PINNED for stability
|
| 40 |
# =============================================================================
|
| 41 |
+
gradio==4.44.0
|
| 42 |
|
| 43 |
# =============================================================================
|
| 44 |
+
# System monitoring and memory management
|
| 45 |
# =============================================================================
|
| 46 |
psutil>=5.9.0
|
| 47 |
GitPython>=3.1.40
|
| 48 |
|
| 49 |
# =============================================================================
|
| 50 |
+
# Enhanced SAM2 prompting dependencies
|
| 51 |
# =============================================================================
|
| 52 |
ultralytics>=8.0.0
|
| 53 |
mediapipe>=0.10.0
|
| 54 |
|
| 55 |
# =============================================================================
|
| 56 |
+
# SAM2 dependencies - COMPATIBLE VERSIONS
|
| 57 |
# =============================================================================
|
| 58 |
onnxruntime-gpu==1.16.0
|
| 59 |
hydra-core>=1.3.2
|
|
|
|
| 62 |
submitit>=1.4.5
|
| 63 |
|
| 64 |
# =============================================================================
|
| 65 |
+
# MatAnyone dependencies - FIXED COMPATIBILITY ISSUES
|
| 66 |
# =============================================================================
|
| 67 |
+
kornia==0.7.2
|
| 68 |
einops>=0.7.0
|
| 69 |
timm>=0.9.2
|
| 70 |
safetensors>=0.4.2
|
| 71 |
+
albumentations>=1.3.0
|
| 72 |
+
torch-geometric>=2.3.0
|
| 73 |
+
pytorch-lightning>=2.0.0
|
| 74 |
|
| 75 |
# =============================================================================
|
| 76 |
# Background removal
|
|
|
|
| 85 |
filelock==3.12.2
|
| 86 |
|
| 87 |
# =============================================================================
|
| 88 |
+
# HuggingFace ecosystem - COMPATIBLE VERSIONS
|
| 89 |
# =============================================================================
|
| 90 |
huggingface-hub>=0.19.3
|
| 91 |
diffusers>=0.30.0,<0.32.0
|
|
|
|
| 94 |
xformers>=0.0.22; sys_platform != "darwin"
|
| 95 |
|
| 96 |
# =============================================================================
|
| 97 |
+
# System monitoring and GPU utilities
|
| 98 |
# =============================================================================
|
| 99 |
nvidia-ml-py3==7.352.0
|
| 100 |
+
pynvml>=11.5.0
|
| 101 |
+
gpustat>=1.1.1
|
| 102 |
|
| 103 |
# =============================================================================
|
| 104 |
+
# Enhanced features dependencies
|
| 105 |
# =============================================================================
|
|
|
|
| 106 |
memory-profiler>=0.61.0
|
|
|
|
|
|
|
| 107 |
colorlog>=6.7.0
|
|
|
|
|
|
|
| 108 |
ujson>=5.8.0
|
|
|
|
|
|
|
| 109 |
base64io>=1.0.3
|
|
|
|
|
|
|
| 110 |
shortuuid>=1.0.11
|
|
|
|
|
|
|
| 111 |
randomgen>=1.23.1
|
|
|
|
|
|
|
| 112 |
alive-progress>=3.1.4
|
|
|
|
|
|
|
| 113 |
httpx>=0.25.0
|
| 114 |
aiohttp>=3.8.5
|
|
|
|
|
|
|
| 115 |
h5py>=3.9.0
|
| 116 |
hdf5storage>=0.1.19
|
|
|
|
|
|
|
| 117 |
lz4>=4.3.2
|
| 118 |
zstandard>=0.21.0
|
|
|
|
|
|
|
| 119 |
python-dotenv>=1.0.0
|
|
|
|
|
|
|
| 120 |
better-exceptions>=0.3.3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 121 |
send2trash>=1.8.2
|
| 122 |
watchdog>=3.0.0
|
|
|
|
|
|
|
| 123 |
toml>=0.10.2
|
|
|
|
|
|
|
| 124 |
click>=8.1.7
|
| 125 |
rich>=13.5.2
|
|
|
|
|
|
|
| 126 |
pydantic>=2.3.0
|
|
|
|
|
|
|
| 127 |
typing-extensions>=4.7.1
|
|
|
|
|
|
|
| 128 |
more-itertools>=10.1.0
|
| 129 |
toolz>=0.12.0
|
|
|
|
|
|
|
| 130 |
regex>=2023.8.8
|
| 131 |
chardet>=5.2.0
|
| 132 |
+
netifaces>=0.11.0
|
| 133 |
|
| 134 |
+
# =============================================================================
|
| 135 |
+
# CRITICAL ADDITIONS for MatAnyone tensor compatibility
|
| 136 |
+
# =============================================================================
|
| 137 |
+
# Image processing libraries MatAnyone expects
|
| 138 |
+
imgaug>=0.4.0
|
| 139 |
+
# OpenCV full version (not headless) for complete compatibility
|
| 140 |
+
opencv-contrib-python==4.8.1.78
|
| 141 |
+
# Additional tensor processing libraries
|
| 142 |
+
tensorboard>=2.14.0
|
| 143 |
+
# Ensure proper CUDA tensor operations
|
| 144 |
+
nvidia-cublas-cu12>=12.1.0
|
| 145 |
+
nvidia-cuda-runtime-cu12>=12.1.0
|