All models

super_image_pan_x4

A 272K-parameter super-resolution net whose pixel attention weights every position of every channel.

Diffusion and generative · 262 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 (31 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

Family
PAN
Parameters
272.4K
Operations
262
Framework
PyTorch
Recurrent
No
Published
ECCV Workshops (arXiv 2020)
Cited by
490 (as of 18 October 2026)
Authors
Hengyuan Zhao, Xiangtao Kong, Jingwen He 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
m10388
Graph hash
5c5f06ce3e6b5947ef435cb98c93e9873fc610db3369696304b16ddd2506f038
Skeleton hash
10ba4a22cfbe5db8cc588289b978df2383aeb2f9e43c5d8a51129a26916ba018
Architecture hash
f20c8357b2367ca8960683895464aa02995fb9747f243a9ee0cd5916615f4311
Diagram SHA-256
755c9d1fcb296c9d716000b749e89e2c760e837ca22cabf6a2d692735944f2cd
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

About this model's family

PAN, the Pixel Attention Network, is a lightweight convolutional neural network for image super resolution. It was built for the AIM 2020 efficient super-resolution challenge, where the team ranked 4th overall, as the entry was inferior in the number of convolutions and activations. What it did win on was size: the entry contains the fewest parameters, only 272K, which is 161K fewer than the 1st, and 415K fewer than the 2nd. The main contribution is called pixel attention (PA), which is inspired by channel attention (CA) and spatial attention (SA). The difference is that PA produces 3D attention maps instead of a 1D attention vector or a 2D map. Mechanically it could hardly be simpler: pixel attention only uses a 1×1 convolution layer and a sigmoid function to obtain the attention maps, which are then multiplied with the input features.

On the basis of PA, the authors propose two building blocks for the main branch and the reconstruction branch, respectively. The SC-PA block has the same structure as the Self-Calibrated convolution but with the PA layer. The U-PA block combines the nearest-neighbor upsampling, convolution and PA layers, and improves the final reconstruction quality with little parameter cost. The LR image is first fed to the FE module, which contains a convolution layer for shallow feature extraction. Then come the stacked SC-PA blocks and a reconstruction module that contains two U-PA blocks and a convolution layer to upsample the features to the HR size. In addition, a global connection path performs a bilinear interpolation on the input and adds it to the reconstruction.

Against the lightweight baselines it was judged on, PAN outperforms CARN on five benchmark datasets for all upscaling factors ×2, ×3 and ×4, with parameters that account for less than 1/5 of CARN. Against SRResNet it obtains higher PSNR on Manga109 and B100 but yields inferior results on the other three datasets. A caveat the authors state plainly: PA is especially useful for small networks, but the effectiveness decreases with the increase of network scales. The three members traced here are PAN models pre-trained on DIV2K for 2x, 3x and 4x image super resolution. They are loaded through the super_image library from the eugenesiow/pan checkpoint, with scale 2, 3 and 4 models available. The card puts the model at just 260k to 270k parameters, about 1mb.

Key idea. Pixel attention generates a 3D (C × H × W) matrix of attention coefficients for all pixels of the feature map, where channel and spatial attention give only a vector or a single map. With it, PAN could achieve similar performance as the lightweight networks SRResNet and CARN, but with only 272K parameters.

  • pan
  • pixel attention network
  • pixel attention
  • efficient super resolution
  • aim 2020
  • sc-pa
  • u-pa
  • super-image
  • lightweight super-resolution

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

Cite the paper

@misc{zhao2020efficientimagesuperresolutionusing,
      title={Efficient Image Super-Resolution Using Pixel Attention}, 
      author={Hengyuan Zhao and Xiangtao Kong and Jingwen He and Yu Qiao and Chao Dong},
      year={2020},
      eprint={2010.01073},
      archivePrefix={arXiv},
      primaryClass={eess.IV},
      url={https://arxiv.org/abs/2010.01073}, 
}