Papers › ControlCom: Controllable Image Composition using Diffusion Model

ControlCom: Controllable Image Composition using Diffusion Model

19 Aug 2023arXiv:2308.10040archive 2025-07-28

Bo Zhang, Yuxuan Duan, Jun Lan, Yan Hong, Huijia Zhu, Weiqiang Wang, Li Niu

Image composition targets at synthesizing a realistic composite image from a pair of foreground and background images. Recently, generative composition methods are built on large pretrained diffusion models to generate composite images, considering their great potential in image generation. However, they suffer from lack of controllability on foreground attributes and poor preservation of foreground identity. To address these challenges, we propose a controllable image composition method that unifies four tasks in one diffusion model: image blending, image harmonization, view synthesis, and generative composition. Meanwhile, we design a self-supervised training framework coupled with a tailored pipeline of training data preparation. Moreover, we propose a local enhancement module to enhance the foreground details in the diffusion model, improving the foreground fidelity of composite images. The proposed method is evaluated on both public benchmark and real-world data, which demonstrates that our method can generate more faithful and controllable composite images than existing approaches. The code and model will be available at https://github.com/bcmi/ControlCom-Image-Composition.

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="2308.10040")

Code

Syntology Ran 14 of 15 code samples harvested from 1 repository linked to this paper; 1 has no recorded run. Of those that ran: 1 ran · honoured contract; 4 ran · violated contract; 6 ran · our draft was wrong; 1 ran · fixture could not drive it; 2 ran with no contract checked.

By repository: official repository: 13 samples from 1 repository, 12 ran; 2 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.

bcmi/controlcom-image-composition officialmentioned in papermentioned 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

15 samples harvested; 14 ran; 1 honoured the contract we drafted; 1 has no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
4ran · violated contract
6ran · our draft was wrong
1ran · fixture could not drive it
2ran
1unverified

Licence: 2 of the 15 samples are 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 bcmi/controlcom-image-composition. 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.

Normalize bcmi/controlcom-image-composition/ldm/modules/diffusionmodules/model.py official repository ran · our draft was wrong MIT (permissive) · 9fcdaa6e423e8aa7 · report
always bcmi/controlcom-image-composition/ldm/modules/x_transformer.py official repository ran · our draft was wrong MIT (permissive) · fe5dd5258046898c · report
clip2sd bcmi/controlcom-image-composition/ldm/models/diffusion/ddpm.py official repository ran · honoured contract fingerprinted MIT (permissive) · 3e5f67215d50b497 · report
default bcmi/controlcom-image-composition/ldm/modules/attention.py official repository ran · violated contract MIT (permissive) · 424012cb37b31172 · report
disabled_train bcmi/controlcom-image-composition/ldm/models/diffusion/classifier.py official repository ran · violated contract MIT (permissive) · 4cb732f513d69dfd · report
exists bcmi/controlcom-image-composition/ldm/modules/attention.py official repository ran · violated contract MIT (permissive) · aa5486a3650902d8 · report
get_timestep_embedding bcmi/controlcom-image-composition/ldm/modules/diffusionmodules/model.py official repository ran · fixture could not drive it fingerprinted MIT (permissive) · cb49209c125de1b4 · report
isimage bcmi/controlcom-image-composition/ldm/util.py official repository ran MIT (permissive) · b1368330cf0f5642 · report
ismap bcmi/controlcom-image-composition/ldm/util.py official repository ran MIT (permissive) · d72762b700feee6f · report
nonlinearity bcmi/controlcom-image-composition/ldm/modules/diffusionmodules/model.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 3137073275f8c21a · report
uniform_on_device bcmi/controlcom-image-composition/ldm/models/diffusion/ddpm.py official repository ran · our draft was wrong MIT (permissive) · d48d8354986e3b0e · report
uniq bcmi/controlcom-image-composition/ldm/modules/attention.py official repository ran · our draft was wrong MIT (permissive) · 9a299fe5ae09e407 · report
log_txt_as_img bcmi/controlcom-image-composition/ldm/util.py official repository unverified MIT (permissive) · f9bd2e83191afad1 · report
chunk identical code first harvested elsewhere ran · our draft was wrong licence of this copy not recorded · 8241c0562bc710fd · report
numpy_to_pil identical code first harvested elsewhere ran · violated contract licence of this copy not recorded · 1e63d588563eb90a · report

Tasks

Image GenerationImage Harmonizationmodel

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