SCS-Co: Self-Consistent Style Contrastive Learning for Image Harmonization

04/29/2022
by   Yucheng Hang, et al.
0

Image harmonization aims to achieve visual consistency in composite images by adapting a foreground to make it compatible with a background. However, existing methods always only use the real image as the positive sample to guide the training, and at most introduce the corresponding composite image as a single negative sample for an auxiliary constraint, which leads to limited distortion knowledge, and further causes a too large solution space, making the generated harmonized image distorted. Besides, none of them jointly constrain from the foreground self-style and foreground-background style consistency, which exacerbates this problem. Moreover, recent region-aware adaptive instance normalization achieves great success but only considers the global background feature distribution, making the aligned foreground feature distribution biased. To address these issues, we propose a self-consistent style contrastive learning scheme (SCS-Co). By dynamically generating multiple negative samples, our SCS-Co can learn more distortion knowledge and well regularize the generated harmonized image in the style representation space from two aspects of the foreground self-style and foreground-background style consistency, leading to a more photorealistic visual result. In addition, we propose a background-attentional adaptive instance normalization (BAIN) to achieve an attention-weighted background feature distribution according to the foreground-background feature similarity. Experiments demonstrate the superiority of our method over other state-of-the-art methods in both quantitative comparison and visual analysis.

READ FULL TEXT

page 1

page 3

page 7

page 8

research
06/05/2021

Region-aware Adaptive Instance Normalization for Image Harmonization

Image composition plays a common but important role in photo editing. To...
research
05/27/2022

Image Harmonization with Region-wise Contrastive Learning

Image harmonization task aims at harmonizing different composite foregro...
research
08/12/2020

Look here! A parametric learning based approach to redirect visual attention

Across photography, marketing, and website design, being able to direct ...
research
08/01/2023

Deep Image Harmonization with Globally Guided Feature Transformation and Relation Distillation

Given a composite image, image harmonization aims to adjust the foregrou...
research
11/04/2022

Contrastive Learning for Diverse Disentangled Foreground Generation

We introduce a new method for diverse foreground generation with explici...
research
05/19/2023

Learning Global-aware Kernel for Image Harmonization

Image harmonization aims to solve the visual inconsistency problem in co...
research
08/04/2023

Painterly Image Harmonization using Diffusion Model

Painterly image harmonization aims to insert photographic objects into p...

Please sign up or login with your details

Forgot password? Click here to reset