All models

Retinexformer

A Transformer that brightens a low-light photo with an estimated light-up map and then restores the corruption.

455 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 (36 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
1.6M
Operations
455
Framework
PyTorch
Recurrent
No
Published
ICCV 2023
Cited by
954 (as of 27 October 2026)
Authors
Yuanhao Cai, Hao Bian, Jing Lin and others
License
MIT
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
m19842
Graph hash
eccc3dc8f68ca7b17986f43d3e96bde60ac40986fd33bee0ce55fe6e0fb55212
Skeleton hash
d89f17595b060369dd36596c3baf5ee9c483433ebcd999269d20a1c09c12d227
Architecture hash
34a9c38f3f7afa7fa3a1b540d5959592442335ecd4e65b649933bac4841da723
Diagram SHA-256
b73b845d2276ff6af348c9e07bd06c6d41af9599de20e2f2ff673bc8dced7294
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

Retinexformer is a Transformer for low-light image enhancement, which aims to improve the poor visibility and low contrast of dark photos and restore corruptions such as noise, artifacts and color distortion. It starts from the Retinex theory, which assumes that a color image can be decomposed into reflectance and illumination. The paper's criticism of earlier Retinex-based networks is that they usually need a multi-stage training pipeline and rely on convolutional networks, which limits how well they capture long-range dependencies.

The model follows what the authors call a One-stage Retinex-based Framework (ORF), which first estimates illumination information to light up the input and then restores the corruption to produce the enhanced image. The illumination estimator outputs a lit-up image and a light-up feature. The restorer, the Illumination-Guided Transformer (IGT), is a three-scale U-shaped network that takes the lit-up image as its input. Its attention layers use the light-up feature, which encodes illumination information, to direct the computation of self-attention. The cost of this attention is linear in the spatial size, which lets it be placed in every basic block of the network.

Against SNR-Net, the paper reports improvements between 0.33 and 1.57 dB on eight datasets, among them LOL-v1, SID, SMID and FiveK. The repository README states that Retinexformer won second place in the NTIRE 2024 Challenge on Low Light Enhancement.

Key idea. Retinexformer plugs an Illumination-Guided Transformer into a one-stage Retinex-based framework that lights up a low-light image and then restores its corruptions.

  • retinexformer
  • low-light image enhancement
  • retinex
  • illumination-guided transformer
  • one-stage retinex-based framework
  • igt
  • ig-msa
  • image restoration
  • low-light

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

Cite the paper

@misc{cai2023retinexformeronestageretinexbasedtransformer,
      title={Retinexformer: One-stage Retinex-based Transformer for Low-light Image Enhancement}, 
      author={Yuanhao Cai and Hao Bian and Jing Lin and Haoqian Wang and Radu Timofte and Yulun Zhang},
      year={2023},
      eprint={2303.06705},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2303.06705}, 
}