Region-aware Adaptive Instance Normalization for Image Harmonization

CVPR 2021  ·  Jun Ling, Han Xue, Li Song, Rong Xie, Xiao Gu ·

Image composition plays a common but important role in photo editing. To acquire photo-realistic composite images, one must adjust the appearance and visual style of the foreground to be compatible with the background. Existing deep learning methods for harmonizing composite images directly learn an image mapping network from the composite to the real one, without explicit exploration on visual style consistency between the background and the foreground images. To ensure the visual style consistency between the foreground and the background, in this paper, we treat image harmonization as a style transfer problem. In particular, we propose a simple yet effective Region-aware Adaptive Instance Normalization (RAIN) module, which explicitly formulates the visual style from the background and adaptively applies them to the foreground. With our settings, our RAIN module can be used as a drop-in module for existing image harmonization networks and is able to bring significant improvements. Extensive experiments on the existing image harmonization benchmark datasets show the superior capability of the proposed method. Code is available at {https://github.com/junleen/RainNet}.

PDF Abstract CVPR 2021 PDF CVPR 2021 Abstract

Datasets


Task Dataset Model Metric Name Metric Value Global Rank Result Benchmark
Image Harmonization HAdobe5k(1024$\times$1024) RainNet PSNR 36.61 # 4
MSE 42.56 # 4
fMSE 305.17 # 3
SSIM 0.9844 # 4
Image Harmonization iHarmony4 RainNet MSE 40.29 # 15
PSNR 36.12 # 13
fMSE 469.60 # 2

Methods