Shadow Generation Using Diffusion Model with Geometry Prior

Haonan Zhao, Qingyang Liu, Xinhao Tao, Li Niu, Guangtao Zhai
2/10/2026

No official code found. Best implementation: bcmi/GPSDiffusion-Object-Shadow-Generation (147 stars, last commit 2026-02-24).

Abstract

Image composition involves integrating foreground object into background image to obtain a composite image. One of the key challenges is to produce realistic shadow for the inserted foreground object. Recently, diffusion-based methods have shown superior performance compared to GAN-based methods in shadow generation. However, they are still struggling to generate shadows with plausible geometry in complex cases. In this paper, we focus on promoting diffusion-based methods by leveraging geometry priors. Specifically, we first predict the rotated bounding box and matched shadow shapes for the foreground shadow. Then, the geometry information of rotated bounding box and matched shadow shapes is injected into ControlNet to facilitate shadow generation. Extensive experiments on both DESOBAv2 dataset and real composite images validate the effectiveness of our proposed method. The code and model are released at https://github.com/bcmi/GPSDiffusion-Object-Shadow-Generation.

DOISemantic Scholar

Code Implementations(1)

[CVPR 2025] The code and model for our paper "Shadow Generation Using Diffusion Model with Geometry Prior", CVPR, 2025.

1471PythonSep 5, 20247 months ago

Cite this paper

@article{zhao2026shadow,
  title  = {Shadow Generation Using Diffusion Model with Geometry Prior},
  author = {Haonan Zhao and Qingyang Liu and Xinhao Tao and Li Niu and Guangtao Zhai},
  year   = {2026},
  doi    = {10.1109/CVPR52734.2025.00712},
  url    = {https://doi.org/10.1109/CVPR52734.2025.00712},
  journal = {CVPR 2025 2025}
}

Discussion