Papers › PuLID: Pure and Lightning ID Customization via Contrastive Alignment

PuLID: Pure and Lightning ID Customization via Contrastive Alignment

24 Apr 2024arXiv:2404.16022archive 2025-07-28

Zinan Guo, Yanze Wu, Zhuowei Chen, Lang Chen, Peng Zhang, Qian He

We propose Pure and Lightning ID customization (PuLID), a novel tuning-free ID customization method for text-to-image generation. By incorporating a Lightning T2I branch with a standard diffusion one, PuLID introduces both contrastive alignment loss and accurate ID loss, minimizing disruption to the original model and ensuring high ID fidelity. Experiments show that PuLID achieves superior performance in both ID fidelity and editability. Another attractive property of PuLID is that the image elements (e.g., background, lighting, composition, and style) before and after the ID insertion are kept as consistent as possible. Codes and models are available at https://github.com/ToTheBeginning/PuLID

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

Code

Syntology Ran 10 of 15 code samples harvested from 3 repositories linked to this paper; 5 have no recorded run. Of those that ran: 2 ran · violated contract; 6 ran · our draft was wrong; 2 ran with no contract checked.

By repository: official repository: 10 samples from 1 repository, 6 ran; community: 5 samples from 2 repositories, 4 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

tothebeginning/pulid officialmentioned in papermentioned on GitHubpytorchApache-2.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

15 samples harvested; 10 ran; 0 honoured the contract we drafted; 5 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 · violated contract
6ran · our draft was wrong
2ran
5unverified

Licence: 0 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 3 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.

FeedForward tothebeginning/pulid/pulid/encoders_transformer.py official repository ran · our draft was wrong Apache-2.0 (permissive) · 5105747c2711b1cb · report
convert_to_custom_text_state_dict ToTheBeginning/PuLID/eva_clip/model.py official repository ran · our draft was wrong Apache-2.0 (permissive) · 0a65604f002e6ce4 · report
drop_seq_token tothebeginning/pulid/pulid/utils.py official repository ran fingerprinted Apache-2.0 (permissive) · 4849b7c1d0b556ce · report
get_cast_dtype ToTheBeginning/PuLID/eva_clip/model.py official repository ran · our draft was wrong Apache-2.0 (permissive) · 61d9ad9efd32efee · report
get_obj_from_str tothebeginning/pulid/pulid/utils.py official repository ran · our draft was wrong Apache-2.0 (permissive) · 221b2d116fdf1032 · report
instantiate_from_config tothebeginning/pulid/pulid/utils.py official repository ran Apache-2.0 (permissive) · 9d7051552589b1be · report
build_model_from_openai_state_dict ToTheBeginning/PuLID/eva_clip/model.py official repository unverified Apache-2.0 (permissive) · e3f7350246f3e4bb · report
gather_features tothebeginning/pulid/eva_clip/loss.py official repository unverified Apache-2.0 (permissive) · ddcbd45e940484ee · report
register_pooler tothebeginning/pulid/eva_clip/hf_model.py official repository unverified Apache-2.0 (permissive) · 2a377da4a76a2d44 · report
reshape_tensor tothebeginning/pulid/pulid/encoders_transformer.py official repository unverified Apache-2.0 (permissive) · 4cb2e2a2ca0bec9f · report
convert_to_custom_text_state_dict zsxkib/PuLID/eva_clip/model.py community ran · violated contract Apache-2.0 (permissive) · 7bff6f3b3cb560e7 · report
get_cast_dtype zsxkib/PuLID/eva_clip/model.py community ran · our draft was wrong Apache-2.0 (permissive) · dcd422d66b0581d8 · report
image_to_tensor sipie800/ComfyUI-PuLID-Flux-Enhanced/pulidflux.py community ran · violated contract fingerprinted Apache-2.0 (permissive) · f32e6125ee65d8a8 · report
tensor_to_image sipie800/ComfyUI-PuLID-Flux-Enhanced/pulidflux.py community ran · our draft was wrong Apache-2.0 (permissive) · df32d23cfb914023 · report
build_model_from_openai_state_dict zsxkib/PuLID/eva_clip/model.py community unverified Apache-2.0 (permissive) · b34d6c17c6e09a04 · 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

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