Papers › TF-ICON: Diffusion-Based Training-Free Cross-Domain Image Composition

TF-ICON: Diffusion-Based Training-Free Cross-Domain Image Composition

24 Jul 2023ICCV 2023 1arXiv:2307.12493archive 2025-07-28

Shilin Lu, Yanzhu Liu, Adams Wai-Kin Kong

Text-driven diffusion models have exhibited impressive generative capabilities, enabling various image editing tasks. In this paper, we propose TF-ICON, a novel Training-Free Image COmpositioN framework that harnesses the power of text-driven diffusion models for cross-domain image-guided composition. This task aims to seamlessly integrate user-provided objects into a specific visual context. Current diffusion-based methods often involve costly instance-based optimization or finetuning of pretrained models on customized datasets, which can potentially undermine their rich prior. In contrast, TF-ICON can leverage off-the-shelf diffusion models to perform cross-domain image-guided composition without requiring additional training, finetuning, or optimization. Moreover, we introduce the exceptional prompt, which contains no information, to facilitate text-driven diffusion models in accurately inverting real images into latent representations, forming the basis for compositing. Our experiments show that equipping Stable Diffusion with the exceptional prompt outperforms state-of-the-art inversion methods on various datasets (CelebA-HQ, COCO, and ImageNet), and that TF-ICON surpasses prior baselines in versatile visual domains. Code is available at https://github.com/Shilin-LU/TF-ICON

PaperPDFConference PDFCodeCode Syntology ranMethod as code

In Syntology View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.

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

For agents, on Syntology's MCP service (how to connect):

Code

Syntology 26 code samples harvested from 2 repositories linked to this paper: 20 ran (of which 3 constructed an object rather than computing a result; 10 with no instrument failure: 0 honoured, 5 violated, 5 with no contract checked; 10 where Syntology's instrument failed) · 6 unverified. Where Syntology's instrument failed: 7 where our contract draft was wrong; 3 where the contract check could not run; failures of Syntology's instrument, not of the code.

By repository: official repository: 15 samples from 1 repository, 14 ran (6 with no instrument failure; 8 where Syntology's instrument failed); community (archive-listed): 11 samples from 1 repository, 6 ran (4 with no instrument failure; 2 where Syntology's instrument failed). The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Levels written between 2026-09-22 and 2026-09-24 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed. 5 of the 20 samples that ran have no recorded date.

Shilin-LU/TF-ICON officialmentioned in papermentioned on GitHubpytorchMITSyntology: 15 samples, 14 ran (8 instrument-failed) · 1 unverified report
shilin-lu/vine mentioned on GitHubjaxSyntology: 11 samples, 6 ran (2 instrument-failed) · 5 unverified 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

26 samples harvested: 20 ran (of which 3 constructed an object rather than computing a result; 10 with no instrument failure: 0 honoured, 5 violated, 5 with no contract checked; 10 where Syntology's instrument failed) · 6 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page last changed ; when this build read Syntology's graph is in the build record. That date is not when the samples ran.

5ran · violated contract
7ran · our draft was wrong
3ran; the contract check could not run
5ran
6unverified

Licence: 14 of the 26 samples are pointer only, meaning Syntology does not serve that copy's text. For 3 of them, this paper's copy is under a permissive licence and cleared, but the stored copy of the same code that Syntology serves is not; the licence label's tooltip gives Syntology's recorded reason. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; the list below is grouped by repository, each group headed by its name and what it is to the paper. “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. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. For 2 samples that ran, the graph records a signature this page does not show: for a class the fixture built without calling, the harness called the object with inputs it made up itself, so the recorded signature is the harness's probe, not the fixture's arguments. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.

Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (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 are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. 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 six 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; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. 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.

A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity. A census tag appears when Syntology's census ran implementations with that name on one shared input per bucket: it gives how many were compared, from how many papers, and how many distinct outputs they produced, and names this sample's bucket when this sample was one of them.

Shilin-LU/TF-ICON official repository 15 samples, 14 ran (8 instrument-failed) · 1 unverified
Normalize in 154 papers ldm/modules/diffusionmodules/model.py ran · our draft was wrong MIT (permissive) · 9fcdaa6e423e8aa7 · report fixture: signature in_channels:int/0/int, num_groups:int/0/int · returned GroupNorm · level recorded 2026-09-22
append_dims in 30 papers
census: 3 implementations from 6 papers, 1 distinct output on one shared input
ldm/models/diffusion/sampling_util.py ran; the contract check could not run (RAISES) MIT (permissive) · 082e51fd548d78b2 · report fixture: signature x:Tensor/3/float, target_dims:int/0/int · returned Tensor · level recorded 2026-09-24
default in 430 papers ldm/modules/attention.py ran · violated contract MIT (permissive) · 424012cb37b31172 · report fixture: signature val:NoneType/0/?, d:callable/0/? · returned int · level recorded 2026-09-22
disabled_train in 172 papers ldm/models/diffusion/ddpm.py ran · violated contract MIT (permissive) · 4cb732f513d69dfd · report fixture: signature self:callable/0/?, mode:bool/0/bool · returned SimpleModel · level recorded, date not recorded
exists in 528 papers
census: 5 implementations from 103 papers, 1 distinct output on one shared input this sample: bucket 1 of 1, arg 1: rank 1, kind int, dtype int64
ldm/modules/attention.py ran · violated contract MIT (permissive) here; the stored copy is pointer only · aa5486a3650902d8 · report fixture: signature val:Tensor/1/int · returned bool · level recorded, date not recorded
get_timestep_embedding in 138 papers
census: 11 implementations from 15 papers, 5 distinct outputs across 2 buckets, one shared input per bucket this sample: bucket 1 of 2, arg 1: rank 1, kind int, dtype int64
ldm/modules/diffusionmodules/model.py ran; the contract check could not run (RAISES) · metamorphic tier: invariant MIT (permissive) · cb49209c125de1b4 · report fixture: signature timesteps:Tensor/1/int, embedding_dim:int/0/int · returned Tensor · level recorded, date not recorded
isimage in 65 papers ldm/util.py ran · violated contract fingerprinted MIT (permissive) · b1368330cf0f5642 · report fixture: signature x:Tensor/4/float · returned bool · level recorded 2026-09-24
ismap in 70 papers ldm/util.py ran · violated contract fingerprinted MIT (permissive) · d72762b700feee6f · report fixture: signature x:Tensor/4/float · returned bool · level recorded 2026-09-24
nonlinearity in 140 papers
census: 4 implementations from 11 papers, 1 distinct output on one shared input this sample: bucket 1 of 1, arg 1: rank 2, kind float, dtype float32
ldm/modules/diffusionmodules/model.py ran · our draft was wrong fingerprinted MIT (permissive) · 3137073275f8c21a · report fixture: signature x:Tensor/2/float · returned Tensor · level recorded, date not recorded
norm_thresholding in 12 papers ldm/models/diffusion/sampling_util.py ran fingerprinted MIT (permissive) · 9898fe8b041f354c · report fixture: signature x0:Tensor/2/float, value:float/0/float · returned Tensor · level recorded 2026-09-24
spatial_norm_thresholding in 10 papers ldm/models/diffusion/sampling_util.py ran · our draft was wrong fingerprinted MIT (permissive) · d86694c13b94ae3a · report fixture: signature x0:Tensor/2/float, value:float/0/float · returned Tensor · level recorded 2026-09-24
text_under_image in 27 papers ptp_scripts/ptp_utils.py ran; the contract check could not run (RAISES) MIT (permissive) here; the stored copy is pointer only · 85d5eb123674597d · report fixture: signature image:ndarray/3/int, text:str/0/str, text_color:tuple/1/int · returned ndarray · level recorded 2026-09-24
uniform_on_device in 45 papers ldm/models/diffusion/ddpm.py ran · our draft was wrong MIT (permissive) · d48d8354986e3b0e · report fixture: signature r1:float/0/float, r2:float/0/float, shape:tuple/1/int, device:device/0/? · returned Tensor · level recorded, date not recorded
uniq in 117 papers ldm/modules/attention.py ran · our draft was wrong MIT (permissive) here; the stored copy is pointer only · 9a299fe5ae09e407 · report fixture: signature arr:list/1/int · returned dict_keys · level recorded 2026-09-22
log_txt_as_img in 72 papers ldm/util.py unverified MIT (permissive) · f9bd2e83191afad1 · report
shilin-lu/vine community (archive-listed) 11 samples, 6 ran (2 instrument-failed) · 5 unverified
ConditionAdaptor vine/src/vine_turbo.py ran licence not identified · pointer only · 67766051714cc3f5 · report fixture: signature secrect:Tensor/2/float, img_feature:Tensor/4/float · returned Tensor · level recorded 2026-09-24
Conv2D in 10 papers vine/src/vine_turbo.py ran fingerprinted licence not identified · pointer only · 32745d47d7d2e2d9 · report fixture: returned Conv2D · level recorded 2026-09-22
Dense in 22 papers vine/src/vine_turbo.py ran licence not identified · pointer only · c3b3a2d8b7a04439 · report fixture: returned Dense · level recorded 2026-09-22
VAE_encode vine/src/vine_turbo.py ran licence not identified · pointer only · 2e3c099f5b18d31d · report fixture: returned VAE_encode · level recorded 2026-09-22
my_vae_decoder_fwd vine/src/vine_turbo.py ran · our draft was wrong licence not identified · pointer only · f7c07edb0eb5581a · report fixture: signature self:callable/0/?, sample:Tensor/4/float, latent_embeds:NoneType/0/? · returned Tensor · level recorded 2026-09-22
my_vae_encoder_fwd vine/src/vine_turbo.py ran · our draft was wrong licence not identified · pointer only · 1f71b297e8da0a68 · report fixture: signature self:callable/0/?, sample:Tensor/4/float · returned Tensor · level recorded 2026-09-22
VAE_decode vine/src/vine_turbo.py unverified licence not identified · pointer only · df3a01fb8f6ab1aa · report
VINE_Turbo vine/src/vine_turbo.py unverified licence not identified · pointer only · 8aae2565e1cd00e4 · report
initialize_unet_no_lora vine/src/vine_turbo.py unverified licence not identified · pointer only · 1d803d016f3caf34 · report
initialize_vae_no_lora vine/src/vine_turbo.py unverified licence not identified · pointer only · c7eede4c9a3fa0e7 · report
make_1step_sched vine/src/vine_turbo.py unverified licence not identified · pointer only · 19414a39b68285aa · report

Method as code Syntology

What Syntology's graph records as this paper's claimed method, lifted into code: each assembly names its bricks (functions and classes), each with its own role and its own verification level. An assembly is not a check that the code implements the method correctly or reproduces the paper's results. Levels are each brick's own verification level in Syntology's graph (level 0: no recorded run), listed brick by brick and never combined into one level; “ran” means the brick executed on a synthesized input, not that its output is correct, and the instrument figure counts failures of Syntology's instrument, not of the code. Where a model read the code against the paper's claim, each assembly's label verdict is one model's judgement, kept in this page's JSON twin; it is not calibrated, so no card prints it.

1 assembly on this paper: 1 harvested, 0 generated.

harvested Assembly for TF-ICON (graph method: TF-ICON). 11 bricks; individually on a fixture: 6 ran (of which 3 constructed an object rather than computing a result; 4 with no instrument failure: 0 honoured, 0 violated, 4 with no contract checked; 2 where Syntology's instrument failed) · 5 unverified. The assembly has not been run end-to-end.

  1. VINE_Turbo entry · level 0 · unverified · 8aae2565e1cd00e4
  2. ConditionAdaptor helper · level 1 · ran · 67766051714cc3f5
  3. VAE_decode model · level 0 · unverified · df3a01fb8f6ab1aa
  4. VAE_encode model · level 1 · ran · 2e3c099f5b18d31d
  5. initialize_unet_no_lora helper · level 0 · unverified · 1d803d016f3caf34
  6. initialize_vae_no_lora helper · level 0 · unverified · c7eede4c9a3fa0e7
  7. make_1step_sched scheduler · level 0 · unverified · 19414a39b68285aa
  8. Conv2D helper · level 1 · ran · 32745d47d7d2e2d9
  9. Dense helper · level 1 · ran · c3b3a2d8b7a04439
  10. my_vae_decoder_fwd helper · level 1 · ran · our draft was wrong · f7c07edb0eb5581a
  11. my_vae_encoder_fwd helper · level 1 · ran · our draft was wrong · 1f71b297e8da0a68

Each brick ends with its code_sha256, Syntology's identity for that exact code; click one to copy the get_code call that returns it. For agents, on Syntology's MCP service: assembly(arxiv_id="2307.12493") returns these assemblies with each brick's role and wiring (how to connect).

Tasks

Image-Guided CompositionText-to-Image Generation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Diffusion

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