{"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/hififace-3d-shape-and-semantic-prior-guided","title":"HifiFace: 3D Shape and Semantic Prior Guided High Fidelity Face Swapping","arxiv_id":"2106.09965","date":"2021-06-18","proceeding":null,"authors":["YuHan Wang","Xu Chen","Junwei Zhu","Wenqing Chu","Ying Tai","Chengjie Wang","Jilin Li","Yongjian Wu","Feiyue Huang","Rongrong Ji"],"abstract":"In this work, we propose a high fidelity face swapping method, called HifiFace, which can well preserve the face shape of the source face and generate photo-realistic results. Unlike other existing face swapping works that only use face recognition model to keep the identity similarity, we propose 3D shape-aware identity to control the face shape with the geometric supervision from 3DMM and 3D face reconstruction method. Meanwhile, we introduce the Semantic Facial Fusion module to optimize the combination of encoder and decoder features and make adaptive blending, which makes the results more photo-realistic. Extensive experiments on faces in the wild demonstrate that our method can preserve better identity, especially on the face shape, and can generate more photo-realistic results than previous state-of-the-art methods.","url_abs":"https://arxiv.org/abs/2106.09965v1","url_pdf":"https://arxiv.org/pdf/2106.09965v1.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":"hififace-3d-shape-and-semantic-prior-guided","repo_url":"https://github.com/mindslab-ai/hififace","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"3d-face-reconstruction","task_name":"3D Face Reconstruction"},{"task_slug":"decoder","task_name":"Decoder"},{"task_slug":"face-recognition","task_name":"Face Recognition"},{"task_slug":"face-reconstruction","task_name":"Face Reconstruction"},{"task_slug":"face-swapping","task_name":"Face Swapping"},{"task_slug":"high","task_name":"Vocal Bursts Intensity Prediction"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/face-swapping-on-faceforensics","task":"Face Swapping","dataset":"FaceForensics++","model":"HifiFace","rank_in_archive_order":7,"of":17,"metrics":{"ID retrieval":"98.48","pose":"2.63"},"uses_additional_data":false}],"syntology":{"syntology_url":"https://syntology.ai/paper/2106.09965","atlas_url":"https://app.syntology.ai/?focus=2106.09965","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2106.09965"}},"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/mindslab-ai/hififace","reach":null}],"summary":{"ran":6,"unverified":3},"by_repo_kind":{"listed":{"samples":9,"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":"1bd881bcb0d57b8b","entry":"AdaIn","repo":"mindslab-ai/hififace","repo_kind":"listed","path":"model/hififace.py","file_url":"https://github.com/mindslab-ai/hififace/blob/HEAD/model/hififace.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"1bd881bcb0d57b8b"}},{"code_sha256_prefix":"c4fc51a9b20f2ffb","entry":"AdaInResBlock","repo":"mindslab-ai/hififace","repo_kind":"listed","path":"model/hififace.py","file_url":"https://github.com/mindslab-ai/hififace/blob/HEAD/model/hififace.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"c4fc51a9b20f2ffb"}},{"code_sha256_prefix":"783124ffe8118da5","entry":"Decoder","repo":"mindslab-ai/hififace","repo_kind":"listed","path":"model/hififace.py","file_url":"https://github.com/mindslab-ai/hififace/blob/HEAD/model/hififace.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"783124ffe8118da5"}},{"code_sha256_prefix":"52cef0e5b0e022d8","entry":"Encoder","repo":"mindslab-ai/hififace","repo_kind":"listed","path":"model/hififace.py","file_url":"https://github.com/mindslab-ai/hififace/blob/HEAD/model/hififace.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"52cef0e5b0e022d8"}},{"code_sha256_prefix":"b376afa18006bcd0","entry":"ResBlock","repo":"mindslab-ai/hififace","repo_kind":"listed","path":"model/hififace.py","file_url":"https://github.com/mindslab-ai/hififace/blob/HEAD/model/hififace.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"b376afa18006bcd0"}},{"code_sha256_prefix":"d03d80feddf16f36","entry":"UpSamplingBlock","repo":"mindslab-ai/hififace","repo_kind":"listed","path":"model/hififace.py","file_url":"https://github.com/mindslab-ai/hififace/blob/HEAD/model/hififace.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"d03d80feddf16f36"}},{"code_sha256_prefix":"5b15de1bba9dd473","entry":"Generator","repo":"mindslab-ai/hififace","repo_kind":"listed","path":"model/hififace.py","file_url":"https://github.com/mindslab-ai/hififace/blob/HEAD/model/hififace.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"5b15de1bba9dd473"}},{"code_sha256_prefix":"458264cd50748669","entry":"SemanticFacialFusionModule","repo":"mindslab-ai/hififace","repo_kind":"listed","path":"model/hififace.py","file_url":"https://github.com/mindslab-ai/hififace/blob/HEAD/model/hififace.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"458264cd50748669"}},{"code_sha256_prefix":"4eda167c0bcfcbc5","entry":"ShapeAwareIdentityExtractor","repo":"mindslab-ai/hififace","repo_kind":"listed","path":"model/hififace.py","file_url":"https://github.com/mindslab-ai/hififace/blob/HEAD/model/hififace.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"4eda167c0bcfcbc5"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}