IPT
A pre-trained transformer for super-resolution, denoising and deraining with a separate head and tail per task.
1,303 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
- 118.9M
- Operations
- 1,303
- Framework
- PyTorch
- Recurrent
- No
- Published
- CVPR 2021
- Cited by
- 2,306 (as of 27 October 2026)
- Authors
- Hanting Chen, Yunhe Wang, Tianyu Guo and others
- License
- Apache-2.0
- 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
- m17513
- Graph hash
- 504bf5eccfbbb31fbb0475fcbf162fa68e8e7693d1adbf8ba496f0dd73102ac4
- Skeleton hash
- 41a4bcf97696bca9a0ddfd437810178ba313975fea0a03e8e6d0899f2ed0a773
- Architecture hash
- 78e4e03378372d3e9ffccb8031a2b678ba556db4d548bb8778bc9385d419fea4
- Diagram SHA-256
- 729da22f080028cb7acd772cc8d7e060cd32f946fe5cd844c7c910f9db0d04b4
- 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
What it is
IPT, the image processing transformer, is one pre-trained model for several low-level vision tasks such as denoising, super-resolution and deraining. To get enough training data, the authors take ImageNet images and corrupt them to generate a large number of image pairs.
The architecture has four parts: heads that extract features from the corrupted input, a transformer encoder and decoder that recover the missing information, and tails that map features back to an image. Each task has its own head and tail, and a head consists of three convolutional layers. Between them, the feature map is split into patches, and each patch is treated as a word. The decoder differs from the original transformer in taking a learned task-specific embedding as an extra input.
Pre-training used 6 types of degradation: 2×, 3× and 4× bicubic interpolation, Gaussian noise at levels 30 and 50, and added rain streaks. Each batch trains one randomly selected task through its own head, tail and task embedding. The paper reports that the single pre-trained model outperformed the methods it was compared with on various low-level benchmarks. For a given task the model is then fine-tuned, and the other heads and tails are dropped.
Key idea. The paper pre-trains one transformer with multiple task-specific heads and tails on corrupted ImageNet images and fine-tunes it for super-resolution, denoising and deraining.
- ipt
- image processing transformer
- pre-trained image processing transformer
- image restoration
- super-resolution
- image denoising
- image deraining
- low-level vision
- multi-head multi-tail
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{chen2021pretrainedimageprocessingtransformer,
title={Pre-Trained Image Processing Transformer},
author={Hanting Chen and Yunhe Wang and Tianyu Guo and Chang Xu and Yiping Deng and Zhenhua Liu and Siwei Ma and Chunjing Xu and Chao Xu and Wen Gao},
year={2021},
eprint={2012.00364},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2012.00364},
}