StableSR
A diffusion-based image super-resolution model finetuned from Stable Diffusion with a time-aware encoder.
Diffusion and generative · 2,148 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Parameters
- 971.4M
- Operations
- 2,148
- Framework
- PyTorch
- Recurrent
- No
- Published
- IJCV 2024
- Cited by
- 457 (as of 30 October 2026)
- Authors
- Jianyi Wang, Zongsheng Yue, Shangchen Zhou and others
- Source
- GitHub: IceClear/StableSR
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m20590
- Graph hash
- fe537a7d326dc9b504429155e93859ec02da6599dba83492e6d0e35a90787943
- Skeleton hash
- 0eac7a4a7eb6e2bbd7ef766b8fe7e61402510d944da8843400fa487476e45d2b
- Architecture hash
- e3aeafaa498fe2d89c67c6a57b85725fd40e31cb270fa13ee6a079b3e738dc24
- Diagram SHA-256
- fc6e3bef10e9065fa0a02e83052e3853364aa7cef9acadd1317a9aaca2ed52d3
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
StableSR is an image super-resolution model finetuned from Stable Diffusion, adding a time-aware encoder and a controllable feature wrapping (CFW) module. Following Stable Diffusion, it works on latents: a fixed autoencoder downsamples images by a factor of 8 into four-channel latent maps. These latent representations are fed to the time-aware encoder as guidance. The authors conjecture that relying on low-resolution images rather than text prompts is why they observe no obvious bias.
The diffusion model is finetuned on the DF2K (DIV2K and Flickr2K) and OST datasets. The CFW module is then trained on 100k synthetic low- and high-resolution pairs generated by the finetuned diffusion model. A StableSR-Turbo checkpoint built on SD-Turbo is described as achieving comparable performance with only 4-steps sampling.
The model card notes that StableSR still requires multiple steps to generate an image, which is much slower than GAN-based approaches. It also notes that StableSR sometimes cannot keep 100% fidelity due to its generative nature.
Key idea. StableSR adapts a pre-trained Stable Diffusion model to image super-resolution by adding a time-aware encoder and a controllable feature wrapping module.
- StableSR
- StableSR-Turbo
- image super-resolution
- real-world super-resolution
- diffusion prior
- Stable Diffusion upscaler
- controllable feature wrapping
- CFW
- image upscaling
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{wang2024exploitingdiffusionpriorrealworld,
title={Exploiting Diffusion Prior for Real-World Image Super-Resolution},
author={Jianyi Wang and Zongsheng Yue and Shangchen Zhou and Kelvin C. K. Chan and Chen Change Loy},
year={2024},
eprint={2305.07015},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2305.07015},
}