Instance-Shadow-Diffusion
A mask-conditioned diffusion model that removes shadows from photos, guided by a learned shadow-free feature space.
Diffusion and generative · 2,219 operations Structure only
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
- 277.7M
- Operations
- 2,219
- Framework
- PyTorch
- Recurrent
- No
- Published
- WACV 2024
- Cited by
- 38 (as of 29 October 2026)
- Authors
- Kangfu Mei, Luis Figueroa, Zhe Lin and others
- Checked
- Structure only: shapes and data types are hypotheses, not measurements.
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
- m17581
- Graph hash
- 8f0d88e08953fa51ef5595c1790acf4048594edaf1cc255cc6b422174ae8f5b3
- Skeleton hash
- b7ce14d594685327fbb8fef5b743fc84bd1862edfe593feb3653ed71589946f0
- Architecture hash
- 2474ad87f1a83ab3ca70520111beaffbab3fc5fe4861ed1da11bc691a9bf800c
- Diagram SHA-256
- e43838e5bf238cd0fbbd0691a376be7d9dfc91c770f898bd767a649e9d0277ac
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
What it is
Instance-Shadow-Diffusion, from the paper Latent Feature-Guided Diffusion Models for Shadow Removal, is a diffusion model that takes a photo and a shadow mask and generates the shadow-free image. The paper found that a plain diffusion baseline conditioned only on the shadow image and mask tends to borrow textures from the surrounding non-shadow areas instead of restoring the details underneath, which mixes colors wrongly.
Its fix is a learnable latent feature encoder that is trained with the diffusion network. The encoder is pushed to map a shadow image with its mask close to the encoding of the shadow-free image, and that latent then guides denoising. Training runs in two stages: the diffusion network is first pretrained on shadow-free images, then finetuned for shadow removal under the latent guidance. A Dense Latent Variable Fusion (DLVF) module adds dense skip connections between the noise embedding and the diffusion network. The underlying network is a multi-head attention U-Net.
The paper reports beating the previous best method by 13% in RMSE on AISTD and by 82% on the instance-level DESOBA dataset.
Key idea. The paper guides a shadow-removal diffusion model with a jointly trained latent feature space that inherits the characteristics of shadow-free images.
- instance shadow diffusion
- latent feature-guided diffusion
- shadow removal
- instance-level shadow removal
- diffusion shadow removal
- dlvf
- dense latent variable fusion
- aistd
- desoba
- image restoration
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{mei2025latentfeatureguideddiffusionmodels,
title={Latent Feature-Guided Diffusion Models for Shadow Removal},
author={Kangfu Mei and Luis Figueroa and Zhe Lin and Zhihong Ding and Scott Cohen and Vishal M. Patel},
year={2025},
eprint={2312.02156},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2312.02156},
}