Shadow Generation for Composite Image in Real-world Scenes

Yan Hong, Li Niu, Jianfu Zhang, Liqing Zhang
4/21/2021
cs.CVeess.IV

Official code: bcmi/Object-Shadow-Generation-Dataset-DESOBA (173 stars, Python, MIT, last commit 2026-02-24).

Abstract

Image composition targets at inserting a foreground object into a background image. Most previous image composition methods focus on adjusting the foreground to make it compatible with background while ignoring the shadow effect of foreground on the background.

Show full abstract

In this work, we focus on generating plausible shadow for the foreground object in the composite image. First, we contribute a real-world shadow generation dataset DESOBA by generating synthetic composite images based on paired real images and deshadowed images. Then, we propose a novel shadow generation network SGRNet, which consists of a shadow mask prediction stage and a shadow filling stage. In the shadow mask prediction stage, foreground and background information are thoroughly interacted to generate foreground shadow mask. In the shadow filling stage, shadow parameters are predicted to fill the shadow area. Extensive experiments on our DESOBA dataset and real composite images demonstrate the effectiveness of our proposed method. Our dataset and code are available at https://github.com/bcmi/Object-Shadow-Generation-Dataset-DESOBA.

View on arXivView PDF

Code Implementations(1)

MIT

[AAAI 2022] The first dataset on foreground object shadow generation for image composition in real-world scenes. The code used in our paper "Shadow Generation for Composite Image in Real-world Scenes", AAAI2022. Useful for shadow generation, shadow removal, image composition, etc.

17321Python, ShellJul 1, 20219 months agoMIT
image-compositionshadow-generationshadow-removal

Similar Papers

Cite this paper

@article{hong2021shadow,
  title  = {Shadow Generation for Composite Image in Real-world Scenes},
  author = {Yan Hong and Li Niu and Jianfu Zhang and Liqing Zhang},
  year   = {2021},
  eprint = {2104.10338},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2104.10338}
}

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/2104.10338.svg)](https://codeofpaper.com/paper/2104.10338)

Discussion