U-Shape Transformer
A U-shaped convolutional and transformer generator that enhances underwater photos.
Diffusion and generative · 1,272 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
- 31.6M
- Operations
- 1,272
- Framework
- PyTorch
- Recurrent
- No
- Published
- IEEE Transactions on Image Processing 2023
- Cited by
- 936 (as of 28 October 2026)
- Authors
- Lintao Peng, Chunli Zhu, Liheng Bian
- License
- MIT
- 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
- m21100
- Graph hash
- fdb7fad51d152ef0c626d3d57888ea7655aec9ac52f63514eb5264439e2f361f
- Skeleton hash
- 02d360db58681c050124fb21c41e2455b515dadc4fe20de64f7163023cf11daa
- Architecture hash
- 832efb24ce150eaee7681be1465207d1adaa41bba56ac53f4b765c6dfe66bc8a
- Diagram SHA-256
- 709b3f8d8e08f2616982919efd01c8b5c1856b1a2f4d84d6c0528ccb2973cbeb
- 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
U-shape Transformer is an image-to-image network for underwater image enhancement (UIE): it takes a raw underwater photo and outputs a clearer one. The paper starts from the observation that underwater images are attenuated unevenly across color channels and across regions of the image, which it says earlier methods did not fully consider.
The generator combines convolutional blocks with two transformer modules. The channel-wise multi-scale feature fusion transformer (CMSFFT) runs attention along the channel axis instead of across patches, which the paper says guides the network to the channels with more severe degradation. The spatial-wise global feature modeling transformer (SGFMT) replaces the bottleneck layer of the generator and models global information across the image. The generator is paired with a discriminator, and the paper says the multi-scale connections between the two make training more stable.
The same paper built the LSUI dataset of 4279 real-world underwater image groups, each pairing a raw image with a clear reference image, a semantic segmentation map and a medium transmission map. Training uses a loss function that combines the RGB, LAB and LCH color spaces. The paper describes this as the first time a transformer model was introduced to the UIE task, and reports more than 2dB superiority over the methods it compared against on available datasets.
Key idea. The paper built a U-shaped generator with channel-wise and spatial-wise transformer modules that direct attention to the more attenuated color channels and regions of underwater images.
- U-shape Transformer
- underwater image enhancement
- UIE
- LSUI
- CMSFFT
- SGFMT
- underwater
- image enhancement
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{peng2022ushapetransformerunderwaterimage,
title={U-shape Transformer for Underwater Image Enhancement},
author={Lintao Peng and Chunli Zhu and Liheng Bian},
year={2022},
eprint={2111.11843},
archivePrefix={arXiv},
primaryClass={cs.CV},
doi={https://doi.org/10.1109/TIP.2023.3276332},
url={https://arxiv.org/abs/2111.11843},
}