Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Generative Image Inpainting with Contextual Attention

About

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.

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

Related benchmarks

TaskDatasetResultRank
Image InpaintingPlaces2 (test)
PSNR26.27
68
Face RestorationWebFace (test)
PSNR25.96
55
Video InpaintingDAVIS (test)
PSNR16.47
54
Image InpaintingPlaces2 (evaluation)
L1 Error0.89
42
Image InpaintingCelebA-HQ
LPIPS0.049
42
InpaintingCelebA-HQ
LPIPS0.049
36
InpaintingPlaces2 Wide Mask 512x512 (test)
FID5.2
30
Image InpaintingParis StreetView (test)
L1 Error75
28
InpaintingPlaces2 512x512 Narrow Mask (test)
FID1.06
15
InpaintingPlaces2 Medium Mask 512x512 (test)
FID2.68
15
Showing 10 of 45 rows

Other info

Follow for update