
restormer_deraining
Diffusion and generative133 ops58.7K params
Restormer for dual-pixel defocus deblurring: a restoration Transformer with attention 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_dual_pixel_defocus: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 defocus deblurring from dual-pixel data.
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. Training in the paper is progressive: the network sees smaller image patches in the early epochs and gradually larger patches later.
Defocus deblurring is evaluated on the DPDD test set of 37 indoor and 39 outdoor scenes, in two settings: single-image and dual-pixel. On the combined scenes the paper reports a gain of about 0.6 dB over IFAN, the previous best method in its comparison. Against Uformer, another Transformer model, it reports a gain of 1.01 dB PSNR.
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},
}