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. 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.
翻译:在背景图像中插入前景对象时, 大多数先前的图像组成方法都侧重于调整前景, 使其与背景相容, 同时忽略背景前景的阴影效应。 在这项工作中, 我们侧重于为复合图像中的前景对象创造可信的影子。 首先, 我们通过根据对齐真实图像和被拆掉的图像生成合成合成合成图像, 贡献真实世界的影子生成数据集DESOBA。 然后, 我们提议建立一个新型的影子生成网络 SGRNet, 由阴影遮罩预测阶段和阴影填充阶段组成。 在阴影遮罩预测阶段, 前景和背景信息将进行彻底互动, 以生成浅色阴影遮罩。 在阴影填充阶段, 预言要绘制阴影参数以填补阴影区域。 我们的DESOBA数据集和真实的合成图像将展示我们拟议方法的有效性。 我们的数据集和代码可以在 https://github.com/bmi/Object- Shadow- Gerenation- Datasets- DESODODA 上查阅。