metadata
title: Video Background Replacement
emoji: π¬
colorFrom: blue
colorTo: green
sdk: gradio
sdk_version: 4.44.1
app_file: app.py
pinned: false
license: mit
π¬ Video Background Replacement
Advanced video background replacement using SAM2 + MatAnyone for professional-quality results.
β¨ Features
- High-Quality Segmentation: Precise foreground/background separation
- Two Processing Modes:
- Single-Stage: Fast, direct background replacement
- Two-Stage: Green screen intermediate for cinema-quality edges
- Multiple Background Options:
- Upload custom images
- Use professional presets (gradients, solid colors)
- Generate AI backgrounds (experimental)
- GPU Optimized: Efficient processing with CUDA support (NVIDIA GPUs)
- User-Friendly Interface: Simple Gradio UI with real-time progress tracking
π How to Use
Option 1: Run with Docker (Recommended)
- Build the Docker image:
docker build -t video-bg-replacement .