All models

super_image_pan_x3

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

Diffusion and generative · 254 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 (20 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
261.4K
Operations
254
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
m10387
Graph hash
6af5d1b909153caefd34a3b89706aea938fc55e4c974916bbe133cba8c872bb2
Skeleton hash
eaa5406c24028db62eaf2cc8dc155dcccdace5134ad48575574da570fb54f993
Architecture hash
03308ed04399b275fa0cadb9b32e2360450454bf9b0a3583efc02e25c5c21842
Diagram SHA-256
295a9d4a16db5f3c2b47fec5d007f049e8201659ef8ef24df6b7fee7a09a54cc
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}, 
}