{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/inserting-anybody-in-diffusion-models-via-1","title":"Inserting Anybody in Diffusion Models via Celeb Basis","arxiv_id":"2306.00926","date":"2023-06-01","proceeding":"NeurIPS 2023 11","authors":["Ge Yuan","Xiaodong Cun","Yong Zhang","Maomao Li","Chenyang Qi","Xintao Wang","Ying Shan","Huicheng Zheng"],"abstract":"Exquisite demand exists for customizing the pretrained large text-to-image model, $\\textit{e.g.}$, Stable Diffusion, to generate innovative concepts, such as the users themselves. However, the newly-added concept from previous customization methods often shows weaker combination abilities than the original ones even given several images during training. We thus propose a new personalization method that allows for the seamless integration of a unique individual into the pre-trained diffusion model using just $\\textbf{one facial photograph}$ and only $\\textbf{1024 learnable parameters}$ under $\\textbf{3 minutes}$. So as we can effortlessly generate stunning images of this person in any pose or position, interacting with anyone and doing anything imaginable from text prompts. To achieve this, we first analyze and build a well-defined celeb basis from the embedding space of the pre-trained large text encoder. Then, given one facial photo as the target identity, we generate its own embedding by optimizing the weight of this basis and locking all other parameters. Empowered by the proposed celeb basis, the new identity in our customized model showcases a better concept combination ability than previous personalization methods. Besides, our model can also learn several new identities at once and interact with each other where the previous customization model fails to. The code will be released.","url_abs":"https://arxiv.org/abs/2306.00926v1","url_pdf":"https://arxiv.org/pdf/2306.00926v1.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"inserting-anybody-in-diffusion-models-via-1","repo_url":"https://github.com/ygtxr1997/celebbasis","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[],"methods":[{"method_slug":"diffusion","method_name":"Diffusion"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2306.00926","atlas_url":"https://app.syntology.ai/?focus=2306.00926","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2306.00926"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/ygtxr1997/celebbasis","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_violates":2,"ran":2,"ran_draft_wrong":1,"unverified":6},"by_repo_kind":{"official":{"samples":11,"ran":5,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"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"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"424012cb37b31172","entry":"default","repo":"ygtxr1997/celebbasis","repo_kind":"official","path":"ldm/modules/attention.py","file_url":"https://github.com/ygtxr1997/celebbasis/blob/HEAD/ldm/modules/attention.py","link_basis":"harvester_set","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"424012cb37b31172"}},{"code_sha256_prefix":"aa5486a3650902d8","entry":"exists","repo":"ygtxr1997/celebbasis","repo_kind":"official","path":"ldm/modules/attention.py","file_url":"https://github.com/ygtxr1997/celebbasis/blob/HEAD/ldm/modules/attention.py","link_basis":"harvester_set","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"aa5486a3650902d8"}},{"code_sha256_prefix":"e466f56ae7a8bea6","entry":"get_clip_token_for_string","repo":"ygtxr1997/celebbasis","repo_kind":"official","path":"merge_embeddings.py","file_url":"https://github.com/ygtxr1997/celebbasis/blob/HEAD/merge_embeddings.py","link_basis":"plan_row","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e466f56ae7a8bea6"}},{"code_sha256_prefix":"cb1a19e61d70046b","entry":"get_placeholder_loop","repo":"ygtxr1997/celebbasis","repo_kind":"official","path":"merge_embeddings.py","file_url":"https://github.com/ygtxr1997/celebbasis/blob/HEAD/merge_embeddings.py","link_basis":"plan_row","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"cb1a19e61d70046b"}},{"code_sha256_prefix":"9a299fe5ae09e407","entry":"uniq","repo":"ygtxr1997/celebbasis","repo_kind":"official","path":"ldm/modules/attention.py","file_url":"https://github.com/ygtxr1997/celebbasis/blob/HEAD/ldm/modules/attention.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"9a299fe5ae09e407"}},{"code_sha256_prefix":"91610d6e2f2a67b4","entry":"get_bert_token_for_string","repo":"ygtxr1997/celebbasis","repo_kind":"official","path":"merge_embeddings.py","file_url":"https://github.com/ygtxr1997/celebbasis/blob/HEAD/merge_embeddings.py","link_basis":"plan_row","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"91610d6e2f2a67b4"}},{"code_sha256_prefix":"128130f54ff26d81","entry":"get_pos_neg_temps","repo":"ygtxr1997/celebbasis","repo_kind":"official","path":"evaluation/prompt_templates.py","file_url":"https://github.com/ygtxr1997/celebbasis/blob/HEAD/evaluation/prompt_templates.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"128130f54ff26d81"}},{"code_sha256_prefix":"87fbedd0c27cf378","entry":"nondefault_trainer_args","repo":"ygtxr1997/celebbasis","repo_kind":"official","path":"main_id_embed.py","file_url":"https://github.com/ygtxr1997/celebbasis/blob/HEAD/main_id_embed.py","link_basis":"plan_row","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"87fbedd0c27cf378"}},{"code_sha256_prefix":"c62aef587185be0c","entry":"parser_eval","repo":"ygtxr1997/celebbasis","repo_kind":"official","path":"evaluation/parse_args.py","file_url":"https://github.com/ygtxr1997/celebbasis/blob/HEAD/evaluation/parse_args.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c62aef587185be0c"}},{"code_sha256_prefix":"474846246b7ef9f2","entry":"parser_gen","repo":"ygtxr1997/celebbasis","repo_kind":"official","path":"evaluation/parse_args.py","file_url":"https://github.com/ygtxr1997/celebbasis/blob/HEAD/evaluation/parse_args.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"474846246b7ef9f2"}},{"code_sha256_prefix":"5a38b008bf39e5d8","entry":"parser_main","repo":"ygtxr1997/celebbasis","repo_kind":"official","path":"evaluation/parse_args.py","file_url":"https://github.com/ygtxr1997/celebbasis/blob/HEAD/evaluation/parse_args.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"5a38b008bf39e5d8"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}