All models

omnisr_x4

A lightweight super-resolution transformer whose attention works over spatial and channel dimensions.

119 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 (17 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

Parameters
69K
Operations
119
Framework
PyTorch
Recurrent
No
Published
CVPR (arXiv 2023)
Authors
Hang Wang, Xuanhong Chen, Bingbing Ni and others
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
m12048
Graph hash
5477695cefe9847b1f2d1a8f9ffe77bb727de5f316812d62e999856d60adb9e0
Skeleton hash
98d6368604a6480ab3fb7dabeb53c2fc86d638c699dcf460c0ca182c81ba2efb
Architecture hash
b448c20d1a23fd1a6224d0b1864addb1bb0967999c1212c44ad50497fe99473b
Diagram SHA-256
7d9a90ceb0b7107b3849fa6baa3e985c8d7e7729e51cd1863bececc5dd463bf7
TorchLens version
2.35.3
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

How this diagram was made

menagerie.classics.omnisr_x4:build_omnisr_x4: build({})

What it is

Omni-SR is a lightweight vision-transformer framework for image super-resolution. The paper argues that self-attention working along one dimension only, spatial or channel, limits such lightweight models.

Its Omni Self-Attention (OSA) block establishes spatial and channel context at the same time. It computes spatial attention first, then rotates the query and key matrices for a channel-wise self-attention step. These blocks sit inside Omni-Scale Aggregation Groups (OSAG), each holding a local convolution block, a meso-OSA block, a global-OSA block and an ESA block. The meso and global blocks differ only in their window partition strategy. PixelShuffle upsamples the fused features at the end.

In the paper's configuration the OSAG number is 5 and the channel number is 64. The paper reports 26.95 dB on Urban100 at ×4 scale with 792K parameters. Against SwinIR at similar parameter counts, it reports 36G FLOPs versus 50G FLOPs at 1280×720.

Key idea. Omni-SR introduces a self-attention block that models pixel interaction along spatial and channel dimensions at once, inside a lightweight super-resolution network.

  • Omni-SR
  • OmniSR
  • omni aggregation networks
  • lightweight image super-resolution
  • image super-resolution
  • omni self-attention
  • OSA
  • OSAG
  • 4x 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{wang2023omniaggregationnetworkslightweight,
      title={Omni Aggregation Networks for Lightweight Image Super-Resolution}, 
      author={Hang Wang and Xuanhong Chen and Bingbing Ni and Yutian Liu and Jinfan Liu},
      year={2023},
      eprint={2304.10244},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2304.10244}, 
}