{"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/g2face-high-fidelity-reversible-face","title":"G2Face: High-Fidelity Reversible Face Anonymization via Generative and Geometric Priors","arxiv_id":"2408.09458","date":"2024-08-18","proceeding":null,"authors":["Haoxin Yang","Xuemiao Xu","Cheng Xu","Huaidong Zhang","Jing Qin","Yi Wang","Pheng-Ann Heng","Shengfeng He"],"abstract":"Reversible face anonymization, unlike traditional face pixelization, seeks to replace sensitive identity information in facial images with synthesized alternatives, preserving privacy without sacrificing image clarity. Traditional methods, such as encoder-decoder networks, often result in significant loss of facial details due to their limited learning capacity. Additionally, relying on latent manipulation in pre-trained GANs can lead to changes in ID-irrelevant attributes, adversely affecting data utility due to GAN inversion inaccuracies. This paper introduces G\\textsuperscript{2}Face, which leverages both generative and geometric priors to enhance identity manipulation, achieving high-quality reversible face anonymization without compromising data utility. We utilize a 3D face model to extract geometric information from the input face, integrating it with a pre-trained GAN-based decoder. This synergy of generative and geometric priors allows the decoder to produce realistic anonymized faces with consistent geometry. Moreover, multi-scale facial features are extracted from the original face and combined with the decoder using our novel identity-aware feature fusion blocks (IFF). This integration enables precise blending of the generated facial patterns with the original ID-irrelevant features, resulting in accurate identity manipulation. Extensive experiments demonstrate that our method outperforms existing state-of-the-art techniques in face anonymization and recovery, while preserving high data utility. Code is available at https://github.com/Harxis/G2Face.","url_abs":"https://arxiv.org/abs/2408.09458v1","url_pdf":"https://arxiv.org/pdf/2408.09458v1.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":"g2face-high-fidelity-reversible-face","repo_url":"https://github.com/harxis/g2face","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"decoder","task_name":"Decoder"},{"task_slug":"face-anonymization","task_name":"Face Anonymization"},{"task_slug":"face-model","task_name":"Face Model"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2408.09458","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2408.09458"}},"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/harxis/g2face","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":7,"ran_violates":1,"unverified":3},"by_repo_kind":{"official":{"samples":11,"ran":8,"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":"0f6c5532e66c554c","entry":"filter_state_dict","repo":"harxis/g2face","repo_kind":"official","path":"model/d3dfr/networks.py","file_url":"https://github.com/harxis/g2face/blob/HEAD/model/d3dfr/networks.py","link_basis":"first_harvest_node","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":"0f6c5532e66c554c"}},{"code_sha256_prefix":"687098a9d4c0aedb","entry":"fused_leaky_relu","repo":"harxis/g2face","repo_kind":"official","path":"model/mlp.py","file_url":"https://github.com/harxis/g2face/blob/HEAD/model/mlp.py","link_basis":"first_harvest_node","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":"687098a9d4c0aedb"}},{"code_sha256_prefix":"6f65e378a4313f87","entry":"make_kernel","repo":"harxis/g2face","repo_kind":"official","path":"model/style/style_adaptive_mask.py","file_url":"https://github.com/harxis/g2face/blob/HEAD/model/style/style_adaptive_mask.py","link_basis":"plan_row","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":"6f65e378a4313f87"}},{"code_sha256_prefix":"379726bf4011ba18","entry":"ndc_projection","repo":"harxis/g2face","repo_kind":"official","path":"model/d3dfr/renderer.py","file_url":"https://github.com/harxis/g2face/blob/HEAD/model/d3dfr/renderer.py","link_basis":"first_harvest_node","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":"379726bf4011ba18"}},{"code_sha256_prefix":"2e9ce6a02832f7c8","entry":"perspective_projection","repo":"harxis/g2face","repo_kind":"official","path":"model/d3dfr/bfm.py","file_url":"https://github.com/harxis/g2face/blob/HEAD/model/d3dfr/bfm.py","link_basis":"first_harvest_node","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":"2e9ce6a02832f7c8"}},{"code_sha256_prefix":"3f0a1105ef251d78","entry":"reduce_sum","repo":"harxis/g2face","repo_kind":"official","path":"model/style/non_leaking.py","file_url":"https://github.com/harxis/g2face/blob/HEAD/model/style/non_leaking.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"3f0a1105ef251d78"}},{"code_sha256_prefix":"bed1e4f6c15e8e0b","entry":"rotate_mat","repo":"harxis/g2face","repo_kind":"official","path":"model/style/non_leaking.py","file_url":"https://github.com/harxis/g2face/blob/HEAD/model/style/non_leaking.py","link_basis":"first_harvest_node","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":"bed1e4f6c15e8e0b"}},{"code_sha256_prefix":"1d8a8391fc4d7389","entry":"translate_mat","repo":"harxis/g2face","repo_kind":"official","path":"model/style/non_leaking.py","file_url":"https://github.com/harxis/g2face/blob/HEAD/model/style/non_leaking.py","link_basis":"first_harvest_node","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":"1d8a8391fc4d7389"}},{"code_sha256_prefix":"1d3e7e477d7e56f2","entry":"define_net_recon","repo":"harxis/g2face","repo_kind":"official","path":"model/d3dfr/networks.py","file_url":"https://github.com/harxis/g2face/blob/HEAD/model/d3dfr/networks.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":"1d3e7e477d7e56f2"}},{"code_sha256_prefix":"b1c558324f705852","entry":"make_r1_gp","repo":"harxis/g2face","repo_kind":"official","path":"loss/gan_loss.py","file_url":"https://github.com/harxis/g2face/blob/HEAD/loss/gan_loss.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":"b1c558324f705852"}},{"code_sha256_prefix":"2870025ec65fec68","entry":"resize_n_crop","repo":"harxis/g2face","repo_kind":"official","path":"model/d3dfr/networks.py","file_url":"https://github.com/harxis/g2face/blob/HEAD/model/d3dfr/networks.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":"2870025ec65fec68"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}