Gradpaint: Gradient-Guided Inpainting with Diffusion Models

09/18/2023
by   Asya Grechka, et al.
0

Denoising Diffusion Probabilistic Models (DDPMs) have recently achieved remarkable results in conditional and unconditional image generation. The pre-trained models can be adapted without further training to different downstream tasks, by guiding their iterative denoising process at inference time to satisfy additional constraints. For the specific task of image inpainting, the current guiding mechanism relies on copying-and-pasting the known regions from the input image at each denoising step. However, diffusion models are strongly conditioned by the initial random noise, and therefore struggle to harmonize predictions inside the inpainting mask with the real parts of the input image, often producing results with unnatural artifacts. Our method, dubbed GradPaint, steers the generation towards a globally coherent image. At each step in the denoising process, we leverage the model's "denoised image estimation" by calculating a custom loss measuring its coherence with the masked input image. Our guiding mechanism uses the gradient obtained from backpropagating this loss through the diffusion model itself. GradPaint generalizes well to diffusion models trained on various datasets, improving upon current state-of-the-art supervised and unsupervised methods.

READ FULL TEXT

page 14

page 15

page 16

page 17

page 18

page 19

page 20

page 21

research
10/20/2022

DiffEdit: Diffusion-based semantic image editing with mask guidance

Image generation has recently seen tremendous advances, with diffusion m...
research
08/25/2023

Residual Denoising Diffusion Models

Current diffusion-based image restoration methods feed degraded input im...
research
11/17/2022

RenderDiffusion: Image Diffusion for 3D Reconstruction, Inpainting and Generation

Diffusion models currently achieve state-of-the-art performance for both...
research
07/13/2020

Domain aware medical image classifier interpretation by counterfactual impact analysis

The success of machine learning methods for computer vision tasks has dr...
research
01/31/2023

DisDiff: Unsupervised Disentanglement of Diffusion Probabilistic Models

In this paper, targeting to understand the underlying explainable factor...
research
06/08/2023

SyncDiffusion: Coherent Montage via Synchronized Joint Diffusions

The remarkable capabilities of pretrained image diffusion models have be...
research
08/23/2023

Efficient Transfer Learning in Diffusion Models via Adversarial Noise

Diffusion Probabilistic Models (DPMs) have demonstrated substantial prom...

Please sign up or login with your details

Forgot password? Click here to reset