Generative Image Inpainting with Segmentation Confusion Adversarial Training and Contrastive Learning

Zhiwen Zuo, Lei Zhao, Ailin Li, Zhizhong Wang, Zhanjie Zhang +3 more
3/23/2023
cs.CV

No official code found. Best implementation: comzzw/Generative-Image-Inpainting (22 stars, PyTorch, last commit 2023-10-17).

Abstract

This paper presents a new adversarial training framework for image inpainting with segmentation confusion adversarial training (SCAT) and contrastive learning. SCAT plays an adversarial game between an inpainting generator and a segmentation network, which provides pixel-level local training signals and can adapt to images with free-form holes. By combining SCAT with standard global adversarial training, the new adversarial training framework exhibits the following three advantages simultaneously: (1) the global consistency of the repaired image, (2) the local fine texture details of the repaired image, and (3) the flexibility of handling images with free-form holes. Moreover, we propose the textural and semantic contrastive learning losses to stabilize and improve our inpainting model's training by exploiting the feature representation space of the discriminator, in which the inpainting images are pulled closer to the ground truth images but pushed farther from the corrupted images. The proposed contrastive losses better guide the repaired images to move from the corrupted image data points to the real image data points in the feature representation space, resulting in more realistic completed images. We conduct extensive experiments on two benchmark datasets, demonstrating our model's effectiveness and superiority both qualitatively and quantitatively.

View on arXivView PDF

Code Implementations(1)

PyTorch

[AAAI2023, Oral] Official Implementation of Generative Image Inpainting with Segmentation Confusion Adversarial Training and Contrastive Learning

222PythonMar 20, 20233 years ago
codebasedeep-learninggansgenerative-adversarial-networkimage-inpainting+1 more

Similar Papers

Cite this paper

@article{zuo2023generative,
  title  = {Generative Image Inpainting with Segmentation Confusion Adversarial Training and Contrastive Learning},
  author = {Zhiwen Zuo and Lei Zhao and Ailin Li and Zhizhong Wang and Zhanjie Zhang and Jiafu Chen and Wei Xing and Dongming Lu},
  year   = {2023},
  eprint = {2303.13133},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2303.13133v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2303.13133.svg)](https://codeofpaper.com/paper/2303.13133)

Discussion