Skip to main content
QUICK REVIEW

[Paper Review] FRIH: Fine-grained Region-aware Image Harmonization

Jinlong Peng, Zekun Luo|arXiv (Cornell University)|May 13, 2022
Image and Signal Denoising MethodsComputer Science5 citations
TL;DR

This paper proposes FRIH, a two-stage, end-to-end framework for fine-grained region-aware image harmonization that improves realism by adapting harmonization per local region. It uses adaptive clustering of foreground masks based on RGB values and a lightweight cascaded module with feature fusion to enhance local details, achieving SOTA performance (38.19 dB PSNR) on iHarmony4 with only 11.98M parameters.

ABSTRACT

Image harmonization aims to generate a more realistic appearance of foreground and background for a composite image. Existing methods perform the same harmonization process for the whole foreground. However, the implanted foreground always contains different appearance patterns. All the existing solutions ignore the difference of each color block and losing some specific details. Therefore, we propose a novel global-local two stages framework for Fine-grained Region-aware Image Harmonization (FRIH), which is trained end-to-end. In the first stage, the whole input foreground mask is used to make a global coarse-grained harmonization. In the second stage, we adaptively cluster the input foreground mask into several submasks by the corresponding pixel RGB values in the composite image. Each submask and the coarsely adjusted image are concatenated respectively and fed into a lightweight cascaded module, adjusting the global harmonization performance according to the region-aware local feature. Moreover, we further designed a fusion prediction module by fusing features from all the cascaded decoder layers together to generate the final result, which could utilize the different degrees of harmonization results comprehensively. Without bells and whistles, our FRIH algorithm achieves the best performance on iHarmony4 dataset (PSNR is 38.19 dB) with a lightweight model. The parameters for our model are only 11.98 M, far below the existing methods.

Motivation & Objective

  • To address the limitation of existing image harmonization methods that apply uniform processing across the entire foreground, ignoring regional appearance differences.
  • To improve the realism of composite images by enabling region-specific harmonization based on local color patterns and structural features.
  • To design a lightweight, end-to-end trainable framework that achieves superior performance without relying on complex architectures or large parameter counts.
  • To enhance detail preservation in sub-regions with distinct colors or textures, such as green clothing or red wreaths, which are often poorly harmonized by global methods.
  • To validate the effectiveness of the method through quantitative metrics and human evaluation on benchmark datasets.

Proposed method

  • The method employs a two-stage framework: first, a global coarse-grained harmonization using a U-Net-like encoder-decoder with the full foreground mask.
  • In the second stage, the foreground mask is adaptively clustered into submasks based on the RGB values of corresponding pixels in the composite image, enabling region-aware processing.
  • Each submask is concatenated with the coarsely adjusted image and fed into a lightweight cascaded decoder module to refine local harmonization.
  • A fusion prediction module combines features from all decoder layers to comprehensively utilize multi-level harmonization results for final output.
  • The entire network is trained end-to-end to ensure global optimization, with the submask clustering dynamically adapting to input image content.
  • The clustering threshold $d_c$ is set to 0.1, balancing granularity and noise reduction for optimal performance.

Experimental results

Research questions

  • RQ1Can a two-stage, region-aware approach improve image harmonization by adapting processing to local appearance patterns?
  • RQ2Does adaptive clustering of foreground masks based on RGB values lead to better preservation of fine details in diverse color regions?
  • RQ3Can a lightweight model with only 11.98M parameters outperform existing SOTA methods in both PSNR and perceptual quality?
  • RQ4How does the fusion of multi-level decoder features enhance final harmonization results compared to single-level prediction?
  • RQ5To what extent does the proposed method improve realism compared to human perception, as measured by user studies?

Key findings

  • FRIH achieves the highest PSNR of 38.19 dB on the iHarmony4 dataset, surpassing all existing SOTA methods.
  • The model has only 11.98 million parameters, significantly fewer than competitors (e.g., DoveNet: 54.76M, IIH: 40.83M), demonstrating high efficiency.
  • The method reduces computation cost to 25.12 GFLOPS, comparable to lightweight models like DoveNet and RainNet, and much lower than IIH (196.3 GFLOPS).
  • In user studies, FRIH received 733 votes (40.6% preference), significantly outperforming DoveNet (12.1%), RainNet (23.2%), and other SOTA methods.
  • Qualitative results show that FRIH better preserves details in complex regions—such as green shirts and red wreaths—compared to baseline methods that fail on specific color blocks.
  • Ablation studies confirm that $d_c = 0.1$ yields optimal performance, as both finer ($d_c = 0.01$) and coarser ($d_c = 0.3, 0.4$) clustering degrade results due to noise or misclustering.

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.