Spaces:
Sleeping

video-upscaler-v2 / README.md
kramp's picture
kramp HF Staff
Pin python_version=3.10: deepfilterlib wheels are cp310-only (build was resolving on py3.12)
c14a6df verified
|
Raw History Blame Contribute Delete
1.95 kB
---
title: Video Upscaler
emoji: 🎬
colorFrom: blue
colorTo: purple
sdk: gradio
sdk_version: "6.14.0"
python_version: "3.10" # deepfilterlib wheels are cp310-only; verified on py3.10
app_file: app.py
pinned: false
hardware: zero-gpu
---
# Video Upscaler β€” Image + Audio
Upscale the visual quality and audio fidelity of a video.
**Limits:** max 10 minutes, max 600 MB, output capped at 4K.
## How it works
- **Video**: [Real-ESRGAN `realesr-animevideov3`](https://github.com/xinntao/Real-ESRGAN) (ProGNET β€” temporal propagation trained into the weights) via [spandrel](https://github.com/vchapple/spandrel), streamed frame-by-frame through ffmpeg pipes, plus an optional 3-tap temporal **deflicker** pass with scene-cut detection. Processing is chunked into ~45 s segments, one ZeroGPU allocation each.
- **Audio** (task-routed, music-first):
- *Music*: [FlashSR](https://huggingface.co/laion/FlashSR_One-step_Versatile_Audio_Super-resolution) ([arXiv 2501.10807](https://arxiv.org/abs/2501.10807)) β€” one-step distilled audio super-resolution to 48 kHz, SOTA on music bandwidth extension, ~100Γ— realtime, stereo preserved. 120 s chunks.
- *Mixed / general*: same FlashSR model on the raw mix.
- *Speech*: [DeepFilterNet3](https://github.com/Rikorose/DeepFilterNet) denoise β†’ [Resemble Enhance](https://github.com/resemble-ai/resemble-enhance) (44.1 kHz restoration), 60 s chunks.
## GPU time (ZeroGPU)
| Job | Approx. GPU time |
|---|---|
| 720p β†’ 2x, 1 min video | ~0.5–1 min |
| 720p β†’ 4x, 1 min video | ~1–3 min |
| Music audio (FlashSR), 10 min video | ~1–2 min |
| Speech audio (DFN3 + Resemble), 1 min | ~1 min |
Free accounts have 5 min of ZeroGPU quota per day, PRO 40 min β€” long videos (especially with the Music audio route) need a PRO account.
[![Built with ML Intern](https://huggingface.co/datasets/huggingface/badges/resolve/main/built-with-ml-intern-sm.svg)](https://hf.co/chat?mode=ml-intern)