SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2311.16711 · 2023

LEDITS++: Limitless Image Editing using Text-to-Image Models

arXiv · PDF · Open in the Atlas

Code that ran

6 of 8 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 4 have no contract verdict; 1 failure of our instrument; 2 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2311.16711.json · badge: /api/ran/2311.16711.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
ml-research/ledits_pp community (classifier label)
classifier basis not recorded on the link
6 ran · 2 no recorded run
FunctionStatusWhere it lives
betas_for_alpha_bar Ran
ran, honoured the contract we drafted
ml-research/ledits_pp/src/leditspp/scheduling_dpmsolver_multistep_inject.py
pointer only (licence: MIT); the stored copy get_code serves, from gulucaptain/videoassembler, is pointer only (licence: NONE) · get_code("c3d321eafd7ea5fc")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from gulucaptain/videoassembler, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

compute_noise_ddim Ran
ran on a synthesized input
ml-research/ledits_pp/src/leditspp/pipeline_if_ledits.py
code served (permissive licence) · get_code("444d6abb44e357c9")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 3, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

class MockSchedulerConfig:
    def __init__(self):
        self.num_train_timesteps = 1000
        self.clip_sample = True

class MockScheduler:
    def __init__(self):
        self.config = MockSchedulerConfig()
        self.num_inference_steps = 50
        
        # Create alphas_cumprod: cumulative product of alphas
        # Shape: (1000,) for num_train_timesteps
        alphas = torch.linspace(0.9999, 0.0001, self.config.num_train_timesteps)
        self.alphas_cumprod = torch.cumprod(alphas, dim=0)
        self.final_alpha_cumprod = self.alphas_cumprod[-1]
    
    def _get_variance(self, timestep, prev_timestep):
        # Return a small positive variance value
        alpha_prod_t = self.alphas_cumprod[timestep]
        alpha_prod_t_prev = self.alphas_cumprod[prev_timestep] if prev_timestep >= 0 else self.final_alpha_cumprod
        beta_prod_t = 1 - alpha_prod_t
        beta_prod_t_prev = 1 - alpha_prod_t_prev
        
        variance = (beta_prod_t_prev / beta_prod_t) * (1 - alpha_prod_t / alpha_prod_t_prev)
        return variance.clamp(min=1e-20)

scheduler = MockScheduler()
prev_latents = torch.randn(2, 4)
latents = torch.randn(2, 4)
timestep = 100
noise_pred = torch.randn(2, 4)
eta = 0.5

ARGS = {
    "scheduler": scheduler,
    "prev_latents": prev_latents,
    "latents": latents,
    "timestep": timestep,
    "noise_pred": noise_pred,
    "eta": eta
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 3, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
compute_noise_ddim Ran
ran on a synthesized input
ml-research/ledits_pp/src/leditspp/pipeline_stable_diffusion_ledits.py
code served (permissive licence) · get_code("e4170d87ed96075e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 3, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# Create a minimal scheduler config
class SchedulerConfig:
    def __init__(self):
        self.num_train_timesteps = 1000
        self.clip_sample = True

# Create a minimal scheduler that provides required attributes and methods
class MinimalScheduler:
    def __init__(self):
        self.config = SchedulerConfig()
        self.num_inference_steps = 50
        self.final_alpha_cumprod = 0.0001
        
        # Create alphas_cumprod as a tensor with values decreasing from 1 to final_alpha_cumprod
        num_steps = 1000
        self.alphas_cumprod = torch.linspace(1.0, self.final_alpha_cumprod, num_steps)
    
    def _get_variance(self, timestep, prev_timestep):
        # Return a small positive variance value
        alpha_prod_t = self.alphas_cumprod[timestep]
        alpha_prod_t_prev = self.alphas_cumprod[prev_timestep] if prev_timestep >= 0 else self.final_alpha_cumprod
        beta_prod_t = 1 - alpha_prod_t
        beta_prod_t_prev = 1 - alpha_prod_t_prev
        variance = (beta_prod_t_prev / beta_prod_t) * (1 - alpha_prod_t / alpha_prod_t_prev)
        return torch.clamp(variance, min=1e-20)

# Create scheduler instance
scheduler = MinimalScheduler()

# Create tensor arguments (batch_size=2, latent_dim=4)
batch_size = 2
latent_dim = 4

prev_latents = torch.randn(batch_size, latent_dim)
latents = torch.randn(batch_size, latent_dim)
noise_pred = torch.randn(batch_size, latent_dim)

# Set timestep to something valid (not at the boundary)
timestep = 500

# Set eta parameter
eta = 0.0

ARGS = {
    "scheduler": scheduler,
    "prev_latents": prev_latents,
    "latents": latents,
    "timestep": timestep,
    "noise_pred": noise_pred,
    "eta": eta
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 3, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_512 Ran
ran on a synthesized input
ml-research/ledits_pp/src/leditspp/pipeline_stable_diffusion_ledits.py
code served (permissive licence) · get_code("b46818c7cb0986df")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 4, dtype family float, shape (2, 3, 512, 512) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np
from PIL import Image
import io

torch.manual_seed(0)

# Create a small test image in memory
def create_test_image(width=256, height=256):
    """Create a simple RGB image as numpy array"""
    img_array = np.random.randint(0, 256, (height, width, 3), dtype=np.uint8)
    return img_array

# Create test images
test_image_1 = create_test_image(200, 200)
test_image_2 = create_test_image(300, 250)

ARGS = {
    "image_path": [test_image_1, test_image_2],  # list of numpy arrays
    "sizes": (512, 768),
    "left": 0,
    "right": 0,
    "top": 0,
    "bottom": 0,
    "device": None,
    "dtype": None,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 4, dtype family float, shape (2, 3, 512, 512) — shape (2, 3, 512, 512) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_image Ran
ran on a synthesized input
ml-research/ledits_pp/src/leditspp/pipeline_stable_diffusion_xl_ledits.py
code served (permissive licence) · get_code("875f3a7a1739c2b1")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 4, dtype family float, shape (2, 3, 4, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np
from PIL import Image
import tempfile
import os

torch.manual_seed(0)

# Create a temporary small test image file
temp_dir = tempfile.mkdtemp()
test_image = Image.new('RGB', (8, 6), color=(255, 0, 0))
test_image_path = os.path.join(temp_dir, 'test.png')
test_image.save(test_image_path)

# Create a numpy array image as an alternative
np_image = np.random.randint(0, 256, (8, 6, 3), dtype=np.uint8)

# Create a PIL Image object as an alternative
pil_image = Image.new('RGB', (8, 6), color=(0, 255, 0))

ARGS = {
    'image_path': [test_image_path, np_image],
    'size': 4,
    'left': 0,
    'right': 0,
    'top': 0,
    'bottom': 0,
    'device': None,
    'dtype': torch.float32
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 4, dtype family float, shape (2, 3, 4, 4) — shape (2, 3, 4, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
rescale_noise_cfg Ran
ran; our contract draft was wrong, not the code
ml-research/ledits_pp/src/leditspp/pipeline_stable_diffusion_xl_ledits.py
code served (permissive licence) · get_code("bea2d776a332f2b0")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned Tensor, ndim 4, dtype family float, shape (2, 4, 3, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create small tensors with distinct dimensions
# noise_cfg: shape (batch=2, channels=4, height=3, width=3)
noise_cfg = torch.randn(2, 4, 3, 3)

# noise_pred_text: shape (batch=2, channels=4, height=3, width=3)
noise_pred_text = torch.randn(2, 4, 3, 3)

# guidance_rescale: float between 0 and 1
guidance_rescale = 0.7

ARGS = {
    "noise_cfg": noise_cfg,
    "noise_pred_text": noise_pred_text,
    "guidance_rescale": guidance_rescale,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 4, dtype family float, shape (2, 4, 3, 3) — shape (2, 4, 3, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
compute_noise_sde_dpm_pp_2nd Not yet run
unverified (harvested, no recorded run)
ml-research/ledits_pp/src/leditspp/pipeline_if_ledits.py
code served (permissive licence) · get_code("bf2a1e579dd5f43f")
How it ran

no invocation recorded.

compute_noise_sde_dpm_pp_2nd Not yet run
unverified (harvested, no recorded run)
ml-research/ledits_pp/src/leditspp/pipeline_stable_diffusion_ledits.py
code served (permissive licence) · get_code("fbd1e6004ba1f422")
How it ran

no invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 2 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 2 the same month, 1 later) and 6 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
rescale_noise_cfg 62 other papers
4 dated earlier, 2 the same month, 56 later
2206.02779 (2022-06)
Blended Latent Diffusion
2304.06720 (2023-04)
Expressive Text-to-Image Generation with Rich Text
2309.06380 (2023-09)
InstaFlow: One Step is Enough for High-Quality Diffusion-Based Text-to-Image Generation
and 59 more not named here
betas_for_alpha_bar 3 other papers
2 dated earlier, 1 the same month
2204.13902 (2022-04)
Fast Sampling of Diffusion Models with Exponential Integrator
2307.14352 (2023-07)
General Image-to-Image Translation with One-Shot Image Guidance
2311.17338 (2023-11)
MagDiff: Multi-Alignment Diffusion for High-Fidelity Video Generation and Editing

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Text-to-image diffusion models have recently received increasing interest for their astonishing ability to produce high-fidelity images from solely text inputs. Subsequent research efforts aim to exploit and apply their capabilities to real image editing. However, existing image-to-image methods are often inefficient, imprecise, and of limited versatility. They either require time-consuming finetuning, deviate unnecessarily strongly from the input image, and/or lack support for multiple, simultaneous edits. To address these issues, we introduce LEDITS++, an efficient yet versatile and precise textual image manipulation technique. LEDITS++'s novel inversion approach requires no tuning nor optimization and produces high-fidelity results with a few diffusion steps. Second, our methodology supports multiple simultaneous edits and is architecture-agnostic. Third, we use a novel implicit masking technique that limits changes to relevant image regions. We propose the novel TEdBench++ benchmark as part of our exhaustive evaluation. Our results demonstrate the capabilities of LEDITS++ and its improvements over previous methods.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2311.16711")
get_code_for_paper("2311.16711")
have("2311.16711")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2311.16711.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2311.16711.svg)](https://syntology.ai/paper/2311.16711)

Connect an agent — have() is free.