{"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/infiniteyou-flexible-photo-recrafting-while","title":"InfiniteYou: Flexible Photo Recrafting While Preserving Your Identity","arxiv_id":"2503.16418","date":"2025-03-20","proceeding":null,"authors":["Liming Jiang","Qing Yan","Yumin Jia","Zichuan Liu","Hao Kang","Xin Lu"],"abstract":"Achieving flexible and high-fidelity identity-preserved image generation remains formidable, particularly with advanced Diffusion Transformers (DiTs) like FLUX. We introduce InfiniteYou (InfU), one of the earliest robust frameworks leveraging DiTs for this task. InfU addresses significant issues of existing methods, such as insufficient identity similarity, poor text-image alignment, and low generation quality and aesthetics. Central to InfU is InfuseNet, a component that injects identity features into the DiT base model via residual connections, enhancing identity similarity while maintaining generation capabilities. A multi-stage training strategy, including pretraining and supervised fine-tuning (SFT) with synthetic single-person-multiple-sample (SPMS) data, further improves text-image alignment, ameliorates image quality, and alleviates face copy-pasting. Extensive experiments demonstrate that InfU achieves state-of-the-art performance, surpassing existing baselines. In addition, the plug-and-play design of InfU ensures compatibility with various existing methods, offering a valuable contribution to the broader community.","url_abs":"https://arxiv.org/abs/2503.16418v1","url_pdf":"https://arxiv.org/pdf/2503.16418v1.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":"infiniteyou-flexible-photo-recrafting-while","repo_url":"https://github.com/bytedance/infiniteyou","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[{"task_slug":"image-generation","task_name":"Image Generation"}],"methods":[{"method_slug":"base","method_name":"BASE"},{"method_slug":"diffusion","method_name":"Diffusion"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2503.16418","atlas_url":"https://app.syntology.ai/?focus=2503.16418","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2503.16418"}},"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/bytedance/infiniteyou","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"deterministic:regex_extraction","url":"https://github.com/bytedance/InfiniteYou","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"ran_draft_wrong":2,"ran_violates":1,"ran":3},"by_repo_kind":{"official":{"samples":6,"ran":6,"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":"5105747c2711b1cb","entry":"FeedForward","repo":"bytedance/InfiniteYou","repo_kind":"official","path":"pipelines/resampler.py","file_url":"https://github.com/bytedance/InfiniteYou/blob/HEAD/pipelines/resampler.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"5105747c2711b1cb"}},{"code_sha256_prefix":"4e3ad3679e5c37b2","entry":"calculate_shift","repo":"bytedance/InfiniteYou","repo_kind":"official","path":"pipelines/pipeline_flux_infusenet.py","file_url":"https://github.com/bytedance/InfiniteYou/blob/HEAD/pipelines/pipeline_flux_infusenet.py","link_basis":"harvester_set","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"4e3ad3679e5c37b2"}},{"code_sha256_prefix":"3a9e3b5be46cd837","entry":"draw_kps","repo":"bytedance/InfiniteYou","repo_kind":"official","path":"pipelines/pipeline_infu_flux.py","file_url":"https://github.com/bytedance/InfiniteYou/blob/HEAD/pipelines/pipeline_infu_flux.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"3a9e3b5be46cd837"}},{"code_sha256_prefix":"4cb2e2a2ca0bec9f","entry":"reshape_tensor","repo":"bytedance/InfiniteYou","repo_kind":"official","path":"pipelines/resampler.py","file_url":"https://github.com/bytedance/InfiniteYou/blob/HEAD/pipelines/resampler.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"4cb2e2a2ca0bec9f"}},{"code_sha256_prefix":"888dae4fc73113d7","entry":"resize_and_pad_image","repo":"bytedance/InfiniteYou","repo_kind":"official","path":"pipelines/pipeline_infu_flux.py","file_url":"https://github.com/bytedance/InfiniteYou/blob/HEAD/pipelines/pipeline_infu_flux.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"888dae4fc73113d7"}},{"code_sha256_prefix":"22b1f260da28f6a5","entry":"retrieve_timesteps","repo":"bytedance/InfiniteYou","repo_kind":"official","path":"pipelines/pipeline_flux_infusenet.py","file_url":"https://github.com/bytedance/InfiniteYou/blob/HEAD/pipelines/pipeline_flux_infusenet.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"22b1f260da28f6a5"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}