Minutes to Seconds: Speeded-up DDPM-based Image Inpainting with Coarse-to-Fine Sampling

Lintao Zhang, Xiangcheng Du, LeoWu TomyEnrique, Yiqun Wang, Yingbin Zheng +1 more
7/8/2024
cs.CV

No official code found. Best implementation: linghuyuhangyuan/M2S (55 stars, last commit 2025-07-18).

Abstract

For image inpainting, the existing Denoising Diffusion Probabilistic Model (DDPM) based method i.e. RePaint can produce high-quality images for any inpainting form. It utilizes a pre-trained DDPM as a prior and generates inpainting results by conditioning on the reverse diffusion process, namely denoising process. However, this process is significantly time-consuming. In this paper, we propose an efficient DDPM-based image inpainting method which includes three speed-up strategies. First, we utilize a pre-trained Light-Weight Diffusion Model (LWDM) to reduce the number of parameters. Second, we introduce a skip-step sampling scheme of Denoising Diffusion Implicit Models (DDIM) for the denoising process. Finally, we propose Coarse-to-Fine Sampling (CFS), which speeds up inference by reducing image resolution in the coarse stage and decreasing denoising timesteps in the refinement stage. We conduct extensive experiments on both faces and general-purpose image inpainting tasks, and our method achieves competitive performance with approximately 60 times speedup.

View on arXivView PDF

Code Implementations(1)

Official PyTorch Code and Models of "Minutes to Seconds: Speeded-up DDPM-based Image Inpainting with Coarse-to-Fine Sampling", ICME 2024

552Shell, PythonMar 19, 20241 years ago

Similar Papers

Cite this paper

@article{zhang2024minutes,
  title  = {Minutes to Seconds: Speeded-up DDPM-based Image Inpainting with Coarse-to-Fine Sampling},
  author = {Lintao Zhang and Xiangcheng Du and LeoWu TomyEnrique and Yiqun Wang and Yingbin Zheng and Cheng Jin},
  year   = {2024},
  eprint = {2407.05875},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.05875v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2407.05875.svg)](https://codeofpaper.com/paper/2407.05875)

Discussion