SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · Wang_High-fidelity_Person-centric_Subject-to-Image_Synthesis_CVPR_2024_paper · CVPR · 2024

High-fidelity Person-centric Subject-to-Image Synthesis

Weizhong Zhang, Yibin Wang, Jianwei Zheng, Cheng

Open in the Atlas

Code that ran

6 of 11 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 1 has no contract verdict; 4 failures of our instrument; 5 no recorded run), measured 2026-11-24; 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/Wang_High-fidelity_Person-centric_Subject-to-Image_Synthesis_CVPR_2024_paper.json · badge: /api/ran/Wang_High-fidelity_Person-centric_Subject-to-Image_Synthesis_CVPR_2024_paper.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
CodeGoat24/Face-diffuser canonical (classifier label)
classifier basis: census
6 ran · 5 no recorded run
FunctionStatusWhere it lives
get_data_loader Ran
ran on a synthesized input
CodeGoat24/Face-diffuser/facediffuser/data.py
code served (permissive licence) · get_code("ba203f24d15e031a")
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 DataLoader. The image it ran in was not recorded. If your copy returns the same type 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)

class SimpleDataset(torch.utils.data.Dataset):
    def __init__(self, num_samples=2):
        self.num_samples = num_samples
    
    def __len__(self):
        return self.num_samples
    
    def __getitem__(self, idx):
        return {
            'pixel_values': torch.randn(3, 4, 4),
            'input_ids': torch.randint(0, 100, (5,)),
            'image_ids': torch.tensor([idx]),
            'image_token_mask': torch.randint(0, 2, (6,)),
            'image_token_idx': torch.randint(0, 10, (7,)),
            'image_token_idx_mask': torch.randint(0, 2, (8,)),
            'object_pixel_values': torch.randn(2, 3, 4, 4),
            'object_segmaps': torch.randint(0, 2, (2, 4, 4)),
            'num_objects': torch.tensor([2]),
            'caption': f'caption_{idx}'
        }

dataset = SimpleDataset(num_samples=2)

ARGS = {
    'dataset': dataset,
    'batch_size': 2,
    'shuffle': True
}
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 DataLoader — a DataLoader output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataLoader output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
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
get_test_transforms Ran
ran; our contract draft was wrong, not the code
CodeGoat24/Face-diffuser/facediffuser/transforms.py
pointer only (licence: MIT); the stored copy get_code serves, from xiaoqian-shen/StoryGPT-V, is pointer only (licence: NONE) · get_code("addaaf66c3ab7352")
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 xiaoqian-shen/StoryGPT-V, 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.

get_train_transforms Ran
ran; our contract draft was wrong, not the code
CodeGoat24/Face-diffuser/facediffuser/transforms.py
pointer only (licence: MIT); the stored copy get_code serves, from xiaoqian-shen/StoryGPT-V, is pointer only (licence: NONE) · get_code("c036796b62b5952d")
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 xiaoqian-shen/StoryGPT-V, 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.

get_train_transforms_with_segmap Ran
ran; our contract draft was wrong, not the code
CodeGoat24/Face-diffuser/facediffuser/transforms.py
pointer only (licence: MIT); the stored copy get_code serves, from xiaoqian-shen/StoryGPT-V, is pointer only (licence: NONE) · get_code("15ed5aec7f6bd270")
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 xiaoqian-shen/StoryGPT-V, 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.

prepare_image_token_idx Ran
ran, honoured the contract we drafted
CodeGoat24/Face-diffuser/facediffuser/data.py
pointer only (licence: MIT); the stored copy get_code serves, from xiaoqian-shen/StoryGPT-V, is pointer only (licence: NONE) · get_code("817e9d69c2cd23d3")
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 xiaoqian-shen/StoryGPT-V, 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.

scatter_object_embeddings Ran
ran; our contract draft was wrong, not the code
CodeGoat24/Face-diffuser/facediffuser/model.py
code served (permissive licence) · get_code("ff242689fdee9a2e")
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 3, dtype family float, shape (2, 5, 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 torch.nn as nn

torch.manual_seed(0)

# Create a simple identity transform module for testing
class SimpleEmbeddingTransform(nn.Module):
    def forward(self, x):
        return x

# Set up dimensions
batch_size = 2
seq_length = 5
embedding_dim = 4
max_num_objects = 3
hidden_dim = 6

# Create inputs_embeds: (batch_size, seq_length, embedding_dim)
inputs_embeds = torch.randn(batch_size, seq_length, embedding_dim)

# Create image_token_mask: (batch_size, seq_length)
# This should have some True values indicating where object embeddings should be scattered
image_token_mask = torch.tensor([
    [True, False, True, False, False],
    [False, True, True, False, False]
], dtype=torch.bool)

# Create object_embeds: (batch_size, max_num_objects, hidden_dim, embedding_dim)
# Note: The function reshapes this to (batch_size * max_num_objects, hidden_dim, embedding_dim)
object_embeds = torch.randn(batch_size, max_num_objects, hidden_dim, embedding_dim)

# Create num_objects: (batch_size,) - how many valid objects per batch element
num_objects = torch.tensor([2, 3], dtype=torch.long)

# Create image_embedding_transform - a simple nn.Module
image_embedding_transform = SimpleEmbeddingTransform()

ARGS = {
    "inputs_embeds": inputs_embeds,
    "image_token_mask": image_token_mask,
    "object_embeds": object_embeds,
    "num_objects": num_objects,
    "image_embedding_transform": image_embedding_transform,
}
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 Tensor, ndim 3, dtype family float, shape (2, 5, 4) — shape (2, 5, 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
collate_fn Not yet run
unverified (harvested, no recorded run)
CodeGoat24/Face-diffuser/facediffuser/data.py
code served (permissive licence) · get_code("33f63d47933a8a81")
How it ran

no invocation recorded.

fuse_object_embeddings Not yet run
unverified (harvested, no recorded run)
CodeGoat24/Face-diffuser/facediffuser/model.py
pointer only (licence: MIT); the stored copy get_code serves, from xiaoqian-shen/StoryGPT-V, is pointer only (licence: NONE) · get_code("2fa8e59bc1db947b")
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 xiaoqian-shen/StoryGPT-V, 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. No invocation recorded.

parse_args Not yet run
unverified (harvested, no recorded run)
CodeGoat24/Face-diffuser/facediffuser/util.py
code served (permissive licence) · get_code("b097d3c89f64264b")
How it ran

no invocation recorded.

stable_diffusion_call_with_references_delayed_conditioning Not yet run
unverified (harvested, no recorded run)
CodeGoat24/Face-diffuser/facediffuser/pipeline.py
code served (permissive licence) · get_code("b875306d3e07bc84")
How it ran

no invocation recorded.

unet_store_cross_attention_scores Not yet run
unverified (harvested, no recorded run)
CodeGoat24/Face-diffuser/facediffuser/model.py
pointer only (licence: MIT); the stored copy get_code serves, from xiaoqian-shen/StoryGPT-V, is pointer only (licence: NONE) · get_code("0a5a54048f832e12")
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 xiaoqian-shen/StoryGPT-V, 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. No invocation recorded.

Also present in other papers' code

Of 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 distinct functions with an identity, 11 are also present in other papers whose code we hold (11 with at least one paper dated earlier, 0 the same month, 0 later) and 0 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
fuse_object_embeddings 3 other papers
3 dated earlier
2305.10431 (2023-05)
FastComposer: Tuning-Free Multi-Subject Image Generation with Localized Attention
2311.10329 (2023-11)
High-fidelity Person-centric Subject-to-Image Synthesis
2312.02252 (2023-12)
StoryGPT-V: Large Language Models as Consistent Story Visualizers
get_test_transforms 3 other papers
3 dated earlier
2305.10431 (2023-05)
FastComposer: Tuning-Free Multi-Subject Image Generation with Localized Attention
2311.10329 (2023-11)
High-fidelity Person-centric Subject-to-Image Synthesis
2312.02252 (2023-12)
StoryGPT-V: Large Language Models as Consistent Story Visualizers
get_train_transforms 3 other papers
3 dated earlier
2305.10431 (2023-05)
FastComposer: Tuning-Free Multi-Subject Image Generation with Localized Attention
2311.10329 (2023-11)
High-fidelity Person-centric Subject-to-Image Synthesis
2312.02252 (2023-12)
StoryGPT-V: Large Language Models as Consistent Story Visualizers
get_train_transforms_with_segmap 3 other papers
3 dated earlier
2305.10431 (2023-05)
FastComposer: Tuning-Free Multi-Subject Image Generation with Localized Attention
2311.10329 (2023-11)
High-fidelity Person-centric Subject-to-Image Synthesis
2312.02252 (2023-12)
StoryGPT-V: Large Language Models as Consistent Story Visualizers
prepare_image_token_idx 3 other papers
3 dated earlier
2305.10431 (2023-05)
FastComposer: Tuning-Free Multi-Subject Image Generation with Localized Attention
2311.10329 (2023-11)
High-fidelity Person-centric Subject-to-Image Synthesis
2312.02252 (2023-12)
StoryGPT-V: Large Language Models as Consistent Story Visualizers
unet_store_cross_attention_scores 3 other papers
3 dated earlier
2305.10431 (2023-05)
FastComposer: Tuning-Free Multi-Subject Image Generation with Localized Attention
2311.10329 (2023-11)
High-fidelity Person-centric Subject-to-Image Synthesis
2312.02252 (2023-12)
StoryGPT-V: Large Language Models as Consistent Story Visualizers
get_data_loader 2 other papers
2 dated earlier
2305.10431 (2023-05)
FastComposer: Tuning-Free Multi-Subject Image Generation with Localized Attention
2311.10329 (2023-11)
High-fidelity Person-centric Subject-to-Image Synthesis
scatter_object_embeddings 2 other papers
2 dated earlier
2305.10431 (2023-05)
FastComposer: Tuning-Free Multi-Subject Image Generation with Localized Attention
2311.10329 (2023-11)
High-fidelity Person-centric Subject-to-Image Synthesis
collate_fn 1 other paper
1 dated earlier
2311.10329 (2023-11)
High-fidelity Person-centric Subject-to-Image Synthesis
parse_args 1 other paper
1 dated earlier
2311.10329 (2023-11)
High-fidelity Person-centric Subject-to-Image Synthesis
stable_diffusion_call_with_references_delayed_conditioning 1 other paper
1 dated earlier
2311.10329 (2023-11)
High-fidelity Person-centric Subject-to-Image Synthesis

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-24.

Repositories linked to this paper

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

Abstract

a magazine cover of a man and a man standing next to each other Ours Reference a movie poster of a man and a woman Reference Ours a man in spider-man costume and a woman in spider-man costume posing for a painting a man sitting in front of a picture of a man Figure 1. Displayed are the results generated using our Face-diffuser, showcasing its prowess across varied inputs. Each instance comprises two distinct inputs: a textual description, and reference images.

For agents

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

get_harvested_code_for_paper("Wang_High-fidelity_Person-centric_Subject-to-Image_Synthesis_CVPR_2024_paper")
get_code_for_paper("Wang_High-fidelity_Person-centric_Subject-to-Image_Synthesis_CVPR_2024_paper")
have("Wang_High-fidelity_Person-centric_Subject-to-Image_Synthesis_CVPR_2024_paper")

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

curl https://syntology.ai/api/ran/Wang_High-fidelity_Person-centric_Subject-to-Image_Synthesis_CVPR_2024_paper.json

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

[![Syntology run record](https://syntology.ai/api/ran/Wang_High-fidelity_Person-centric_Subject-to-Image_Synthesis_CVPR_2024_paper.svg)](https://syntology.ai/paper/Wang_High-fidelity_Person-centric_Subject-to-Image_Synthesis_CVPR_2024_paper)

Connect an agent — have() is free.