kopperx/RelayVSR
Tentang
Official implementation of RelayVSR: Large-Small Model Collaboration for Efficient Real-World Video Super-Resolution
Desain dan mediaPertumbuhan bintang terukur
- dalam 24 jam
- +2
- dalam 7 hari
- +19
- dalam 15 hari
- +38
- dalam 1 bulan
- Mengumpulkan riwayat
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
AsliRelayVSR
Large-Small Model Collaboration for Efficient Real-World Video Super-Resolution
Xijun Wang · Xin Li · Zirui Lang · Suhang Yao · Haoran Li · Zhibo Chen
Project Page · Paper · Model Weights
RelayVSR performs collaborative streaming 4× video super-resolution with sparse Wan references and a compact conditional decoder. This repository contains inference code and the project website source.

Demo
The input starts on the left and the 4× output on the right. The divider moves from right to left until the output fills the frame. The watermark strip is cropped from both views. The output area is not resized; the MP4 is 3544×1832 at 24 fps with all 265 frames.
https://github.com/user-attachments/assets/937a6084-3a59-4ccb-9a9c-6f0462693186
Setup
Linux, Python 3.11–3.13 and an NVIDIA GPU:
uv sync --locked --extra cu128
source .venv/bin/activate
Inference
Download the two checkpoints from the
Hugging Face repository into weights/:
uvx hf download kopper/RelayVSR flash.safetensors wan.safetensors --local-dir weights
The expected paths are weights/wan.safetensors and
weights/flash.safetensors, resolved relative to inference.py.
The bundled assets/demo/input.mp4 is used when --input is omitted.
python inference.py \
--output output_x4.mp4
Pass --input path/to/video.mp4 to process another video, or provide an
ordered image directory together with --fps.
The default Flash checkpoint is S, step 60000, EMA, trained with a two-frame
video attention window (current frame and one predecessor) and current-relative
temporal RoPE. Override either path with --wan-checkpoint or --flash-checkpoint.
--window-size 16: generate reference endpoints every 15 frames. Increase this value to let the small model process more intermediate frames.--fps 24: override the input FPS; required for image directories.--max-frames 100: process at most 100 frames.--dtype bf16: inference precision;fp16andfp32are also supported.--overwrite: replace an existing output.
Video FPS is preserved. Output resolution is exactly 4× the input; audio is not copied. Each model loads its own safetensors directly, without runtime adapter merging. Both files contain their model configuration; the Wan file also contains the prompt embeddings.
Citation
@misc{wang2026relayvsr,
title={RelayVSR: Large-Small Model Collaboration for Efficient Real-World Video Super-Resolution},
author={Xijun Wang and Xin Li and Zirui Lang and Suhang Yao and Haoran Li and Zhibo Chen},
year={2026},
eprint={2609.37850},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2609.37850}
}
License
Apache-2.0. The Wan implementation retains its upstream copyright notice. Acknowledgments: Diffusers, Wan and FlashVSR.
Jelajahi proyek terkait
Memuat…