
PANet-ResNet18
Documents and OCR52 ops191.5K params
A 272K-parameter super-resolution net whose pixel attention weights every position of every channel.
Diffusion and generative · 254 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.
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.
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.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@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},
}