RNAN
A deep residual CNN for image restoration whose blocks rescale features with local and non-local attention masks.
566 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.
At a glance
- Parameters
- 9M
- Operations
- 566
- Framework
- PyTorch
- Recurrent
- No
- Published
- ICLR 2019
- Cited by
- 596 (as of 29 October 2026)
- Authors
- Yulun Zhang, Kunpeng Li, Kai Li and others
- Source
- GitHub: yulunzhang/RNAN
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
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.
Details
- Stable ID
- m19671
- Graph hash
- 5d3c51926628e2301818466de186070c2b6415cfefc0bd704d0a71c00fc4d328
- Skeleton hash
- 2b52fb98de94ab07fe290bceaced63a9300a1474ca2a54439096e3fb7cb9e2ce
- Architecture hash
- 6d95f1c9f60e294919b97b88248856dcc5c6b49b451cda6a39d153942cc87c23
- Diagram SHA-256
- f8332ac523c0c954b47406515ff2e094d4697c5f8f625542cb80ec1597d32d9a
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
RNAN (residual non-local attention network) is a convolutional network for image restoration, the recovery of a high-quality image from a corrupted one. The paper's argument is that earlier networks work locally and treat all spatial positions and channels alike, although corruption is spread unevenly across an image. The same design is applied to image denoising, demosaicing, compression artifacts reduction and super-resolution.
Each attention block has a trunk branch that extracts features and a mask branch that learns an attention map used to rescale them. The mask branch enlarges its receptive field with large-stride convolution and deconvolution instead of max pooling, which the authors say would lose image detail. In the non-local blocks, a non-local operation inside the mask branch takes all positions of the feature map into account at once. A block's output is the trunk features multiplied by the mask, plus the block's input, a form the authors chose because low-level features matter more in restoration than in classification.
The paper's configuration uses 10 attention blocks, 2 of them non-local. The authors keep the non-local count at 2 because the operation consumes much time. In the paper's color denoising comparison on Urban100, RNAN with 10 blocks has the best PSNR and the highest parameter count of the methods listed.
Key idea. The paper builds a deep restoration network from residual local and non-local attention blocks, whose mask branches rescale trunk features, and trains it with residual attention learning.
- RNAN
- residual non-local attention network
- image restoration
- image denoising
- demosaicing
- compression artifact reduction
- super-resolution
- non-local attention
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{zhang2019residualnonlocalattentionnetworks,
title={Residual Non-local Attention Networks for Image Restoration},
author={Yulun Zhang and Kunpeng Li and Kai Li and Bineng Zhong and Yun Fu},
year={2019},
eprint={1903.10082},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/1903.10082},
}