BargainNet: Background-Guided Domain Translation for Image Harmonization

19 Sep 2020  ·  Wenyan Cong, Li Niu, Jianfu Zhang, Jing Liang, Liqing Zhang ·

Image composition is a fundamental operation in image editing field. However, unharmonious foreground and background downgrade the quality of composite image. Image harmonization, which adjusts the foreground to improve the consistency, is an essential yet challenging task. Previous deep learning based methods mainly focus on directly learning the mapping from composite image to real image, while ignoring the crucial guidance role that background plays. In this work, with the assumption that the foreground needs to be translated to the same domain as background, we formulate image harmonization task as background-guided domain translation. Therefore, we propose an image harmonization network with a novel domain code extractor and well-tailored triplet losses, which could capture the background domain information to guide the foreground harmonization. Extensive experiments on the existing image harmonization benchmark demonstrate the effectiveness of our proposed method. Code is available at

PDF Abstract


Results from the Paper

Task Dataset Model Metric Name Metric Value Global Rank Result Benchmark
Image Harmonization iHarmony4 BargainNet MSE 37.82 # 11
PSNR 35.88 # 13
fMSE 405.23 # 3


No methods listed for this paper. Add relevant methods here