
restormer_motion_deblur
Diffusion and generative133 ops58.7K params
Restormer for image deraining: a restoration Transformer whose attention runs across channels.
Diffusion and generative · 133 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.restormer_deraining:build: build({}) Restormer, short for Restoration Transformer, is a Transformer for image restoration, the task of reconstructing a high-quality image by removing degradations such as noise, blur or rain drops. The paper trains separate models for different restoration tasks, and this one is for image deraining, removing rain from a photo.
The obstacle the paper addresses is that the cost of self-attention grows quadratically with spatial resolution, which makes it infeasible for the high-resolution images common in restoration. Restormer's attention block, called MDTA, applies self-attention across channels rather than across the spatial dimension, so its complexity is linear rather than quadratic. Its feed-forward block, GDFN, adds a gate: the element-wise product of two parallel linear paths, one of them activated with GELU. Both blocks include depth-wise convolutions to encode spatially local context. In the paper's design the network does not output the clean image directly: a final convolution produces a residual image, and the degraded input is added to it.
On five deraining test sets (Test100, Rain100H, Rain100L, Test2800 and Test1200), the paper reports an average gain of 1.05 dB over SPAIR, the best earlier method in its comparison. The largest gain on a single dataset is 2.06 dB, on Rain100L. These PSNR and SSIM scores are computed on the Y channel of the YCbCr color space.
Key idea. Restormer keeps Transformer attention linear in image size by applying it across channels instead of pixels, and pairs it with a gated feed-forward block using depth-wise convolutions.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@misc{zamir2022restormerefficienttransformerhighresolution,
title={Restormer: Efficient Transformer for High-Resolution Image Restoration},
author={Syed Waqas Zamir and Aditya Arora and Salman Khan and Munawar Hayat and Fahad Shahbaz Khan and Ming-Hsuan Yang},
year={2022},
eprint={2111.09881},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2111.09881},
}