An Edit Friendly DDPM Noise Space: Inversion and Manipulations

Inbar Huberman-Spiegelglas, Vladimir Kulikov, Tomer Michaeli
4/12/2023
cs.CVcs.LG

No official code found. Best implementation: inbarhub/DDPM_inversion (368 stars, MIT, last commit 2024-07-11). 1 more below.

Abstract

Denoising diffusion probabilistic models (DDPMs) employ a sequence of white Gaussian noise samples to generate an image. In analogy with GANs, those noise maps could be considered as the latent code associated with the generated image. However, this native noise space does not possess a convenient structure, and is thus challenging to work with in editing tasks. Here, we propose an alternative latent noise space for DDPM that enables a wide range of editing operations via simple means, and present an inversion method for extracting these edit-friendly noise maps for any given image (real or synthetically generated). As opposed to the native DDPM noise space, the edit-friendly noise maps do not have a standard normal distribution and are not statistically independent across timesteps. However, they allow perfect reconstruction of any desired image, and simple transformations on them translate into meaningful manipulations of the output image (e.g. shifting, color edits). Moreover, in text-conditional models, fixing those noise maps while changing the text prompt, modifies semantics while retaining structure. We illustrate how this property enables text-based editing of real images via the diverse DDPM sampling scheme (in contrast to the popular non-diverse DDIM inversion). We also show how it can be used within existing diffusion-based editing methods to improve their quality and diversity. Webpage: https://inbarhub.github.io/DDPM_inversion

View on arXivView PDF

Code Implementations(2)

MIT

Official pytorch implementation of the paper: "An Edit Friendly DDPM Noise Space: Inversion and Manipulations". CVPR 2024.

36815PythonApr 19, 20232 years agoMIT
ddpmeditinggenerative-modelinversionlatent-space+2 more

implementation of An Edit Friendly DDPM Noise Space: Inversion and Manipulations paper

00PythonApr 14, 20251 years ago

Similar Papers

Cite this paper

@article{hubermanspiegelglas2023edit,
  title  = {An Edit Friendly DDPM Noise Space: Inversion and Manipulations},
  author = {Inbar Huberman-Spiegelglas and Vladimir Kulikov and Tomer Michaeli},
  year   = {2023},
  eprint = {2304.06140},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2304.06140v3},
  journal = {CVPR 2023 2023}
}

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/2304.06140.svg)](https://codeofpaper.com/paper/2304.06140)

Discussion