Generative Image Inpainting with Contextual Attention
Authors:
Preprint
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.Keywords
All Related Versions
This publication has 11 references indexed in Scilit:
- On the Effectiveness of Least Squares Generative Adversarial NetworksIEEE Transactions on Pattern Analysis and Machine Intelligence, 2018
- Places: A 10 Million Image Database for Scene RecognitionIEEE Transactions on Pattern Analysis and Machine Intelligence, 2017
- Transformation-Grounded Image Generation Network for Novel 3D View Synthesis2017
- Generative Face Completion2017
- High-Resolution Image Inpainting Using Multi-scale Neural Patch Synthesis2017
- Active Convolution: Learning the Shape of Convolution for Image Classification2017
- Image completion using planar structure guidanceACM Transactions on Graphics, 2014
- Video Inpainting of Complex ScenesSIAM Journal on Imaging Sciences, 2014
- Scene completion using millions of photographsCommunications of the ACM, 2008
- Filling-in by joint interpolation of vector fields and gray levelsIEEE Transactions on Image Processing, 2001