ShadowDiffusion
A diffusion model that removes shadows from an image while refining the shadow mask.
Diffusion and generative · 396 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
- 55.5M
- Operations
- 396
- Framework
- PyTorch
- Recurrent
- No
- Published
- CVPR 2023
- Cited by
- 142 (as of 26 October 2026)
- Authors
- Lanqing Guo, Chong Wang, Wenhan Yang and others
- 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
- m20368
- Graph hash
- ad9a8a275518e2f713846300e888c9a49ea8f1fd5a672afd923a910044e03d88
- Skeleton hash
- 14671157ecce71413a3c264e90a4a25b1b0df784b487ff2b30f57b5f12593019
- Architecture hash
- 6e71e446b52f6806deb9d664137a17c85317d5f1cb0630220a0e7037c8cafe08
- Diagram SHA-256
- ba1bf6eecae8beaf0ad08f9174fae6a829eca343e32659d40da3289e849984fc
- 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
ShadowDiffusion is a diffusion model for shadow removal: it takes an image with a shadow and produces the image without it. The paper traces the boundary artifacts left by earlier deep methods to two causes, the absence of a built-in model of how shadows degrade an image and limited modeling capacity. The authors describe it as the first diffusion-based model for shadow removal.
The method starts from a shadow degradation model that splits the degradation into the shadow mask and the shadow intensities. A dynamic mask-aware diffusion model then produces the shadow-free image and a refined shadow mask together, so removal holds up when the input mask is inaccurate. Each sampling iteration pairs a step of this diffusion model with data consistency steps that bring in the degradation prior. The denoiser is a U-Net. The paper trains with 1000 diffusion steps and samples with 25.
On the SRD dataset the paper reports a PSNR of 34.73dB, against 31.69dB for BMNet. The authors also apply the method to low-light enhancement and exposure correction, with the mask refinement and mask conditions removed.
Key idea. ShadowDiffusion combines a shadow degradation prior with a diffusion model that restores the shadow-free image and refines the shadow mask at the same time.
- shadowdiffusion
- shadow removal
- diffusion model
- image restoration
- degradation prior
- shadow mask refinement
- unrolling diffusion
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{guo2022shadowdiffusiondegradationpriormeets,
title={ShadowDiffusion: When Degradation Prior Meets Diffusion Model for Shadow Removal},
author={Lanqing Guo and Chong Wang and Wenhan Yang and Siyu Huang and Yufei Wang and Hanspeter Pfister and Bihan Wen},
year={2022},
eprint={2212.04711},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2212.04711},
}