Papers › Generative Image Inpainting with Contextual Attention

Generative Image Inpainting with Contextual Attention

24 Jan 2018CVPR 2018 6arXiv:1801.07892archive 2025-07-28

Jiahui Yu, Zhe Lin, Jimei Yang, Xiaohui Shen, Xin Lu, Thomas S. Huang

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.

PaperPDFConference PDFCode

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

Code

28 repositories listed; official and paper-mentioned ones first.

JiahuiYu/generative_inpainting officialmentioned in papermentioned on GitHubtfNOASSERTION report
BaoGevvvv5/photo-restoration mentioned on GitHubtf report
CS269-Capstone/t-snake-capstone mentioned on GitHubtfNOASSERTION report
CS269-Capstone/t-snake-mask-generation mentioned on GitHubtfNOASSERTION report
ChopsticksAN/generative_inpainting mentioned on GitHubtfNOASSERTION report
DAA233/generative-inpainting-pytorch mentioned on GitHubpytorch report
Ir1d/tf-models mentioned on GitHubtfNOASSERTION report
ShnitzelKiller/generative_inpainting mentioned on GitHubtfNOASSERTION report
TerminatorSd/generative mentioned on GitHubtfNOASSERTION report
avalonstrel/GatedConvolution mentioned on GitHubtfNOASSERTION report
boge8888/Watermark-removal-GUI mentioned on GitHubtfNOASSERTION report
btxuyenHCMUS/generative mentioned on GitHubtfNOASSERTION report
g2zac/generative_inpainting mentioned on GitHubtfNOASSERTION report
i6092467/semi-supervised-multiview-cbm mentioned on GitHubpytorchNOASSERTION report
jiajunhua/JiahuiYu-generative_inpainting mentioned on GitHubtfNOASSERTION report
katychou/generative01 mentioned on GitHubtfNOASSERTION report
nuneslu/VeIGAN mentioned on GitHubtfNOASSERTION report
pfnet-research/Chainer-DeepFill mentioned on GitHubMIT report
runze-wang-sjtu/generative_inpainting mentioned on GitHubtfNOASSERTION report
sankalpdayal5/Image-Inpainting mentioned on GitHubpytorch report
spollok/magfield-prediction mentioned on GitHubpytorch report
xurongchao/mv-inpainting mentioned on GitHubtfNOASSERTION report
zphang/saliency_investigation mentioned on GitHubpytorchBSD-3-Clause report
zuruoke/watermark-removal mentioned on GitHubtf report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

Not run by Syntology. Nothing on this page verifies that the listed code works.

Tasks

Image Inpainting

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections