Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Region-aware Adaptive Instance Normalization for Image Harmonization

About

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}.

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

Related benchmarks

TaskDatasetResultRank
Image HarmonizationiHarmony4 HFlickr
MSE110.6
58
Image HarmonizationiHarmony4 (all)
MSE40.29
53
Image HarmonizationiHarmony4 Hday2night
MSE47.24
51
Image HarmonizationiHarmony4 HAdobe5k
MSE42.84
43
Image HarmonizationiHarmony4 HCOCO
MSE29.52
38
Image HarmonizationHAdobe5k iHarmony4 (test)
MSE42.56
37
Image HarmonizationiHarmony4
MSE40.29
27
Image HarmonizationiHarmony4 HCOCO
MSE31.12
20
Image HarmonizationiHarmony4 5%-15% foreground ratio
MSE32.05
12
Image HarmonizationiHarmony4 15%-100% foreground ratio
MSE117.4
12
Showing 10 of 26 rows

Other info

Code

Follow for update