[Paper Review] Deep Image Harmonization by Bridging the Reality Gap
This paper proposes RdHarmony, a large-scale rendered image harmonization dataset generated via 3D rendering to reduce manual data collection efforts, and introduces CharmNet, a cross-domain harmonization network that bridges the reality gap between rendered and real images using adversarial loss, style-aware losses, and domain-invariant feature learning. The method achieves strong performance on novel categories with limited real data, demonstrating effective knowledge transfer from rendered to real domains.
Image harmonization has been significantly advanced with large-scale harmonization dataset. However, the current way to build dataset is still labor-intensive, which adversely affects the extendability of dataset. To address this problem, we propose to construct rendered harmonization dataset with fewer human efforts to augment the existing real-world dataset. To leverage both real-world images and rendered images, we propose a cross-domain harmonization network to bridge the domain gap between two domains. Moreover, we also employ well-designed style classifiers and losses to facilitate cross-domain knowledge transfer. Extensive experiments demonstrate the potential of using rendered images for image harmonization and the effectiveness of our proposed network.
Motivation & Objective
- To reduce the labor-intensive process of collecting real-world image harmonization datasets by generating synthetic training data via 3D rendering.
- To address the domain gap between rendered images (source domain) and real images (target domain) that degrades model generalization.
- To enable effective cross-domain knowledge transfer for image harmonization, especially for novel foreground categories not present in existing real datasets.
- To develop a unified framework that leverages both rendered and real images for training, improving performance on out-of-distribution test cases.
Proposed method
- Constructs RdHarmony, a large-scale rendered harmonization dataset using Unity3D and UniStorm to generate images under diverse lighting and capture conditions.
- Uses 3D scene rendering to generate composite images with accurate foreground masks, enabling easy foreground swapping to create abundant training pairs.
- Proposes CharmNet, a three-stage network: domain-specific encoding with adversarial domain alignment, domain-invariant encoding-decoding for feature sharing, and domain-specific decoding for reconstruction.
- Incorporates style-aware losses using explicit style labels from UniStorm to guide feature adaptation and improve cross-domain transfer.
- Employs adversarial loss to align feature distributions between rendered and real image domains, reducing domain shift.
- Integrates style aggregation (SA) loss to explicitly model and transfer style characteristics between domains, enhancing feature harmonization.
Experimental results
Research questions
- RQ1Can rendered images generated via 3D rendering effectively augment real-world image harmonization datasets with minimal human annotation?
- RQ2How can a deep learning model effectively bridge the domain gap between rendered and real images in image harmonization?
- RQ3To what extent can knowledge from a rendered image domain improve performance on real-world test images, especially for novel foreground categories?
- RQ4What components are most critical for effective cross-domain knowledge transfer in image harmonization?
Key findings
- The proposed CharmNet achieves state-of-the-art performance on real-world test images from novel categories, significantly outperforming baselines like iDIH and CUT.
- Combining adversarial loss with style-aware losses leads to a synergistic improvement in harmonization quality, with adversarial loss contributing most to domain alignment.
- Using rendered images to augment real training data for novel categories yields consistent performance gains, especially when real data is scarce.
- The ablation study confirms that both domain-specific encoding and domain-invariant decoding stages are essential, with optimal performance achieved using a balanced number of unshared layers.
- Qualitative results show that CharmNet produces more visually consistent harmonized outputs, with foreground styles closely matching the background without distorting the foreground content.
- User studies on real-world composite images confirm that models trained with RdHarmony and CharmNet are preferred over baselines in perceptual quality.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.