Shadow Generation with Decomposed Mask Prediction and Attentive Shadow Filling

Xinhao Tao, Junyan Cao, Yan Hong, Li Niu
6/30/2023
cs.CV

No official code found. Best implementation: bcmi/Rendered-Shadow-Generation-Dataset-RdSOBA (22 stars, last commit 2026-02-24).

Abstract

Image composition refers to inserting a foreground object into a background image to obtain a composite image. In this work, we focus on generating plausible shadows for the inserted foreground object to make the composite image more realistic. To supplement the existing small-scale dataset, we create a large-scale dataset called RdSOBA with rendering techniques. Moreover, we design a two-stage network named DMASNet with decomposed mask prediction and attentive shadow filling. Specifically, in the first stage, we decompose shadow mask prediction into box prediction and shape prediction. In the second stage, we attend to reference background shadow pixels to fill the foreground shadow. Abundant experiments prove that our DMASNet achieves better visual effects and generalizes well to real composite images.

View on arXivView PDF

Code Implementations(1)

[AAAI 2024] The dataset used in our paper "Shadow Generation with Decomposed Mask Prediction and Attentive Shadow Filling", AAAI 2024.

220Jun 21, 20237 months ago
image-compositionshadow-generation

Similar Papers

Cite this paper

@article{tao2023shadow,
  title  = {Shadow Generation with Decomposed Mask Prediction and Attentive Shadow Filling},
  author = {Xinhao Tao and Junyan Cao and Yan Hong and Li Niu},
  year   = {2023},
  eprint = {2306.17358},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2306.17358v3}
}

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

Discussion