Skip to main content
QUICK REVIEW

[Paper Review] Deep Image Harmonization

Yi‐Hsuan Tsai, Xiaohui Shen|arXiv (Cornell University)|Feb 28, 2017
Image Enhancement TechniquesComputer Science30 references19 citations
TL;DR

This paper proposes an end-to-end deep convolutional neural network for image harmonization that jointly learns context and semantic features to adjust foreground appearances for realistic composites. By leveraging a large-scale, high-quality synthesized training dataset, the method outperforms prior state-of-the-art approaches in realism, achieving a 1.424 B-T score on real composite images and processing images in just 0.1 seconds on a GPU.

ABSTRACT

Compositing is one of the most common operations in photo editing. To generate realistic composites, the appearances of foreground and background need to be adjusted to make them compatible. Previous approaches to harmonize composites have focused on learning statistical relationships between hand-crafted appearance features of the foreground and background, which is unreliable especially when the contents in the two layers are vastly different. In this work, we propose an end-to-end deep convolutional neural network for image harmonization, which can capture both the context and semantic information of the composite images during harmonization. We also introduce an efficient way to collect large-scale and high-quality training data that can facilitate the training process. Experiments on the synthesized dataset and real composite images show that the proposed network outperforms previous state-of-the-art methods.

Motivation & Objective

  • To address the challenge of generating realistic composite images where foreground and background appearances are inconsistent.
  • To overcome limitations of previous methods that rely on hand-crafted features and statistical matching, which fail under large appearance disparities.
  • To develop an end-to-end deep learning framework that captures both contextual and semantic information for improved harmonization.
  • To create a large-scale, high-quality training dataset for image harmonization, which is scarce due to the need for professional editing.
  • To enable real-time inference while maintaining high realism in harmonized composites.

Proposed method

  • A dual-branch encoder-decoder CNN architecture is proposed, where one branch performs image harmonization and the other performs scene parsing, sharing the same encoder for feature learning.
  • The network is jointly trained to propagate semantic cues from the scene parsing branch to guide foreground appearance adjustment in the harmonization branch.
  • An efficient data synthesis pipeline generates large-scale, high-quality training pairs by combining real images with foreground objects and backgrounds, ensuring realistic composite distributions.
  • The model takes a composite image and a foreground mask as input and directly outputs a harmonized image with adjusted foreground appearances.
  • A joint training scheme enables end-to-end optimization, allowing semantic understanding to guide context-aware appearance adjustments.
  • The training process uses ground truth harmonized images from the synthesized dataset to supervise both the harmonization and scene parsing tasks.

Experimental results

Research questions

  • RQ1Can an end-to-end deep learning model effectively harmonize composite images by leveraging both context and semantic information?
  • RQ2How does joint training of harmonization and scene parsing improve realism compared to methods using only statistical matching?
  • RQ3Can a large-scale, high-quality synthetic dataset trained with a data generation pipeline effectively generalize to real-world composite images?
  • RQ4What is the performance gain of the proposed method over state-of-the-art approaches in terms of realism and inference speed?
  • RQ5Can the model generalize to arbitrary foreground masks, including complex or cluttered backgrounds?

Key findings

  • The proposed method achieves a B-T score of 1.424 on real composite images, significantly outperforming the next best method (1.139) in user studies.
  • On the synthesized dataset, the model achieves superior quantitative results, demonstrating effective learning from the large-scale training data.
  • The method reduces inference time to 0.1 seconds on a Titan X GPU, compared to over 10 seconds for previous statistical matching or optimization-based methods.
  • The model generalizes well to different foreground masks, including inverted masks, showing robustness to varying context and semantic cues.
  • User studies confirm that the model produces more realistic results than [28] and [32], especially in cases with large appearance discrepancies.
  • The joint training of harmonization and scene parsing enables semantic-aware adjustments, such as correctly modifying sky regions to match surrounding tones, improving visual plausibility.

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.