A Generative Adversarial Framework for Optimizing Image Matting and Harmonization Simultaneously
This work addresses image composition challenges for computer vision applications, representing an incremental improvement by integrating two previously separate tasks.
The paper tackles the problem of sub-optimal solutions in image composition by optimizing image matting and harmonization simultaneously, resulting in more natural outcomes as demonstrated through extensive experiments on a constructed dataset.
Image matting and image harmonization are two important tasks in image composition. Image matting, aiming to achieve foreground boundary details, and image harmonization, aiming to make the background compatible with the foreground, are both promising yet challenging tasks. Previous works consider optimizing these two tasks separately, which may lead to a sub-optimal solution. We propose to optimize matting and harmonization simultaneously to get better performance on both the two tasks and achieve more natural results. We propose a new Generative Adversarial (GAN) framework which optimizing the matting network and the harmonization network based on a self-attention discriminator. The discriminator is required to distinguish the natural images from different types of fake synthesis images. Extensive experiments on our constructed dataset demonstrate the effectiveness of our proposed method. Our dataset and dataset generating pipeline can be found in \url{https://git.io/HaMaGAN}