All models

nafnet_width64_gopro_deblur

An image restoration network with no nonlinear activation functions, set up for deblurring.

121 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
477.5K
Operations
121
Framework
PyTorch
Recurrent
No
Published
Lecture Notes in Computer Science (arXiv 2022)
Authors
Liangyu Chen, Xiaojie Chu, Xiangyu Zhang, Jian Sun
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
m12043
Graph hash
3ebe88d4a851b885000f4dba83d8df7f4cb0b0efcd2f792360eca3f87d5ede49
Skeleton hash
35019a7a8dbca2be4072d728e2cdcc0ab354c2e4fcd4e758a174e399a44fdfc9
Architecture hash
20fd9e704384251a1711a86ebd87624cd97d61d837706f73360920629b464b70
Diagram SHA-256
a89ed4fde2a8059f4c9e93a8f811009ba78f33f0304ede9e3b1e6fd5b3538c1a
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.nafnet_width64_gopro_deblur:build: build({})

What it is

NAFNet is an image restoration network built without nonlinear activation functions: no ReLU, GELU or Sigmoid anywhere in it. The name stands for Nonlinear Activation Free Network. The paper's starting point is that the growing system complexity of restoration methods makes them harder to analyze and compare. It first builds a baseline on a single-stage UNet, starting from a plain block of convolution, ReLU and shortcut.

Two replacements then remove the nonlinear activations from that baseline. GELU is replaced by SimpleGate, which divides the feature map into two parts along the channel dimension and multiplies them. Channel attention is replaced by Simplified Channel Attention, which keeps its two main roles: aggregating global information and letting channels interact.

For its benchmark applications the paper enlarges the network by increasing the width from 32 to 64. On GoPro deblurring it reports 33.69 dB PSNR, 0.38 dB above the previous best result at the time, with 8.4% of that method's computational cost. The paper also notes that NAFNet can be scaled from 1.1 GMACs to 65 GMACs.

Key idea. The paper builds a simple restoration baseline and shows that its nonlinear activation functions can be replaced by multiplication or removed, which yields NAFNet.

  • NAFNet
  • nonlinear activation free network
  • simple baselines for image restoration
  • image deblurring
  • GoPro deblurring
  • image restoration
  • SimpleGate
  • simplified channel attention
  • image denoising

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

Cite the paper

@misc{chen2022simplebaselinesimagerestoration,
      title={Simple Baselines for Image Restoration}, 
      author={Liangyu Chen and Xiaojie Chu and Xiangyu Zhang and Jian Sun},
      year={2022},
      eprint={2204.04676},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2204.04676}, 
}