Skip to main content
QUICK REVIEW

[Paper Review] DoveNet: Deep Image Harmonization via Domain Verification

Wenyan Cong, Jianfu Zhang|arXiv (Cornell University)|Nov 27, 2019
Generative Adversarial Networks and Image SynthesisComputer Science9 references12 citations
TL;DR

This paper proposes DoveNet, a deep learning method for image harmonization that uses a novel domain verification discriminator to align the foreground domain with the background domain in composite images. The method achieves state-of-the-art performance on a new large-scale dataset, iHarmony4, which is constructed by synthesizing realistic composite images from COCO, Adobe5k, Flickr, and day2night datasets with rigorous filtering for quality and realism.

ABSTRACT

Image composition is an important operation in image processing, but the inconsistency between foreground and background significantly degrades the quality of composite image. Image harmonization, aiming to make the foreground compatible with the background, is a promising yet challenging task. However, the lack of high-quality publicly available dataset for image harmonization greatly hinders the development of image harmonization techniques. In this work, we contribute an image harmonization dataset iHarmony4 by generating synthesized composite images based on COCO (resp., Adobe5k, Flickr, day2night) dataset, leading to our HCOCO (resp., HAdobe5k, HFlickr, Hday2night) sub-dataset. Moreover, we propose a new deep image harmonization method DoveNet using a novel domain verification discriminator, with the insight that the foreground needs to be translated to the same domain as background. Extensive experiments on our constructed dataset demonstrate the effectiveness of our proposed method. Our dataset and code are available at https://github.com/bcmi/Image_Harmonization_Datasets.

Motivation & Objective

  • To address the challenge of low realism and limited diversity in existing image harmonization datasets, which hinder the training of robust deep learning models.
  • To develop a data-efficient yet high-quality training pipeline by synthesizing composite images from real images with controlled foreground-background inconsistencies.
  • To propose a new deep image harmonization method, DoveNet, that explicitly aligns the domain of the foreground with that of the background using adversarial domain verification.
  • To construct and release iHarmony4, a large-scale, diverse, and high-quality image harmonization dataset comprising four sub-datasets: HCOCO, HAdobe5k, HFlickr, and Hday2night.
  • To improve the generalization and realism of harmonized images by filtering out unrepresentative, unrealistic, or semantically invalid composites during dataset curation.

Proposed method

  • Constructs a new image harmonization dataset, iHarmony4, by synthesizing composite images from real images in COCO, Adobe5k, Flickr, and day2night datasets using foreground segmentation and automatic color transfer.
  • Applies manual filtering to remove low-quality composites, including occluded objects, unrealistic color shifts, and spurious changes (e.g., lights turning on), ensuring dataset quality.
  • Proposes DoveNet, a GAN-based harmonization model with a domain verification discriminator that treats paired foreground and background features from real images as positive pairs and from composites as negative pairs.
  • Trains the domain verification discriminator to distinguish whether the foreground and background are from the same domain (real image) or different domains (composite image), encouraging domain alignment.
  • Uses a multi-loss training objective combining perceptual, adversarial, and reconstruction losses to preserve content while harmonizing color and illumination.
  • Leverages the insight that image harmonization is equivalent to domain adaptation: translating the foreground to match the background’s domain without explicit domain labels.

Experimental results

Research questions

  • RQ1Can a synthesized, large-scale, and high-quality image harmonization dataset be constructed to overcome the limitations of existing datasets in diversity and realism?
  • RQ2Can a domain verification discriminator effectively learn to align the foreground domain with the background domain in composite images without requiring explicit domain labels?
  • RQ3Does the proposed DoveNet model outperform existing state-of-the-art methods in both quantitative metrics and qualitative visual results on both synthesized and real composite images?
  • RQ4How does the model generalize across different semantic categories, especially those with high intra-category variance such as 'person'?
  • RQ5To what extent does manual filtering of synthesized composites improve the quality and reliability of the training data and downstream model performance?

Key findings

  • The proposed iHarmony4 dataset, comprising HCOCO, HAdobe5k, HFlickr, and Hday2night sub-datasets, provides a large-scale, diverse, and high-quality benchmark for image harmonization.
  • DoveNet achieves significant improvements in fMSE (foreground mean squared error) on the HCOCO sub-dataset, with the largest reduction of 1,141.57 on the 'mouse' category and 1,058.59 on 'keyboard'.
  • On the 'person' category, which has high intra-category variance, DoveNet still achieves a notable fMSE reduction of 437.32, demonstrating robustness despite challenging variations.
  • User studies and qualitative results on 99 real composite images show that DoveNet produces more visually natural and harmonized results than existing methods like DIH, S2AM, and Xue et al.
  • The domain verification discriminator effectively learns to align foreground and background domains, as evidenced by the discriminator’s ability to distinguish real (positive) from composite (negative) pairs with high accuracy.
  • Manual filtering significantly improves dataset quality by removing composites with unrealistic changes (e.g., lights turning on, snow appearing) or semantically meaningless objects (e.g., partially occluded people), leading to more reliable training.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.