All models

super_image_han_x4

HAN upscales images with layer and channel-spatial attention over an RCAN backbone.

Diffusion and generative · 2,048 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

This diagram has 2,048 operations (57 KB) and is drawn when you ask.

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

Family
HAN
Parameters
15.9M
Operations
2,048
Framework
PyTorch
Recurrent
No
Published
ECCV 2020
Cited by
845 (as of 17 October 2026)
Authors
Ben Niu, Weilei Wen, Wenqi Ren and others
License
Apache-2.0
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
m10379
Graph hash
c3c6c72f1866b6e826a527b8b5cce0037716e54fab2308531364a5748c57cb79
Skeleton hash
6a12f9bd21d11fe2ff752dd80632d71ef7ec1361dcd59846987b4e700deb9cf8
Architecture hash
686b4c58890ce59a64ca2d70dd9d47305c65db70b4f24bd9e4b510be8b9a46ab
Diagram SHA-256
968cba526b274f9476f3cfa92c4cc0c5d9721f7a2fbe1fa8dd5bc6923806fd32
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

This is the 4x model.

About this model's family

HAN, the Holistic Attention Network, is a single image super-resolution model: its goal is to restore a high resolution image from a single low resolution image. Its starting observation is that channel attention treats each convolution layer as a separate process that misses the correlation among different layers. HAN answers with two modules, a layer attention module (LAM) and a channel-spatial attention module (CSAM), to model the holistic interdependencies among layers, channels, and positions. LAM adaptively emphasizes hierarchical features by considering correlations among layers, while CSAM learns the confidence at all the positions of each channel to selectively capture more informative features.

In the paper's own description, HAN consists of four parts: feature extraction, the layer attention module, the channel-spatial attention module, and the final reconstruction block. The feature extractor is the backbone of RCAN, whose residual groups produce the intermediate features that the layer attention concatenates. As a trade-off between accuracy and speed, CSAM modulates only the last feature layer rather than every intermediate feature map. The two attention outputs are merged by elementwise summation, and a sub-pixel convolution does the final upsampling.

The paper was published at ECCV 2020. The official PyTorch code is built on RCAN. The captured members are the super-image library's HAN models for 2x, 3x and 4x upscaling, pre-trained on DIV2K with 800 training images augmented to 4000. Their training used RGB patches of 64×64 from the LR input together with the corresponding HR patches. On Set5 at 4x the model card reports PSNR/SSIM of 31.21/0.8778 against a bicubic baseline of 28.42/0.8101.

Key idea. A layer attention module and a channel-spatial attention module, on top of an RCAN backbone, that model the holistic interdependencies among layers, channels, and positions for super-resolution.

  • HAN
  • Holistic Attention Network
  • layer attention module
  • LAM
  • channel-spatial attention
  • CSAM
  • single image super-resolution
  • super-image han
  • upscaling
  • DIV2K

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

Cite the paper

@misc{niu2020singleimagesuperresolutionholistic,
      title={Single Image Super-Resolution via a Holistic Attention Network}, 
      author={Ben Niu and Weilei Wen and Wenqi Ren and Xiangde Zhang and Lianping Yang and Shuzhen Wang and Kaihao Zhang and Xiaochun Cao and Haifeng Shen},
      year={2020},
      eprint={2008.08767},
      archivePrefix={arXiv},
      primaryClass={eess.IV},
      url={https://arxiv.org/abs/2008.08767}, 
}