Papers › Stable-Pose: Leveraging Transformers for Pose-Guided Text-to-Image Generation

Stable-Pose: Leveraging Transformers for Pose-Guided Text-to-Image Generation

4 Jun 2024arXiv:2406.02485archive 2025-07-28

Jiajun Wang, Morteza Ghahremani, Yitong Li, Björn Ommer, Christian Wachinger

Controllable text-to-image (T2I) diffusion models have shown impressive performance in generating high-quality visual content through the incorporation of various conditions. Current methods, however, exhibit limited performance when guided by skeleton human poses, especially in complex pose conditions such as side or rear perspectives of human figures. To address this issue, we present Stable-Pose, a novel adapter model that introduces a coarse-to-fine attention masking strategy into a vision Transformer (ViT) to gain accurate pose guidance for T2I models. Stable-Pose is designed to adeptly handle pose conditions within pre-trained Stable Diffusion, providing a refined and efficient way of aligning pose representation during image synthesis. We leverage the query-key self-attention mechanism of ViTs to explore the interconnections among different anatomical parts in human pose skeletons. Masked pose images are used to smoothly refine the attention maps based on target pose-related features in a hierarchical manner, transitioning from coarse to fine levels. Additionally, our loss function is formulated to allocate increased emphasis to the pose region, thereby augmenting the model's precision in capturing intricate pose details. We assessed the performance of Stable-Pose across five public datasets under a wide range of indoor and outdoor human pose scenarios. Stable-Pose achieved an AP score of 57.1 in the LAION-Human dataset, marking around 13% improvement over the established technique ControlNet. The project link and code is available at https://github.com/ai-med/StablePose.

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

Code

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

By repository: official repository: 13 samples from 1 repository, 11 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

ai-med/stablepose officialmentioned in papermentioned on GitHubpytorchGPL-3.0 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; 11 ran; 1 honoured the contract we drafted; 2 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.

1ran · honoured contract
4ran · violated contract
1ran · our draft was wrong
5ran
2unverified

Licence: 13 of the 13 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 ai-med/stablepose. “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.

default ai-med/stablepose/ldm/modules/attention.py official repository ran · violated contract GPL-3.0 (copyleft) · pointer only · 424012cb37b31172 · report
draw_humansd_skeleton ai-med/stablepose/eval_pose.py official repository ran GPL-3.0 (copyleft) · pointer only · 3b582d5c81aa38e7 · report
exists ai-med/stablepose/ldm/modules/attention.py official repository ran · violated contract GPL-3.0 (copyleft) · pointer only · aa5486a3650902d8 · report
isimage ai-med/stablepose/ldm/util.py official repository ran GPL-3.0 (copyleft) · pointer only · b1368330cf0f5642 · report
ismap ai-med/stablepose/ldm/util.py official repository ran GPL-3.0 (copyleft) · pointer only · d72762b700feee6f · report
log_txt_as_img ai-med/stablepose/ldm/util.py official repository ran GPL-3.0 (copyleft) · pointer only · f41710299c49d36d · report
numpy_to_pil ai-med/StablePose/eval_pose.py official repository ran · violated contract GPL-3.0 (copyleft) · pointer only · b70d35eca4b3a67c · report
pair ai-med/stablepose/ldm/modules/pmsa_vit.py official repository ran · violated contract fingerprinted GPL-3.0 (copyleft) · pointer only · 6ba8cee9f5daea41 · report
posemb_sincos_2d ai-med/stablepose/ldm/modules/pmsa_vit.py official repository ran · honoured contract GPL-3.0 (copyleft) · pointer only · cfe18b9cc8afbfe9 · report
prepare_mask ai-med/stablepose/ldm/modules/pmsa_vit.py official repository ran GPL-3.0 (copyleft) · pointer only · 174593ba44cf2db0 · report
uniq ai-med/stablepose/ldm/modules/attention.py official repository ran · our draft was wrong GPL-3.0 (copyleft) · pointer only · 9a299fe5ae09e407 · report
get_state_dict ai-med/stablepose/cldm/utils.py official repository unverified GPL-3.0 (copyleft) · pointer only · cfc17707f35e7ec4 · report
load_state_dict ai-med/stablepose/cldm/utils.py official repository unverified GPL-3.0 (copyleft) · pointer only · df733a879693145d · report

Tasks

Image GenerationText to Image GenerationText-to-Image Generation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Absolute Position EncodingsAdamAdapterAttentionBPEDense ConnectionsDiffusionDropoutLabel SmoothingLayer NormalizationLinear LayerMulti-Head AttentionPosition-Wise Feed-Forward LayerResidual ConnectionSoftmaxTransformerVision Transformer

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