Papers › LayoutDiffusion: Controllable Diffusion Model for Layout-to-image Generation

LayoutDiffusion: Controllable Diffusion Model for Layout-to-image Generation

30 Mar 2023CVPR 2023 1arXiv:2303.17189archive 2025-07-28

Guangcong Zheng, Xianpan Zhou, XueWei Li, Zhongang Qi, Ying Shan, Xi Li

Recently, diffusion models have achieved great success in image synthesis. However, when it comes to the layout-to-image generation where an image often has a complex scene of multiple objects, how to make strong control over both the global layout map and each detailed object remains a challenging task. In this paper, we propose a diffusion model named LayoutDiffusion that can obtain higher generation quality and greater controllability than the previous works. To overcome the difficult multimodal fusion of image and layout, we propose to construct a structural image patch with region information and transform the patched image into a special layout to fuse with the normal layout in a unified form. Moreover, Layout Fusion Module (LFM) and Object-aware Cross Attention (OaCA) are proposed to model the relationship among multiple objects and designed to be object-aware and position-sensitive, allowing for precisely controlling the spatial related information. Extensive experiments show that our LayoutDiffusion outperforms the previous SOTA methods on FID, CAS by relatively 46.35%, 26.70% on COCO-stuff and 44.29%, 41.82% on VG. Code is available at https://github.com/ZGCTroy/LayoutDiffusion.

PaperPDFConference PDFCodeCode 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="2303.17189")

Code

Syntology Ran 5 of 19 code samples harvested from 2 repositories linked to this paper; 14 have no recorded run. Of those that ran: 2 ran · honoured contract; 1 ran · our draft was wrong; 2 ran with no contract checked.

By repository: official repository: 12 samples from 1 repository, 3 ran; named in the paper: 7 samples from 1 repository, 2 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

dcdcvgroup/layout-diffusion-mindspore officialmentioned on GitHubmindsporeMIT report
zgctroy/layoutdiffusion mentioned in papermentioned on GitHubpytorch 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

19 samples harvested; 5 ran; 2 honoured the contract we drafted; 14 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.

2ran · honoured contract
1ran · our draft was wrong
2ran
14unverified

Licence: 0 of the 19 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 2 repositories linked to this paper, official or community; each sample names its own and says which. “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.

betas_for_alpha_bar dcdcvgroup/layout-diffusion-mindspore/layout_diffusion/gaussian_diffusion.py official repository ran · honoured contract MIT (permissive) · 2ab2316ac6fdd869 · report
get_named_beta_schedule dcdcvgroup/layout-diffusion-mindspore/layout_diffusion/gaussian_diffusion.py official repository ran · honoured contract MIT (permissive) · a086d6286a40b889 · report
get_obj_from_str dcdcvgroup/layout-diffusion-mindspore/layout_diffusion/util.py official repository ran · our draft was wrong MIT (permissive) · 221b2d116fdf1032 · report
build_diffusion dcdcvgroup/layout-diffusion-mindspore/layout_diffusion/respace.py official repository unverified MIT (permissive) · 43112d6fc1a61a07 · report
build_model dcdcvgroup/layout-diffusion-mindspore/layout_diffusion/layout_diffusion_unet.py official repository unverified MIT (permissive) · f07113626bc2a9ae · report
get_param_groups_and_shapes dcdcvgroup/layout-diffusion-mindspore/layout_diffusion/fp16_util.py official repository unverified MIT (permissive) · c9462fd26014eb95 · report
make_master_params dcdcvgroup/layout-diffusion-mindspore/layout_diffusion/fp16_util.py official repository unverified MIT (permissive) · 2675c6c9bf8c7023 · report
make_output_format dcdcvgroup/layout-diffusion-mindspore/layout_diffusion/logger.py official repository unverified MIT (permissive) · f1f1aa73de47c1e0 · report
mpi_weighted_mean dcdcvgroup/layout-diffusion-mindspore/layout_diffusion/logger.py official repository unverified MIT (permissive) · e515a67f7f32e76d · report
parse_resume_step_from_filename dcdcvgroup/layout-diffusion-mindspore/layout_diffusion/train_util.py official repository unverified MIT (permissive) · 192c365338335653 · report
space_timesteps dcdcvgroup/layout-diffusion-mindspore/layout_diffusion/respace.py official repository unverified MIT (permissive) · 37ddaf228c202902 · report
unflatten_master_params dcdcvgroup/layout-diffusion-mindspore/layout_diffusion/fp16_util.py official repository unverified MIT (permissive) · d36d1fd554cb479f · report
QKVAttentionLegacy zgctroy/layoutdiffusion/layout_diffusion/layout_diffusion_unet.py named in the paper ran fingerprinted MIT (permissive) · b8ac15fc31c4c31d · report
SiLU zgctroy/layoutdiffusion/layout_diffusion/layout_diffusion_unet.py named in the paper ran fingerprinted MIT (permissive) · 52fcaa6065df3ee1 · report
AttentionBlock zgctroy/layoutdiffusion/layout_diffusion/layout_diffusion_unet.py named in the paper unverified MIT (permissive) · 53b0dd52d7b30b22 · report
LayoutDiffusionUNetModel zgctroy/layoutdiffusion/layout_diffusion/layout_diffusion_unet.py named in the paper unverified MIT (permissive) · c0bc3ed1be627926 · report
ObjectAwareCrossAttention zgctroy/layoutdiffusion/layout_diffusion/layout_diffusion_unet.py named in the paper unverified MIT (permissive) · 1953cbb549533769 · report
ResBlock zgctroy/layoutdiffusion/layout_diffusion/layout_diffusion_unet.py named in the paper unverified MIT (permissive) · 45cf54c7a28a7147 · report
TimestepEmbedSequential zgctroy/layoutdiffusion/layout_diffusion/layout_diffusion_unet.py named in the paper unverified MIT (permissive) · d174605e83159ebd · report

Tasks

Image GenerationLayout-to-Image GenerationObject

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Layout-to-Image Generation COCO-Stuff 256x256 LayoutDiffusion (25steps) FID 31.68 #1 of 5 Archive leaderboard report
Layout-to-Image Generation Visual Genome 128x128 LayoutDiffusion FID 16.35 #1 of 5 Archive leaderboard report
Layout-to-Image Generation Visual Genome 256x256 LayoutDiffusion FID 15.63 #1 of 4 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

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