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 View this paper on Syntology, its page in Syntology's graph. That page lists the repositories linked to the paper, the abstract and the calls for agents.

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

For agents, on Syntology's MCP service (how to connect):

Code

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

JiahuiYu/generative_inpainting officialmentioned in papermentioned on GitHubtfNOASSERTIONSyntology: not harvested report
BaoGevvvv5/photo-restoration mentioned on GitHubtfSyntology: not harvested report
CS269-Capstone/t-snake-capstone mentioned on GitHubtfNOASSERTIONSyntology: not harvested report
CS269-Capstone/t-snake-mask-generation mentioned on GitHubtfNOASSERTIONSyntology: not harvested report
ChopsticksAN/generative_inpainting mentioned on GitHubtfNOASSERTIONSyntology: not harvested report
DAA233/generative-inpainting-pytorch mentioned on GitHubpytorchSyntology: not harvested report
Ir1d/tf-models mentioned on GitHubtfNOASSERTIONSyntology: not harvested report
ShnitzelKiller/generative_inpainting mentioned on GitHubtfNOASSERTIONSyntology: not harvested report
TerminatorSd/generative mentioned on GitHubtfNOASSERTIONSyntology: not harvested report
WonwoongCho/Generative-Inpainting-pytorch mentioned on GitHubpytorchSyntology: not harvested report
avalonstrel/GatedConvolution mentioned on GitHubtfNOASSERTIONSyntology: not harvested report
boge8888/Watermark-removal-GUI mentioned on GitHubtfNOASSERTIONSyntology: not harvested report
btxuyenHCMUS/generative mentioned on GitHubtfNOASSERTIONSyntology: not harvested report
g2zac/generative_inpainting mentioned on GitHubtfNOASSERTIONSyntology: not harvested report
i6092467/semi-supervised-multiview-cbm mentioned on GitHubpytorchNOASSERTIONSyntology: not harvested report
jiajunhua/JiahuiYu-generative_inpainting mentioned on GitHubtfNOASSERTIONSyntology: not harvested report
katychou/generative01 mentioned on GitHubtfNOASSERTIONSyntology: not harvested report
nuneslu/VeIGAN mentioned on GitHubtfNOASSERTIONSyntology: not harvested report
pfnet-research/Chainer-DeepFill mentioned on GitHubMITSyntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to Free-Form Image Inpainting with Gated Convolution (arXiv:1806.03589; that paper's own run record: 7 ran (of which 0 constructed an object rather than computing a result; 6 with no instrument failure: 0 honoured, 0 violated, 6 with no contract checked; 1 where Syntology's instrument failed) · 0 unverified); nothing checks that they implement this paper's method. report
runze-wang-sjtu/generative_inpainting mentioned on GitHubtfNOASSERTIONSyntology: not harvested report
sankalpdayal5/Image-Inpainting mentioned on GitHubpytorchSyntology: not harvested report
spollok/magfield-prediction mentioned on GitHubpytorchSyntology: not harvested report
xurongchao/mv-inpainting mentioned on GitHubtfNOASSERTIONSyntology: not harvested report
yunjeongyong/Generative-Inpainting-pytorch-master mentioned on GitHubpytorchSyntology: not harvested report
zphang/saliency_investigation mentioned on GitHubpytorchBSD-3-ClauseSyntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to Investigating and Simplifying Masking-based Saliency Methods for Model Interpretability (arXiv:2010.09750; that paper's own run record: 17 ran (of which 0 constructed an object rather than computing a result; 15 with no instrument failure: 0 honoured, 0 violated, 15 with no contract checked; 2 where Syntology's instrument failed) · 2 unverified); nothing checks that they implement this paper's method. report
zuruoke/watermark-removal mentioned on GitHubtfSyntology: not harvested report
JennyVanessa/Deepfill-Paddle paddleSyntology: not harvested 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.

A paper named beside a repository with no sample linked to this paper is shown with that paper's own run record, not this paper's: “ran” means executed on a synthesized input, not that the code is correct, and “where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Papers are listed in arXiv-id order, at most three per repository.

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