Concepedia

Publication | Closed Access

Generative Image Inpainting with Contextual Attention

2.4K

Citations

29

References

2018

Year

TLDR

Deep‑learning inpainting methods can produce plausible structures but often yield distorted or blurry results because CNNs struggle to borrow distant information, whereas traditional texture synthesis excels at reusing surrounding textures. We propose a generative model that synthesizes novel structures while explicitly using surrounding image features as references during training. The model is a fully convolutional, feedforward network that processes images with multiple arbitrary holes of varying sizes at test time. Across faces, textures, and natural image datasets, the method outperforms existing approaches, producing higher‑quality inpainting. Code, demo, and models are available at https://github.com/JiahuiYu/generative_inpainting.

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 feedforward, 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.

References

YearCitations

Page 1