All models

super_image_han_x2

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

Diffusion and generative · 2,046 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,046 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.8M
Operations
2,046
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
m10377
Graph hash
db833057a4767100156b0c07416aab1e6c85ac3a6ba51864779229d1319a1725
Skeleton hash
85fe20f1084403bd35d83a035d935f4b4654fcb8ef10f21d4f7366adf6789d5b
Architecture hash
c6f9629b6b723ef685ccba8c6b3a6b782a6bf43111a137e5ddd1439f285c416d
Diagram SHA-256
d117dc9a7d8f4db75e19ff8035529776f95eeee0504def1ad8bd36a8c4098e87
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 2x 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}, 
}