
swinir_classical_sr_x2
Diffusion and generative242 ops91.4K params
SwinIR set up for classical image super-resolution at scale factor 3, built on the Swin Transformer.
Diffusion and generative · 242 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.
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.
How this diagram was made
menagerie.classics.swinir:build_swinir_classical_sr_x3: build({}) About this model's family
SwinIR is an image restoration model based on the Swin Transformer: it restores a high-quality image from a low-quality one, such as a downscaled, noisy or compressed image. At the time, the paper says, the leading restoration methods were based on convolutional neural networks and few attempts had been made with Transformers.
The network has three parts: shallow feature extraction, deep feature extraction and high-quality image reconstruction. A convolution layer extracts the shallow feature, which goes directly to the reconstruction module to preserve low-frequency information. The deep part is a stack of residual Swin Transformer blocks (RSTB), each with several Swin Transformer layers, a convolution layer at the end and a residual connection. For super-resolution, the reconstruction module upsamples the feature with a sub-pixel convolution layer.
For classical image super-resolution, the task in this model's name, the paper generally sets the RSTB number, layers per block, window size, channel number and attention head number to 6, 6, 8, 180 and 6. That setting is trained with only an L1 pixel loss. The paper reports that SwinIR trained on DIV2K achieved the best performance on almost all five benchmark datasets for all scale factors among the methods it compared, with a maximum PSNR gain of 0.26dB on Manga109 for scale factor 4. It also reports 11.8M parameters for SwinIR, against 115.5M for IPT, another Transformer-based model.
Key idea. SwinIR applies the Swin Transformer to image restoration, placing residual Swin Transformer blocks between a convolutional shallow feature extractor and a reconstruction module.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@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},
}