
swinir_color_jpeg_car
Image classification240 ops58.9K params
A Swin Transformer network that removes noise from a grayscale image.
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.
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_gray_denoising: build({}) SwinIR is an image restoration model based on the Swin Transformer. This model is the version for grayscale image denoising, one of the six settings the paper tests.
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. Denoising needs no upsampling, so the reconstruction module is a single convolution layer. The network predicts the residual between the low-quality input and the high-quality image, not the image itself.
For denoising the paper trains with the Charbonnier loss. In its denoising comparisons the paper reports a margin of up to 0.3dB over the earlier DRUNet on the Urban100 dataset. The paper reports 12.0M parameters for SwinIR and 32.7M for DRUNet.
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.
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},
}