
dat_x4
Diffusion and generative82 ops59.6K params
A narrower Dual Aggregation Transformer for ×4 image super-resolution, alternating spatial and channel attention.
Diffusion and generative · 82 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.
How this diagram was made
menagerie.classics.dat_x4:build_dat_light_x4: build({}) This model follows the Dual Aggregation Transformer (DAT), a Transformer design for image super-resolution. The paper starts from the observation that both extracting spatial information and capturing channel context matter for super-resolution Transformers. DAT therefore uses two kinds of block, one based on spatial window self-attention and one on channel-wise self-attention, and applies them in alternation.
Each block also aggregates the two kinds of information internally. A depth-wise convolution runs in parallel with the attention. The adaptive interaction module (AIM) re-weights the feature maps of the two branches. The feed-forward part is the spatial-gate feed-forward network (SGFN), whose gate is a depth-wise convolution and an element-wise multiplication. In the paper's ablation, SGFN reduces parameters and FLOPs compared with a regular feed-forward network while improving performance.
The blocks are stacked in residual groups, each ending in a convolution layer that refines the features. A reconstruction module then upsamples the deep feature with pixel shuffle. The paper trains its models on DIV2K and Flickr2K. Low-resolution images are generated from high-resolution ones by bicubic degradation.
Key idea. The paper builds a super-resolution Transformer that aggregates spatial and channel features across blocks, by alternating two attention types, and within blocks, through AIM and SGFN.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@misc{chen2023dualaggregationtransformerimage,
title={Dual Aggregation Transformer for Image Super-Resolution},
author={Zheng Chen and Yulun Zhang and Jinjin Gu and Linghe Kong and Xiaokang Yang and Fisher Yu},
year={2023},
eprint={2308.03364},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2308.03364},
}