
restormer_deraining
Diffusion and generative133 ops58.7K params
Restormer for motion deblurring: 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_motion_deblur: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 single-image motion deblurring.
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.
For motion deblurring the paper trains only on the GoPro dataset and applies the model directly to the HIDE and RealBlur benchmark datasets. Averaged over GoPro, HIDE, RealBlur-R and RealBlur-J, it reports a gain of 0.47 dB over MIMO-UNet+ and 0.26 dB over MPRNet. It also reports 81% fewer FLOPs than MPRNet.
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},
}