safmn_x4
SAFMN at ×4: a small convolutional super-resolution network built on spatially-adaptive feature modulation.
Diffusion and generative · 81 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.
At a glance
- Parameters
- 127.4K
- Operations
- 81
- Framework
- PyTorch
- Recurrent
- No
- Published
- ICCV (arXiv 2023)
- Authors
- Long Sun, Jiangxin Dong, Jinhui Tang, Jinshan Pan
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
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.
Details
- Stable ID
- m12117
- Graph hash
- 9c7ef1060ac29be6d6ce933f305a76a527af9496fe5818222e26572357fb66dd
- Skeleton hash
- 1b8837c8d91573ff81f56351a91b72d7f3575d8f8682613e1b1e3285c6aff0b3
- Architecture hash
- 71cb09a4e35bae8b2379698c22a63ee38a4776d7649a19ebbdc4464466b12b13
- Diagram SHA-256
- d0e455059b742e4d80c6596ee3efd94e512f75ca4205939a1661d5ebfb3824e3
- 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.safmn_x4:build_safmn_x4: build({}) What it is
SAFMN is a small network for single image super-resolution, which restores a high-resolution image from its low-resolution counterpart. The paper's motivation is that existing solutions are usually incompatible with low-power devices that have computational and memory constraints.
The network consists of a stack of feature mixing modules and an upsampler layer. Each module follows the design of ViT, which pairs self-attention with a feed-forward network, but swaps in two convolutional parts. The spatially-adaptive feature modulation (SAFM) layer first splits the channels of the normalized input into four parts. Adaptive max pooling then generates multi-scale features, and the result becomes an attention map that modulates the input through an element-wise product. The convolutional channel mixer (CCM) that follows contains a 3 × 3 convolution and a 1 × 1 convolution. The upsampler contains only a 3×3 convolution and a sub-pixel convolution.
The paper sets the number of feature mixing modules to 8 and the feature channels to 36. For ×4 super-resolution on the B100 dataset, it reports that SAFMN has about 85% fewer parameters than CARN, 66% fewer than IMDN and 42% fewer than ShuffleMixer.
Key idea. SAFMN replaces self-attention in a ViT-like block with a multi-scale spatially-adaptive feature modulation and adds a convolutional channel mixer for local context, giving an efficient super-resolution network.
- safmn
- spatially-adaptive feature modulation
- efficient image super-resolution
- single image super-resolution
- lightweight super-resolution
- x4 image upscaling
- sisr
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{sun2023spatiallyadaptivefeaturemodulationefficient,
title={Spatially-Adaptive Feature Modulation for Efficient Image Super-Resolution},
author={Long Sun and Jiangxin Dong and Jinhui Tang and Jinshan Pan},
year={2023},
eprint={2302.13800},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2302.13800},
}