Spaces:
Build error
Build error
File size: 3,330 Bytes
66c8ea4 77426be 66c8ea4 77426be 66c8ea4 77426be 66c8ea4 77426be | 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 | ---
title: Zero2x Video Upscaler
emoji: ποΈ
colorFrom: blue
colorTo: purple
sdk: gradio
sdk_version: 4.44.0
app_file: app.py
pinned: false
license: mit
hardware: t4-small
---
# ποΈ Zero2x AI Video Upscaler
Professional AI-powered video upscaling using state-of-the-art deep learning models with advanced region detection and motion analysis.
## β¨ Features
- π **Multiple AI Models**: RealESRGAN, SwinIR, CUGAN for different video types
- β‘ **GPU Acceleration**: Optimized for Hugging Face Spaces GPU
- π¬ **Advanced Processing**: Smart region detection with SAD algorithm
- π **Motion Detection**: ORB-based motion analysis for optimal frame processing
- π§ **Intelligent Upscaling**: Hybrid full-frame and region-based processing
- π― **Memory Efficient**: Optimized CUDA memory management
## π§βπ¬ AI Models Supported
- **RealESRGAN x4+**: Best for realistic videos and photos (4x upscaling)
- **RealESRGAN x2+**: Faster processing for moderate enhancement (2x upscaling)
- **RealESRGAN Anime**: Specialized for anime and cartoon content
- **SwinIR 4x**: Advanced transformer-based upscaling for maximum detail
- **CUGAN**: Optimized for animated content upscaling
## π How to Use
1. **Upload Video**: Drag and drop or click to upload any video file
2. **Choose Model**: Select the best AI model for your content type
3. **Configure Settings**: Adjust advanced parameters for optimal results
4. **Process**: Click "Upscale Video" and wait for the AI enhancement
5. **Download**: Save your enhanced high-resolution video
## βοΈ Advanced Features
- **Region Detection**: Only upscale changed areas for faster processing
- **Motion Analysis**: Automatic detection of camera movement and scene changes
- **Similarity Tracking**: Skip identical frames to save processing time
- **Segmented Processing**: Break videos into manageable segments
- **Full-Frame Fallback**: Automatic switching between region and full-frame modes
## π‘ Tips for Best Results
- **Anime/Cartoons**: Use RealESRGAN Anime models
- **Real Videos**: Use RealESRGAN x4+ for maximum quality
- **Speed vs Quality**: Use x2+ models for faster processing
- **Enable Regions**: Turn on region detection for significantly faster processing
- **Large Videos**: The system handles high-resolution inputs efficiently
## π οΈ Technical Details
- **Framework**: Gradio + PyTorch + OpenCV
- **Algorithms**: Custom SAD (Segmented Absolute Differences) + ORB motion detection
- **Models**: Spandrel model loading system for universal compatibility
- **GPU**: CUDA-accelerated processing with automatic memory management
- **Processing**: Hybrid approach combining region-based and full-frame upscaling
## π Performance
- **Memory Optimized**: Efficient GPU memory usage with automatic cleanup
- **Smart Processing**: Skips duplicate frames and processes only changed regions
- **Progress Tracking**: Real-time progress updates with time estimation
- **Batch Optimized**: Handles multiple frames efficiently
## π Links
- **Original Project**: Zero2x Video Upscaler
- **Models**: Compatible with standard upscaling model formats (.pth)
- **Documentation**: Comprehensive parameter explanations in the interface
---
*ποΈ Professional AI video upscaling with intelligent region detection and motion analysis*
|