swinir_lightweight_sr_x4
A small Swin Transformer network for lightweight image super-resolution at a scale factor of 4.
Diffusion and generative · 240 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
- 71.1K
- Operations
- 240
- Framework
- PyTorch
- Recurrent
- No
- Published
- ICCV Workshops (arXiv 2021)
- Cited by
- 4,689 (as of 9 October 2026)
- Authors
- Jingyun Liang, Jiezhang Cao, Guolei Sun and others
- 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
- m12183
- Graph hash
- aad5d63a448ce6e7465cd43e11d9d575112db4bcbef470427e233ec7e6379d42
- Skeleton hash
- 9696d37b6d223e1945395630dd003d4249f0bb70c5067a05f8b5fa26f3255c96
- Architecture hash
- 31c2e719dd06debd99e2830dc797e4088c31de35a278ac53c929d3ef185fb025
- Diagram SHA-256
- ad59fbd16157e854aa853fab6d6c8ea0fe317c9a3396cf0915856df38f3e777c
- TorchLens version
- 2.35.3
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
How this diagram was made
menagerie.classics.swinir:build_swinir_lightweight_sr_x4: build({}) What it is
SwinIR is an image restoration model based on the Swin Transformer. This model is the small version for lightweight image super-resolution at a scale factor of 4, for which the paper cuts the network to 4 RSTBs and 60 channels.
The network has three parts: shallow feature extraction, deep feature extraction and image reconstruction. A convolution layer extracts the shallow features, which go straight to the reconstruction module to preserve low-frequency information. The deep features come from a stack of residual Swin Transformer blocks (RSTB), each made of Swin Transformer layers, a convolution layer and a residual connection. Inside those layers self-attention is computed within local windows, and regular and shifted window partitions alternate so that information crosses window borders. For super-resolution the reconstruction module upsamples the features with a sub-pixel convolution layer.
Against lightweight super-resolution methods, the paper reports a PSNR margin of up to 0.53dB on benchmark datasets at similar parameter and operation counts. The methods it is compared with are CARN, FALSR-A, IMDN, LAPAR-A and LatticeNet. The paper counts multiply-accumulate operations on a 1280 × 720 high-quality image.
Key idea. The paper builds an image restoration network from residual Swin Transformer blocks and reports gains over earlier methods on super-resolution, denoising and JPEG artifact reduction with fewer parameters.
- SwinIR
- swinir lightweight sr x4
- lightweight image super-resolution
- image super-resolution
- image restoration
- x4 upscaling
- residual swin transformer block
- RSTB
- shifted window attention
- efficient super-resolution
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{liang2021swinirimagerestorationusing,
title={SwinIR: Image Restoration Using Swin Transformer},
author={Jingyun Liang and Jiezhang Cao and Guolei Sun and Kai Zhang and Luc Van Gool and Radu Timofte},
year={2021},
eprint={2108.10257},
archivePrefix={arXiv},
primaryClass={eess.IV},
url={https://arxiv.org/abs/2108.10257},
}