
uformer_b32
262 ops555.9K params
The tiny Uformer configuration: a U-shaped window-attention Transformer for image restoration.
262 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.uformer:build_uformer_tiny: build({}) Uformer is a Transformer-based architecture for image restoration that keeps the familiar hierarchical encoder-decoder shape but builds it from Transformer blocks. Its first core design is the locally-enhanced window (LeWin) Transformer block, which computes self-attention inside non-overlapping windows rather than globally. That cuts the cost on high-resolution feature maps while still capturing local context. The second is a learnable multi-scale restoration modulator, a spatial bias that adjusts features in several decoder layers.
The paper evaluates on image denoising, motion deblurring, defocus deblurring and deraining, reporting superior or comparable results to the state of the art.
Key idea. Two designs, window-based LeWin Transformer blocks and a lightweight multi-scale modulator, let a U-shaped Transformer capture both local and global dependencies for restoration.
AI-written summary, based on the paper's abstract and checked automatically against it; not reviewed by a person. Corrections welcome.
@misc{wang2021uformergeneralushapedtransformer,
title={Uformer: A General U-Shaped Transformer for Image Restoration},
author={Zhendong Wang and Xiaodong Cun and Jianmin Bao and Wengang Zhou and Jianzhuang Liu and Houqiang Li},
year={2021},
eprint={2106.03106},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2106.03106},
}