arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2309.09614cs.CVcs.AIcs.LG
收藏

GradPaint:基于梯度引导的扩散模型图像修复

Gradpaint: Gradient-Guided Inpainting with Diffusion Models

Sorbonne Université(索邦大学)

Asya Grechka, Guillaume Couairon, Matthieu Cord

AI总结:

本文提出GradPaint,通过在扩散模型去噪过程中利用自定义一致性损失的梯度引导生成,实现全局连贯的图像修复,并在多个数据集上超越现有监督和无监督方法。

摘要:

去噪扩散概率模型(DDPMs)近年来在条件图像生成和无条件图像生成方面取得了显著成果。通过在推理阶段引导其迭代去噪过程以满足额外约束,预训练模型无需进一步训练即可适配不同的下游任务。针对图像修复这一特定任务,当前的引导机制依赖于在每个去噪步骤中从输入图像复制并粘贴已知区域。然而,扩散模型受到初始随机噪声的强烈制约,因此难以使修复掩码内部的预测与输入图像的真实部分协调一致,常常产生带有不自然伪影的结果。我们的方法名为GradPaint,将生成过程引导至全局连贯的图像。在去噪过程的每一步中,我们利用模型的“去噪图像估计”,通过计算一个自定义损失来衡量其与带掩码输入图像的一致性。我们的引导机制使用通过扩散模型本身反向传播该损失所获得的梯度。GradPaint能够很好地泛化到在各种数据集上训练的扩散模型,优于当前最先进的监督和无监督方法。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑