All models

SRFormer

A Transformer for single image super-resolution built on permuted self-attention.

2,650 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,650 operations (33 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
SRFormer
Parameters
10.4M
Operations
2,650
Framework
PyTorch
Recurrent
No
Published
ICCV 2023
Cited by
393 (as of 26 October 2026)
Authors
Yupeng Zhou, Zhen Li, Chun-Le Guo and others
License
CC-BY-NC-4.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
m20125
Graph hash
7dd57e365b965973c07bdd5fdf500e5d0c76ac4d7aff5771354c7c99293d3198
Skeleton hash
6fbd9195c8ec978ee76d9efd22b25e79a09df936b0b634bd22ac6ba2907d2d43
Architecture hash
c30e48e919f3cf3fe5ac0e3d704b05d39694e8c8f661000fd92a33a09fbc3ab4
Diagram SHA-256
a55eb353a1ade1f9665a1c8ee4c7fafa3ed0389e3f9b0da663dc73fe35d80cc4
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 model is set up for 2x super-resolution, the setting in which the authors' repository reports 10.40M parameters for SRFormer against 11.75M for SwinIR.

About this model's family

SRFormer is a Transformer-based model for single image super-resolution. It starts from an earlier finding: a larger attention window improves Transformer super-resolution models such as SwinIR, but the computation overhead is also considerable. SRFormer is designed to keep the benefit of large-window self-attention with a smaller computational burden.

Its core is permuted self-attention (PSA), which balances channel and spatial information inside self-attention. In the authors' code, PSA compresses the channel dimension of the keys and values and keeps the channel dimension of the queries. The authors say PSA can be applied to existing super-resolution networks based on window self-attention.

The paper reports a 33.86dB PSNR score on the Urban100 dataset, 0.46dB higher than SwinIR, with fewer parameters and computations. The code repository gives results for classical, lightweight and real-world image super-resolution. A later revision of the paper scales the model up with a larger window size and more channels and names the result SRFormerV2.

Key idea. SRFormer introduces permuted self-attention, which builds large-range pairwise correlations in a super-resolution Transformer with less computation than the window self-attention of SwinIR.

  • srformer
  • srformerv2
  • permuted self-attention
  • psa
  • single image super-resolution
  • image super-resolution
  • image sr
  • lightweight image sr
  • upscaling

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

Cite the paper

@article{srformer2023,
  title = {SRFormer: Permuted Self-Attention for Single Image Super-Resolution},
  author = {Yupeng Zhou and Zhen Li and Chun-Le Guo and Song Bai and Ming-Ming Cheng and Qibin Hou},
  year = {2023},
  journal = {ICCV 2023},
  eprint = {2303.09735}
}