Blended Diffusion for Text-driven Editing of Natural Images

Omri Avrahami, Dani Lischinski, Ohad Fried
11/29/2021
1,386 citations
cs.CVcs.GRcs.LG
diffusion-flow

Official code: omriav/blended-diffusion (587 stars, Jupyter Notebook, MIT, last commit 2024-06-04).

Abstract

Natural language offers a highly intuitive interface for image editing. In this paper, we introduce the first solution for performing local (region-based) edits in generic natural images, based on a natural language description along with an ROI mask.

Show full abstract

We achieve our goal by leveraging and combining a pretrained language-image model (CLIP), to steer the edit towards a user-provided text prompt, with a denoising diffusion probabilistic model (DDPM) to generate natural-looking results. To seamlessly fuse the edited region with the unchanged parts of the image, we spatially blend noised versions of the input image with the local text-guided diffusion latent at a progression of noise levels. In addition, we show that adding augmentations to the diffusion process mitigates adversarial results. We compare against several baselines and related methods, both qualitatively and quantitatively, and show that our method outperforms these solutions in terms of overall realism, ability to preserve the background and matching the text. Finally, we show several text-driven editing applications, including adding a new object to an image, removing/replacing/altering existing objects, background replacement, and image extrapolation. Code is available at: https://omriavrahami.com/blended-diffusion-page/

View on arXivView PDF

Code Implementations(1)

MIT

Official implementation for "Blended Diffusion for Text-driven Editing of Natural Images" [CVPR 2022]

58742Jupyter Notebook, PythonNov 29, 20212 years agoMIT
blended-diffusiondeep-learningdiffusionmultimodalopenai+3 more

Similar Papers

Cite this paper

@article{avrahami2021blended,
  title  = {Blended Diffusion for Text-driven Editing of Natural Images},
  author = {Omri Avrahami and Dani Lischinski and Ohad Fried},
  year   = {2021},
  eprint = {2111.14818},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2111.14818}
}

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

Discussion