Skip to main content
QUICK REVIEW

[Paper Review] Interactive Portrait Harmonization

Jeya Maria Jose Valanarasu, He Zhang|arXiv (Cornell University)|Mar 15, 2022
Image Enhancement TechniquesComputer Science7 citations
TL;DR

This paper introduces Interactive Portrait Harmonization (IPH), a novel framework that enables users to select specific regions in a background image—such as a person or object—to guide foreground harmonization, overcoming limitations of prior methods that rely on the entire background. By using a style encoder to extract and inject reference region features via adaptive instance normalization and a luminance-matching loss, IPH achieves more realistic and controllable portrait edits, outperforming SOTA baselines on both synthetic and real-world datasets, including in-the-wild portraits.

ABSTRACT

Current image harmonization methods consider the entire background as the guidance for harmonization. However, this may limit the capability for user to choose any specific object/person in the background to guide the harmonization. To enable flexible interaction between user and harmonization, we introduce interactive harmonization, a new setting where the harmonization is performed with respect to a selected \emph{region} in the reference image instead of the entire background. A new flexible framework that allows users to pick certain regions of the background image and use it to guide the harmonization is proposed. Inspired by professional portrait harmonization users, we also introduce a new luminance matching loss to optimally match the color/luminance conditions between the composite foreground and select reference region. This framework provides more control to the image harmonization pipeline achieving visually pleasing portrait edits. Furthermore, we also introduce a new dataset carefully curated for validating portrait harmonization. Extensive experiments on both synthetic and real-world datasets show that the proposed approach is efficient and robust compared to previous harmonization baselines, especially for portraits. Project Webpage at \href{https://jeya-maria-jose.github.io/IPH-web/}{https://jeya-maria-jose.github.io/IPH-web/}

Motivation & Objective

  • To address the limitation of existing image harmonization methods that use the entire background as a guide, which restricts user control in portrait editing.
  • To enable flexible user interaction by allowing selection of specific regions (e.g., a person or object) in the background as reference for harmonization.
  • To improve realism in portrait harmonization, especially in challenging scenarios like studio backgrounds with screens or spatially varying lighting.
  • To develop a robust, lightweight framework that supports both harmonization and interactive color transfer through style code manipulation.
  • To introduce a new in-the-wild portrait harmonization dataset for evaluating real-world performance.

Proposed method

  • The framework uses an encoder-decoder network that takes the composite foreground and a reference region as inputs, with the reference region encoded via a style encoder to extract appearance features.
  • A luminance matching loss is introduced to align the luminance and color characteristics between the foreground and the selected reference region, improving visual realism.
  • Adaptive instance normalization (AdaIN) layers inject the reference style into the foreground while preserving spatial details and identity.
  • The model is trained with data augmentation including brightness/contrast, color jitter, gamma correction, 3D LUTs, and local lighting effects (e.g., dodge, grain) to improve robustness.
  • The framework can be easily adapted for interactive color transfer by modifying the style code loss and blending two distinct style codes from separate encoders.
  • The architecture is parameter-efficient, with only 27M parameters, making it lighter than prior methods like Bargain-Net (58M) and Rain-Net (54M).

Experimental results

Research questions

  • RQ1Can user-guided region selection improve the realism and controllability of portrait harmonization compared to using the entire background as a guide?
  • RQ2How effective is a luminance-matching loss in aligning appearance between the foreground and a selected reference region in portrait composites?
  • RQ3Can the proposed framework be adapted for interactive color transfer while maintaining visual quality and user control?
  • RQ4Why do existing state-of-the-art harmonization methods fail to support interactive guidance, and what architectural limitations prevent their adaptation?
  • RQ5How does the proposed method perform on real-world, in-the-wild portrait composites with complex lighting and non-uniform backgrounds?

Key findings

  • The proposed IPH framework achieves superior visual quality on both synthetic and real-world portrait composites, especially in cases where the background contains screens or spatially varying lighting, which degrade performance in prior methods.
  • User-selected reference regions lead to more realistic and contextually appropriate harmonization results, as demonstrated in comparisons with SOTA methods like Rain-Net, which fail when the background lacks salient features.
  • The luminance matching loss significantly improves appearance consistency between the foreground and reference region, reducing color and brightness mismatches.
  • The framework can be effectively repurposed for interactive color transfer by blending two distinct style codes, enabling users to control the intensity of color changes via blending ratios.
  • IPH is more parameter-efficient than prior methods, with only 27M parameters, while maintaining or improving performance, indicating better model efficiency.
  • Experiments show that modifying existing networks like Bargain-Net and Rain-Net to support interactive guidance yields minimal or no improvement, highlighting the architectural novelty and necessity of the proposed framework.

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.