Do Inpainting Yourself: Generative Facial Inpainting Guided by Exemplars

Wanglong Lu, Hanli Zhao, Xianta Jiang, Xiaogang Jin, Yongliang Yang +3 more
2/13/2022
cs.CVcs.AIcs.GR

Official code: LonglongaaaGo/EXE-GAN (82 stars, Python, MIT, last commit 2025-01-01).

Abstract

We present EXE-GAN, a novel exemplar-guided facial inpainting framework using generative adversarial networks. Our approach can not only preserve the quality of the input facial image but also complete the image with exemplar-like facial attributes.

Show full abstract

We achieve this by simultaneously leveraging the global style of the input image, the stochastic style generated from the random latent code, and the exemplar style of exemplar image. We introduce a novel attribute similarity metric to encourage networks to learn the style of facial attributes from the exemplar in a self-supervised way. To guarantee the natural transition across the boundaries of inpainted regions, we introduce a novel spatial variant gradient backpropagation technique to adjust the loss gradients based on the spatial location. Extensive evaluations and practical applications on public CelebA-HQ and FFHQ datasets validate the superiority of EXE-GAN in terms of the visual quality in facial inpainting.

View on arXivView PDF

Code Implementations(1)

MIT

Neurocomputing 2025 🔥🔥🔥 Novel Exemplar-guided facial image inpainting and editing method!!

825Python, CudaFeb 10, 20221 years agoMIT
computer-visionimage-editingimage-inpaintingimage-processing

Similar Papers

Cite this paper

@article{lu2022inpainting,
  title  = {Do Inpainting Yourself: Generative Facial Inpainting Guided by Exemplars},
  author = {Wanglong Lu and Hanli Zhao and Xianta Jiang and Xiaogang Jin and Yongliang Yang and Min Wang and Jiankai Lyu and Kaijie Shi},
  year   = {2022},
  eprint = {2202.06358},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2202.06358}
}

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/2202.06358.svg)](https://codeofpaper.com/paper/2202.06358)

Discussion