Instructions to use W-Shuoyan/OSDEnhancer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use W-Shuoyan/OSDEnhancer with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("W-Shuoyan/OSDEnhancer", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Upload folder using huggingface_hub
Browse files- .gitattributes +1 -0
- README.md +100 -0
- figures/framework.png +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
figures/framework.png filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Taming Real-World Space-Time Video Super-Resolution with One-Step Diffusion (arXiv 2026)
|
| 2 |
+
|
| 3 |
+
**Authors**: [Shuoyan Wei](https://github.com/W-Shuoyan)<sup>1</sup>, [Feng Li](https://lifengcs.github.io/)<sup>2,\*</sup>, Chen Zhou<sup>1</sup>, [Runmin Cong](https://rmcong.github.io)<sup>3</sup>, [Yao Zhao](https://scholar.google.com/citations?user=474TbQYAAAAJ&hl=en&oi=ao)<sup>1</sup>, [Huihui Bai](https://scholar.google.com/citations?user=iXuCUcQAAAAJ&hl=en&oi=ao)<sup>1</sup>
|
| 4 |
+
|
| 5 |
+
<sup>1</sup>*Beijing Jiaotong University*, <sup>2</sup>*Hefei University of Technology*, <sup>3</sup>*Shandong University*
|
| 6 |
+
|
| 7 |
+
<small><sup>\*</sup>Corresponding Author</small>
|
| 8 |
+
|
| 9 |
+
[](https://arxiv.org/abs/2601.20308)
|
| 10 |
+
[](https://huggingface.co/W-Shuoyan/OSDEnhancer)
|
| 11 |
+
[](https://github.com/W-Shuoyan/OSDEnhancer)
|
| 12 |
+
|
| 13 |
+
This repository contains the reference code for the paper "[**Taming Real-World Space-Time Video Super-Resolution with One-Step Diffusion**](https://arxiv.org/pdf/2601.20308)".
|
| 14 |
+
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+

|
| 19 |
+
|
| 20 |
+
**In this paper, we propose OSDEnhancer, the first framework that achieves real-world STVSR in one-step diffusion.** Given a low-resolution and low-frame-rate video as input, OSDEnhancer generates a high-resolution and high-frame-rate video.
|
| 21 |
+
|
| 22 |
+
OSDEnhancer begins with a linear initialization to establish essential spatiotemporal structures and adapt the model for one-step reconstruction. It then applies a divide-and-conquer strategy, introducing the temporal coherence (TC) and texture enrichment (TE) LoRAs that progressively specialize in inter-frame dynamics modeling and fine-grained texture recovery, respectively, while collaborating during inference for enhanced overall performance. A bidirectional VAE decoder employs deformable recurrent blocks to leverage the multi-scale structure of the vanilla VAE, enhancing latent-to-pixel reconstruction through joint multi-scale deformable aggregation and inter-frame feature propagation.
|
| 23 |
+
|
| 24 |
+
## πNews
|
| 25 |
+
|
| 26 |
+
- β
**[May 2026]** The inference code and pretrained checkpoints are now available π [](https://github.com/W-Shuoyan/OSDEnhancer) [](https://huggingface.co/W-Shuoyan/OSDEnhancer)
|
| 27 |
+
- β
**[Jan 2026]** The arXiv version of our paper has been released π [](https://arxiv.org/abs/2601.20308)
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
## π Installation
|
| 31 |
+
|
| 32 |
+
```shell
|
| 33 |
+
git clone https://github.com/W-Shuoyan/OSDEnhancer.git
|
| 34 |
+
cd OSDEnhancer
|
| 35 |
+
conda create -n OSDEnhancer python=3.10
|
| 36 |
+
conda activate OSDEnhancer
|
| 37 |
+
pip install torch==2.8.0+cu128 torchvision==0.23.0+cu128 --index-url https://download.pytorch.org/whl/cu128
|
| 38 |
+
pip install -r requirements.txt
|
| 39 |
+
```
|
| 40 |
+
|
| 41 |
+
## π Usage
|
| 42 |
+
|
| 43 |
+
### Pretrained Checkpoints
|
| 44 |
+
Download the pretrained checkpoint below.
|
| 45 |
+
| Model Name| Base Model | Download Link π|
|
| 46 |
+
|---|---|---|
|
| 47 |
+
| OSDEnhancer-v1.0 | [CogVideoX1.5-5B](https://huggingface.co/zai-org/CogVideoX1.5-5B) | [π€ Hugging Face](https://huggingface.co/W-Shuoyan/OSDEnhancer) |
|
| 48 |
+
|
| 49 |
+
|
| 50 |
+
The checkpoint directory should be organized as follows:
|
| 51 |
+
```text
|
| 52 |
+
ckpt/
|
| 53 |
+
βββ transformer/
|
| 54 |
+
β βββ config.json
|
| 55 |
+
β βββ diffusion_pytorch_model-00001-of-00002.safetensors
|
| 56 |
+
β βββ diffusion_pytorch_model-00002-of-00002.safetensors
|
| 57 |
+
β βββ diffusion_pytorch_model.safetensors.index.json
|
| 58 |
+
βββ vae/
|
| 59 |
+
β βββ config.json
|
| 60 |
+
β βββ diffusion_pytorch_model.safetensors
|
| 61 |
+
βββ scheduler/
|
| 62 |
+
β βββ scheduler_config.json
|
| 63 |
+
βββ prompt_embeddings/
|
| 64 |
+
βββ empty.safetensors
|
| 65 |
+
```
|
| 66 |
+
|
| 67 |
+
### Inference
|
| 68 |
+
|
| 69 |
+
Run OSDEnhancer on an input video:
|
| 70 |
+
|
| 71 |
+
```bash
|
| 72 |
+
python inference.py \
|
| 73 |
+
--input demo/input.mp4 \ # Path to the input MP4 video
|
| 74 |
+
--output demo/output.mp4 \ # Path to save the enhanced MP4 video
|
| 75 |
+
--ckpt_path ckpt \ # Path to the pretrained checkpoint directory
|
| 76 |
+
--spatial_scale 4 \ # Spatial upsampling scale
|
| 77 |
+
--temporal_scale 2 # Temporal upsampling scale
|
| 78 |
+
```
|
| 79 |
+
We recommend setting `spatial_scale = 4` and `temporal_scale = 2`. For long videos or high-resolution inputs, enable chunk-based inference by additionally setting `--chunk_num` and `--overlap`, where `--chunk_num` should satisfy the form of `8N+1`.
|
| 80 |
+
|
| 81 |
+
## π§ Contact
|
| 82 |
+
|
| 83 |
+
If you meet any problems, please feel free to contact us via email: shuoyan.wei@bjtu.edu.cn
|
| 84 |
+
|
| 85 |
+
## π‘ Cite
|
| 86 |
+
|
| 87 |
+
If you find this work useful for your research, please consider citing our paper π
|
| 88 |
+
|
| 89 |
+
```shell
|
| 90 |
+
@article{wei2026osdenhancer,
|
| 91 |
+
title={Taming Real-World Space-Time Video Super-Resolution with One-Step Diffusion},
|
| 92 |
+
author={Wei, Shuoyan and Li, Feng and Zhou, Chen and Cong, Runmin and Zhao, Yao and Bai, Huihui},
|
| 93 |
+
journal={arXiv preprint arXiv:2601.20308},
|
| 94 |
+
year={2026}
|
| 95 |
+
}
|
| 96 |
+
```
|
| 97 |
+
|
| 98 |
+
## π Acknowledgement
|
| 99 |
+
|
| 100 |
+
OSDEnhancer is built upon [CogVideoX](https://github.com/zai-org/CogVideo). We also sincerely thank the authors of [DOVE](https://github.com/zhengchen1999/DOVE), [EvEnhancer](https://github.com/W-Shuoyan/EvEnhancer), and [RealBasicVSR](https://github.com/ckkelvinchan/realbasicvsr) for their excellent open-source implementations, which provided valuable references for this project.
|
figures/framework.png
ADDED
|
Git LFS Details
|