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

RePaint: Inpainting using Denoising Diffusion Probabilistic Models

About

Free-form inpainting is the task of adding new content to an image in the regions specified by an arbitrary binary mask. Most existing approaches train for a certain distribution of masks, which limits their generalization capabilities to unseen mask types. Furthermore, training with pixel-wise and perceptual losses often leads to simple textural extensions towards the missing areas instead of semantically meaningful generation. In this work, we propose RePaint: A Denoising Diffusion Probabilistic Model (DDPM) based inpainting approach that is applicable to even extreme masks. We employ a pretrained unconditional DDPM as the generative prior. To condition the generation process, we only alter the reverse diffusion iterations by sampling the unmasked regions using the given image information. Since this technique does not modify or condition the original DDPM network itself, the model produces high-quality and diverse output images for any inpainting form. We validate our method for both faces and general-purpose image inpainting using standard and extreme masks. RePaint outperforms state-of-the-art Autoregressive, and GAN approaches for at least five out of six mask distributions. Github Repository: git.io/RePaint

Andreas Lugmayr, Martin Danelljan, Andres Romero, Fisher Yu, Radu Timofte, Luc Van Gool• 2022

Related benchmarks

TaskDatasetResultRank
Traffic State EstimationI-24 MOTION 200x200 grids (unobserved pixels)
LPIPS0.0657
108
InpaintingImageNet
LPIPS0.064
54
Image InpaintingPlaces2 irregular mask (val)
PSNR29.16
48
Image InpaintingCelebA-HQ
LPIPS0.009
42
Image GenerationImageNet 256x256 50k images (val)
FID8.56
42
Image InpaintingFFHQ (test)
FID24.2
40
InpaintingCelebA-HQ
LPIPS0.009
36
InpaintingCelebA
PSNR35.2
30
Class-to-image generationImageNet 256x256 50k images 2012 (test)
FID8.56
28
Camouflaged Image SynthesisLAKE-RED Camouflaged Objects
KL_BF3.5917
28
Showing 10 of 45 rows

Other info

Code

Follow for update