Papers › Blended Latent Diffusion

Blended Latent Diffusion

6 Jun 2022arXiv:2206.02779archive 2025-07-28

Omri Avrahami, Ohad Fried, Dani Lischinski

The tremendous progress in neural image generation, coupled with the emergence of seemingly omnipotent vision-language models has finally enabled text-based interfaces for creating and editing images. Handling generic images requires a diverse underlying generative model, hence the latest works utilize diffusion models, which were shown to surpass GANs in terms of diversity. One major drawback of diffusion models, however, is their relatively slow inference time. In this paper, we present an accelerated solution to the task of local text-driven editing of generic images, where the desired edits are confined to a user-provided mask. Our solution leverages a recent text-to-image Latent Diffusion Model (LDM), which speeds up diffusion by operating in a lower-dimensional latent space. We first convert the LDM into a local image editor by incorporating Blended Diffusion into it. Next we propose an optimization-based solution for the inherent inability of this LDM to accurately reconstruct images. Finally, we address the scenario of performing local edits using thin masks. We evaluate our method against the available baselines both qualitatively and quantitatively and demonstrate that in addition to being faster, our method achieves better precision than the baselines while mitigating some of their artifacts.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2206.02779")

Code

Syntology Ran 9 of 13 code samples harvested from 1 repository linked to this paper; 4 have no recorded run. Of those that ran: 3 ran · violated contract; 4 ran · our draft was wrong; 2 ran with no contract checked.

By repository: official repository: 12 samples from 1 repository, 8 ran; 1 identical to code first harvested elsewhere. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

omriav/blended-latent-diffusion officialmentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

13 samples harvested; 9 ran; 0 honoured the contract we drafted; 4 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

3ran · violated contract
4ran · our draft was wrong
2ran
4unverified

Licence: 1 of the 13 samples is pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from omriav/blended-latent-diffusion. Some samples are identical code Syntology first harvested from another repository; for those, this paper's copy is not located and its licence is not recorded. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

always omriav/blended-latent-diffusion/ldm/modules/x_transformer.py official repository ran · our draft was wrong MIT (permissive) · fe5dd5258046898c · report
default omriav/blended-latent-diffusion/ldm/modules/attention.py official repository ran · violated contract MIT (permissive) · 424012cb37b31172 · report
disabled_train omriav/blended-latent-diffusion/ldm/models/diffusion/classifier.py official repository ran · violated contract MIT (permissive) · 4cb732f513d69dfd · report
exists omriav/blended-latent-diffusion/ldm/modules/attention.py official repository ran · violated contract MIT (permissive) · aa5486a3650902d8 · report
isimage omriav/blended-latent-diffusion/ldm/util.py official repository ran MIT (permissive) · b1368330cf0f5642 · report
ismap omriav/blended-latent-diffusion/ldm/util.py official repository ran MIT (permissive) · d72762b700feee6f · report
uniform_on_device omriav/blended-latent-diffusion/ldm/models/diffusion/ddpm.py official repository ran · our draft was wrong MIT (permissive) · d48d8354986e3b0e · report
uniq omriav/blended-latent-diffusion/ldm/modules/attention.py official repository ran · our draft was wrong MIT (permissive) · 9a299fe5ae09e407 · report
log_txt_as_img omriav/blended-latent-diffusion/ldm/util.py official repository unverified MIT (permissive) · f9bd2e83191afad1 · report
poisson_seamless_clone omriav/blended-latent-diffusion/general_utils/seamless_cloning.py official repository unverified MIT (permissive) · 0613f2f4604f93be · report
read_image omriav/blended-latent-diffusion/ldm/image_editor.py official repository unverified MIT (permissive) · 4ade4a4d309afc6d · report
read_mask omriav/blended-latent-diffusion/ldm/image_editor.py official repository unverified MIT (permissive) · bc0ee9eb44bfdbb4 · report
rescale_noise_cfg identical code first harvested elsewhere ran · our draft was wrong fingerprinted licence of this copy not recorded · bea2d776a332f2b0 · report

Tasks

Image GenerationImage InpaintingText-to-Image GenerationZero-Shot Text-to-Image Generationspatial-aware image editingtext-guided-image-editing

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Blended DiffusionDiffusionLatent Diffusion Model

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections