File size: 3,298 Bytes
81e0df2 8987747 d4f305e 8987747 d4f305e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 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 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
---
title: Video Background Replacement
emoji: 🎬
colorFrom: blue
colorTo: green
sdk: gradio
sdk_version: "4.44.1"
app_file: app.py
pinned: false
license: mit
python_version: "3.10"
---
# ============================================================================
# PYTORCH CUDA WHEELS (CUDA 12.1)
# ============================================================================
--extra-index-url https://download.pytorch.org/whl/cu121
# ============================================================================
# CORE PYTHON DEPENDENCIES (Python 3.10)
# ============================================================================
numpy==1.26.4
Pillow>=10.0.1,<11.0
setuptools>=65.7.0,<69.0
wheel>=0.40.0,<1.0
typing-extensions>=4.12.2,<5.0
# ============================================================================
# WEB FRAMEWORK & UI
# ============================================================================
gradio==4.44.1
gradio_client==1.3.0
# ============================================================================
# DEEP LEARNING & AI MODELS (Python 3.10 + CUDA 12.1)
# ============================================================================
torch==2.1.0
torchvision==0.16.0
torchaudio==2.1.0
# Hugging Face ecosystem - MatAnyOne compatible versions
transformers==4.43.3
huggingface_hub==0.24.5
accelerate>=0.20.3,<1.0
safetensors==0.4.3
# Model utilities - MatAnyOne requirements
einops==0.8.0
timm>=0.9.16
# ============================================================================
# COMPUTER VISION & VIDEO PROCESSING
# ============================================================================
opencv-python-headless==4.10.0.84
# Video processing
moviepy>=1.0.3,<2.0
imageio==2.34
imageio-ffmpeg>=0.4.8,<1.0
ffmpeg-python>=0.2.0,<1.0
# ============================================================================
# SCIENTIFIC COMPUTING
# ============================================================================
scipy==1.13.1
tqdm>=4.66.1,<5.0
# ============================================================================
# CONFIGURATION & UTILITIES
# ============================================================================
hydra-core==1.3.2
omegaconf==2.3.0
diskcache>=5.6.3,<6.0
psutil>=5.9.0,<6.0
# ============================================================================
# MATANYONE DEPENDENCIES (Python 3.10 compatible)
# ============================================================================
easydict==1.10
gdown>=4.7.1
hickle>=5.0
cchardet>=2.1.7
gitpython>=3.1
netifaces>=0.11.0
pycocotools>=2.0.7
tensorboard>=2.11
protobuf<4 # Uncommented to prevent potential conflicts
# ============================================================================
# GIT DEPENDENCIES (Model Repositories)
# ============================================================================
# SAM2 (Python 3.10+)
git+https://github.com/facebookresearch/segment-anything-2.git@2b90b9f5ceec907a1c18123530e92e794ad901a4
# MatAnyOne
git+https://github.com/pq-yang/MatAnyOne.git@2234ce5cdc487749515518bd035b5e18bccea3da
# Thin Plate Spline (MatAnyOne dependency)
git+https://github.com/cheind/py-thin-plate-spline@f6995795397118b7d0ac01aecd3f39ffbfad9dee
*For deployment on Hugging Face Spaces, see the space configuration in the app header.* |