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

Improving the Harmony of the Composite Image by Spatial-Separated Attention Module

About

Image composition is one of the most important applications in image processing. However, the inharmonious appearance between the spliced region and background degrade the quality of the image. Thus, we address the problem of Image Harmonization: Given a spliced image and the mask of the spliced region, we try to harmonize the "style" of the pasted region with the background (non-spliced region). Previous approaches have been focusing on learning directly by the neural network. In this work, we start from an empirical observation: the differences can only be found in the spliced region between the spliced image and the harmonized result while they share the same semantic information and the appearance in the non-spliced region. Thus, in order to learn the feature map in the masked region and the others individually, we propose a novel attention module named Spatial-Separated Attention Module (S2AM). Furthermore, we design a novel image harmonization framework by inserting the S2AM in the coarser low-level features of the Unet structure in two different ways. Besides image harmonization, we make a big step for harmonizing the composite image without the specific mask under previous observation. The experiments show that the proposed S2AM performs better than other state-of-the-art attention modules in our task. Moreover, we demonstrate the advantages of our model against other state-of-the-art image harmonization methods via criteria from multiple points of view. Code is available at https://github.com/vinthony/s2am

Xiaodong Cun, Chi-Man Pun• 2019

Related benchmarks

TaskDatasetResultRank
Image HarmonizationiHarmony4 HFlickr
MSE124.5
58
Image HarmonizationiHarmony4 (all)
MSE48
53
Image HarmonizationiHarmony4 Hday2night
MSE48.78
51
Image HarmonizationiHarmony4 HAdobe5k
MSE48.22
43
Image HarmonizationiHarmony4 HCOCO
MSE41.07
38
Image HarmonizationHAdobe5k iHarmony4 (test)
MSE47.01
37
Image HarmonizationiHarmony4
MSE59.67
27
Image HarmonizationS-Adobe5K (test)
MSE20.47
25
Image HarmonizationiHarmony4 HCOCO
MSE33.07
20
Image HarmonizationDIH99 (test)
Average Processing Time (s)0.25
17
Showing 10 of 35 rows

Other info

Code

Follow for update