{"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/tryondiffusion-a-tale-of-two-unets-1","title":"TryOnDiffusion: A Tale of Two UNets","arxiv_id":"2306.08276","date":"2023-06-14","proceeding":"CVPR 2023 1","authors":["Luyang Zhu","Dawei Yang","Tyler Zhu","Fitsum Reda","William Chan","Chitwan Saharia","Mohammad Norouzi","Ira Kemelmacher-Shlizerman"],"abstract":"Given two images depicting a person and a garment worn by another person, our goal is to generate a visualization of how the garment might look on the input person. A key challenge is to synthesize a photorealistic detail-preserving visualization of the garment, while warping the garment to accommodate a significant body pose and shape change across the subjects. Previous methods either focus on garment detail preservation without effective pose and shape variation, or allow try-on with the desired shape and pose but lack garment details. In this paper, we propose a diffusion-based architecture that unifies two UNets (referred to as Parallel-UNet), which allows us to preserve garment details and warp the garment for significant pose and body change in a single network. The key ideas behind Parallel-UNet include: 1) garment is warped implicitly via a cross attention mechanism, 2) garment warp and person blend happen as part of a unified process as opposed to a sequence of two separate tasks. Experimental results indicate that TryOnDiffusion achieves state-of-the-art performance both qualitatively and quantitatively.","url_abs":"https://arxiv.org/abs/2306.08276v1","url_pdf":"https://arxiv.org/pdf/2306.08276v1.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":"tryondiffusion-a-tale-of-two-unets-1","repo_url":"https://github.com/fashn-AI/tryondiffusion","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"virtual-try-on","task_name":"Virtual Try-on"}],"methods":[{"method_slug":"focus","method_name":"Focus"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=2306.08276","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2306.08276"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+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/fashn-AI/tryondiffusion","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_honours":1,"ran_draft_wrong":2,"ran_violates":2,"unverified":9},"by_repo_kind":{"listed":{"samples":14,"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":"7f1040f5e3991d5e","entry":"identity","repo":"fashn-AI/tryondiffusion","repo_kind":"listed","path":"tryondiffusion/common/python_helpers.py","file_url":"https://github.com/fashn-AI/tryondiffusion/blob/HEAD/tryondiffusion/common/python_helpers.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":2,"contract_check":"HONOURS","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"7f1040f5e3991d5e"}},{"code_sha256_prefix":"c16aee9490eb8729","entry":"eval_decorator","repo":"fashn-AI/tryondiffusion","repo_kind":"listed","path":"tryondiffusion/common/torch_helpers.py","file_url":"https://github.com/fashn-AI/tryondiffusion/blob/HEAD/tryondiffusion/common/torch_helpers.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c16aee9490eb8729"}},{"code_sha256_prefix":"aa5486a3650902d8","entry":"exists","repo":"fashn-AI/tryondiffusion","repo_kind":"listed","path":"tryondiffusion/common/python_helpers.py","file_url":"https://github.com/fashn-AI/tryondiffusion/blob/HEAD/tryondiffusion/common/python_helpers.py","link_basis":"harvester_set","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"aa5486a3650902d8"}},{"code_sha256_prefix":"3eb58dae620046d3","entry":"l2norm","repo":"fashn-AI/tryondiffusion","repo_kind":"listed","path":"tryondiffusion/modules/imagen.py","file_url":"https://github.com/fashn-AI/tryondiffusion/blob/HEAD/tryondiffusion/modules/imagen.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"3eb58dae620046d3"}},{"code_sha256_prefix":"8cd8e6547ade35f4","entry":"right_pad_dims_to","repo":"fashn-AI/tryondiffusion","repo_kind":"listed","path":"tryondiffusion/modules/imagen.py","file_url":"https://github.com/fashn-AI/tryondiffusion/blob/HEAD/tryondiffusion/modules/imagen.py","link_basis":"harvester_set","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"8cd8e6547ade35f4"}},{"code_sha256_prefix":"f84f0c4e5d25300e","entry":"FeedForward","repo":"fashn-AI/tryondiffusion","repo_kind":"listed","path":"tryondiffusion/modules/general.py","file_url":"https://github.com/fashn-AI/tryondiffusion/blob/HEAD/tryondiffusion/modules/general.py","link_basis":"harvester_set","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":"f84f0c4e5d25300e"}},{"code_sha256_prefix":"e61d22cae4241618","entry":"cast_uint8_images_to_float","repo":"fashn-AI/tryondiffusion","repo_kind":"listed","path":"tryondiffusion/common/torch_transforms.py","file_url":"https://github.com/fashn-AI/tryondiffusion/blob/HEAD/tryondiffusion/common/torch_transforms.py","link_basis":"harvester_set","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":"e61d22cae4241618"}},{"code_sha256_prefix":"c591917f64fd4175","entry":"get_constant_schedule_with_warmup","repo":"fashn-AI/tryondiffusion","repo_kind":"listed","path":"tryondiffusion/tryon_imagen_trainer.py","file_url":"https://github.com/fashn-AI/tryondiffusion/blob/HEAD/tryondiffusion/tryon_imagen_trainer.py","link_basis":"harvester_set","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":"c591917f64fd4175"}},{"code_sha256_prefix":"7608d360a072bd4b","entry":"log","repo":"fashn-AI/tryondiffusion","repo_kind":"listed","path":"tryondiffusion/modules/imagen.py","file_url":"https://github.com/fashn-AI/tryondiffusion/blob/HEAD/tryondiffusion/modules/imagen.py","link_basis":"harvester_set","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":"7608d360a072bd4b"}},{"code_sha256_prefix":"10bb4427c51eadd0","entry":"minimum_positive_value","repo":"fashn-AI/tryondiffusion","repo_kind":"listed","path":"tryondiffusion/common/python_helpers.py","file_url":"https://github.com/fashn-AI/tryondiffusion/blob/HEAD/tryondiffusion/common/python_helpers.py","link_basis":"harvester_set","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":"10bb4427c51eadd0"}},{"code_sha256_prefix":"1406fe4ece286ae5","entry":"module_device","repo":"fashn-AI/tryondiffusion","repo_kind":"listed","path":"tryondiffusion/common/torch_helpers.py","file_url":"https://github.com/fashn-AI/tryondiffusion/blob/HEAD/tryondiffusion/common/torch_helpers.py","link_basis":"harvester_set","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":"1406fe4ece286ae5"}},{"code_sha256_prefix":"62b1579317b1b3d9","entry":"normalize_neg_one_to_one","repo":"fashn-AI/tryondiffusion","repo_kind":"listed","path":"tryondiffusion/common/torch_transforms.py","file_url":"https://github.com/fashn-AI/tryondiffusion/blob/HEAD/tryondiffusion/common/torch_transforms.py","link_basis":"harvester_set","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":"62b1579317b1b3d9"}},{"code_sha256_prefix":"6d2cd6522bad5ffb","entry":"restore_parts","repo":"fashn-AI/tryondiffusion","repo_kind":"listed","path":"tryondiffusion/tryon_imagen_trainer.py","file_url":"https://github.com/fashn-AI/tryondiffusion/blob/HEAD/tryondiffusion/tryon_imagen_trainer.py","link_basis":"harvester_set","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":"6d2cd6522bad5ffb"}},{"code_sha256_prefix":"90b652d305c72806","entry":"tensor_to_pil","repo":"fashn-AI/tryondiffusion","repo_kind":"listed","path":"tryondiffusion/common/torch_transforms.py","file_url":"https://github.com/fashn-AI/tryondiffusion/blob/HEAD/tryondiffusion/common/torch_transforms.py","link_basis":"harvester_set","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":"90b652d305c72806"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}