Shadow Generation for Composite Image Using Diffusion Model

Qingyang Liu, Junqi You, Jianting Wang, Xinhao Tao, Bo Zhang +1 more
3/1/2024

No official code found. Best implementation: bcmi/Object-Shadow-Generation-Dataset-DESOBAv2 (163 stars, Apache-2.0, last commit 2026-02-24).

Abstract

In the realm of image composition, generating realistic shadow for the inserted foreground remains a formidable challenge. Previous works have developed image-to-image translation models which are trained on paired training data. However, they are struggling to generate shadows with accurate shapes and intensities, hindered by data scarcity and inherent task complexity. In this paper, we resort to foundation model with rich prior knowledge of natural shadow images. Specifically, we first adapt ControlNet to our task and then propose intensity modulation modules to improve the shadow intensity. Moreover, we extend the small-scale DESOBA dataset to DESOBAv2 using a novel data acquisition pipeline. Experimental results on both DESOBA and DESOBAv2 datasets as well as real composite images demonstrate the superior capability of our model for shadow generation task. The dataset, code, and model are released at https://github.com/bcmi/Object-Shadow-Generation-Dataset-DESOBAv2.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

[CVPR 2024] The dataset, code, and model for our paper "Shadow Generation for Composite Image Using Diffusion Model", CVPR, 2024.

16314PythonAug 19, 20237 months agoApache-2.0
image-compositionshadow-generation

Similar Papers

Cite this paper

@article{liu2024shadow,
  title  = {Shadow Generation for Composite Image Using Diffusion Model},
  author = {Qingyang Liu and Junqi You and Jianting Wang and Xinhao Tao and Bo Zhang and Li Niu},
  year   = {2024},
  eprint = {2403.15234},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2403.15234},
  journal = {CVPR 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2403.15234.svg)](https://codeofpaper.com/paper/2403.15234)

Discussion