RedMediaTech/ODTSR
소개
[CVPR2026] ODTSR: This repo is the official implementation of "One-Step Diffusion Transformer for Controllable Real-World Image Super-Resolution"
디자인 및 미디어측정된 스타 증가
- in 24h
- 0
- in 7 days
- 기록 수집 중
- in 15 days
- 기록 수집 중
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Original[CVPR2026] One-Step Diffusion Transformer for Controllable Real-World Image Super-Resolution
Yushun Fang1,2,* Yuxiang Chen2,* Shibo Yin2,† Qiang Hu1,† Jiangchao Yao1
Ya Zhang1 Xiaoyun Zhang1,† Yanfeng Wang1
1Shanghai Jiao Tong University 2Xiaohongshu Inc
*Equal contribution †Corresponding author
⏰ Update
- 2026.02.21: The paper is accepted by CVPR2026!
- 2025.11.25: The paper (including supplementary materials) is released on arXiv.
- 2025.11.21: Code is released.
:star: If ODTSR is helpful to you, please help star this repo. Thanks!
🌟 Overview Framework
- Based on Qwen-Image, we train a single-step SR model using LoRA, with the model parameters reaching 20B.
- With our proposed Noise-hybrid Visual Stream and Fidelity-aware Adversarial Training, the SR process can be jointly controlled by prompts as well as a Fidelity Weight $f$.
- English and Chinese prompts are supported, and the model demonstrates strong performance in text images, fine-grained textures and face images.
😍 Visual Results
Results with fixed prompts & high fidelity
Under the high-fidelity setting with a fixed prompt, our model produces restorations that adhere more closely to the LQ input while remaining natural, significantly reducing the sense of AI processing.
Text Real-ISR Results
Controllable Real-ISR Results
Qualitative results of controllable SR with prompt and adjustable Fidelity Weight (denoted as $f$) on Div2k-val dataset. As $f$ decreases from 1 to 0, detail generation and prompt adherence gradually strengthen.
⚙ Dependencies and Installation
- Prepare conda env:
conda create -n yourenv python=3.11
- Install
pytorch(we recommendtorch==2.6.0):
pip install torch==2.6.0 torchvision==0.21.0 torchaudio==2.6.0 -f https://mirrors.aliyun.com/pytorch-wheels/cu124/
- Install this repo (based on DiffSynth-Studio). The required packages will be automatically installed:
cd xxxx/ODTSR
pip3 install -e . -v -i https://mirrors.cloud.tencent.com/pypi/simple
- (For training) Install
basicsr:
pip install basicsr
Note:
You can apply the the following command to fix a bug in basicsr. Make sure to replace /opt/conda with the path to your own conda environment:
sed -i '8s/from torchvision.transforms.functional_tensor import rgb_to_grayscale/from torchvision.transforms._functional_tensor import rgb_to_grayscale/' /opt/conda/lib/python3.11/site-packages/basicsr/data/degradations.py
Download base model to your disk: Qwen-Image
(For training) Download base model to your disk: Wan2.1-T2V-1.3B
(For inference) Download the trained ODTSR model weight: huggingface
🍭 Inference with script
Note: you need at least 40GB GPU memory to infer. We will support CPU offload to reduce GPU memory usage soon.
We now supports tile-based processing (tile size: 512×512), enabling input of arbitrary resolutions and SR at any scale factor.
Please replace experiments/qwen_one_step_gan/${EXP_DATE}/checkpoints/net_gen_iter_10001.pth with the trained ODTSR model weight.
sh examples/qwen_image/test_gan.sh
🎦 Inference with gradio
sh examples/qwen_image/test_gradio.sh

🔥 Training
To be updated.
License
This project is released under the Apache 2.0 license.
Acknowledgement
This project is based on DiffSynth-Studio. We also leveraged some of PiSA-SR's code in dataloader part. Thanks for the awesome work!
관련 프로젝트 살펴보기
불러오는 중…