Foreground Harmonization and Shadow Generation for Composite Image
Jing Zhou, Ziqi Yu, Zhongyun Bao, Gang Fu, Weilei He, Chao Liang, Chunxia Xiao
Abstract
We propose a method for lighting and shadow editing of outdoor disharmonious composite images, including foreground harmonization and cast shadow generation. Most existing works can only perform foreground appearance editing task or only focus on shadow generation. In fact, lighting not only affects the brightness and color of objects, but also produces corresponding cast shadows. In recent years, diffusion models have demonstrated their strong generative capabilities, and due to their iterative denoising properties, they have a significant advantage in image restoration task. But it fails to preserve content structure of image. To this end, we propose an effective model to tackle the problem of foreground lighting-shadow editing. Specifically, we use a coarse shadow prediction module (SP) to generate coarse shadows for foreground objects. Then, we use the predicted results as prior knowledge to guide the generation of harmony diffusion model. In this process, the primary task is to learn lighting variation to harmonize foreground regions, the secondary task is to generate high-quality cast shadow containing more details. Considering that existing datasets do not support the dual tasks of image harmonization and shadow generation, we construct a real outdoor dataset, named IH-SG, covering various lighting conditions. Extensive experiments conducted on existing benchmark datasets and the IH-SG dataset demonstrate the superiority of our method.
Ask about this paper
Ask your agent about it.
Lune has read the top-tier papers around this one, so every answer names the papers it rests on.
Cited by top-tier papers2
- PHR-DIFF: Portrait Highlights Removal via Patch-aware Diffusion ModelHongsheng Zheng, Zhongyun Bao, Gang Fu, Xuze Jiao et al.AAAI 2025 · 4 citations
- DreamFuse: Adaptive Image Fusion with Diffusion TransformerJunjia Huang, Pengxiang Yan, Jiyang Liu, Jie Wu et al.ICCV 2025 · 3 citations
Related papers
- CFDiffusion: Controllable Foreground Relighting in Image Compositing via Diffusion ModelZiqi Yu, Jing Zhou, Zhongyun Bao, Gang Fu et al.ACM MM 2024 · 6 citations
- I 2HDiffuser: Image Illumination Harmonization Meets the Diffusion ModelZhongyun Bao, Gang Fu, Jianchi Sun, Jing Zhou et al.ACM MM 2025 · 3 citations
- DiffHarmony++: Enhancing Image Harmonization with Harmony-VAE and Inverse Harmonization ModelPengfei Zhou, Fangxiang Feng, Guang Liu, Ruifan Li et al.ACM MM 2024 · 4 citations
- Deep Image-based Illumination HarmonizationZhongyun Bao, Chengjiang Long, Gang Fu, Daquan Liu et al.CVPR 2022 · 24 citations
- Relightful Harmonization: Lighting-Aware Portrait Background ReplacementMengwei Ren, Wei Xiong, Jae Shin Yoon, Zhixin Shu et al.CVPR 2024 · 17 citations
