All models

restormer_motion_deblur

Restormer for motion deblurring: a restoration Transformer whose attention runs across channels.

Diffusion and generative · 133 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (16 KB)

Open in a new tab

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.

At a glance

Parameters
58.7K
Operations
133
Framework
PyTorch
Recurrent
No
Published
CVPR 2022
Authors
Syed Waqas Zamir, Aditya Arora, Salman Khan and others
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m12104
Graph hash
9cb6218dab80e8ca47e1961b43399b5a78bb0ab13d6bdde0c11a27f8edf12b80
Skeleton hash
5a4396be9b1c4a006e41c3e69bde87af967f6c78c72d0386f24c0227b585edfb
Architecture hash
6e9170916c03cfc8b9158d5cbcbf5fbd11c70dac282dd04532c6ce38aee696e0
Diagram SHA-256
b4261d3e40e37939e3e93fdaf6e54ae563eac6ab816ce3f7c1b2c60f104fe814
TorchLens version
2.35.3
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

How this diagram was made

menagerie.classics.restormer_motion_deblur:build: build({})

What it is

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.

  • restormer
  • restoration transformer
  • image restoration
  • mdta
  • gdfn
  • transposed attention
  • motion deblurring
  • image deblurring
  • deblur

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@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}, 
}