Generative Image Inpainting with Contextual Attention

Jiahui Yu, Zhe Lin, Jimei Yang, Xiaohui Shen, Xin Lu +1 more
1/24/2018
cs.CVcs.GR

Official code: JiahuiYu/generative_inpainting (3,461 stars, TensorFlow, last commit 2024-06-27).

Abstract

Recent deep learning based approaches have shown promising results for the challenging task of inpainting large missing regions in an image. These methods can generate visually plausible image structures and textures, but often create distorted structures or blurry textures inconsistent with surrounding areas. This is mainly due to ineffectiveness of convolutional neural networks in explicitly borrowing or copying information from distant spatial locations. On the other hand, traditional texture and patch synthesis approaches are particularly suitable when it needs to borrow textures from the surrounding regions. Motivated by these observations, we propose a new deep generative model-based approach which can not only synthesize novel image structures but also explicitly utilize surrounding image features as references during network training to make better predictions. The model is a feed-forward, fully convolutional neural network which can process images with multiple holes at arbitrary locations and with variable sizes during the test time. Experiments on multiple datasets including faces (CelebA, CelebA-HQ), textures (DTD) and natural images (ImageNet, Places2) demonstrate that our proposed approach generates higher-quality inpainting results than existing ones. Code, demo and models are available at: https://github.com/JiahuiYu/generative_inpainting.

View on arXivView PDF

Code Implementations(1)

TensorFlow

DeepFill v1/v2 with Contextual Attention and Gated Convolution, CVPR 2018, and ICCV 2019 Oral

3,461798PythonJan 24, 20182 years agoNOASSERTION
attention-modeldeep-neural-networksdeepfillgenerative-adversarial-networkimage-inpainting+1 more

Similar Papers

Cite this paper

@article{yu2018generative,
  title  = {Generative Image Inpainting with Contextual Attention},
  author = {Jiahui Yu and Zhe Lin and Jimei Yang and Xiaohui Shen and Xin Lu and Thomas S. Huang},
  year   = {2018},
  eprint = {1801.07892},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1801.07892}
}

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

Discussion