All models

uformer_tiny_b16

The tiny Uformer configuration: a U-shaped window-attention Transformer for image restoration.

262 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 (25 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
145.4K
Operations
262
Framework
PyTorch
Recurrent
No
Published
CVPR (arXiv 2021)
Cited by
2,244 (as of 9 October 2026)
Authors
Zhendong Wang, Xiaodong Cun, Jianmin Bao 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
m12203
Graph hash
53d73e15941f78a2b92211413c1214dbd3a4b08a1618875a2fcc17deb1732879
Skeleton hash
f0d3cf0fedb99bb1c4affa236a2610ff41d2c424f422cf8b8b828fda91f04027
Architecture hash
57fe4de3900ea31767d245631c5cb8b053e23a2a352c2845a93701122707dc72
Diagram SHA-256
0472a883780b69ffe1d57e91bd2e3107da45a699a6b9114f88c382c3f5b9c756
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

How this diagram was made

menagerie.classics.uformer:build_uformer_tiny: build({})

What it is

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.

  • Uformer
  • Uformer-T
  • uformer_tiny_b16
  • U-shaped Transformer
  • image restoration
  • LeWin Transformer block
  • locally-enhanced window attention
  • multi-scale restoration modulator
  • image denoising
  • deblurring
  • deraining

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

Cite the paper

@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}, 
}