{"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/elegant-exquisite-and-locally-editable-gan","title":"EleGANt: Exquisite and Locally Editable GAN for Makeup Transfer","arxiv_id":"2207.09840","date":"2022-07-20","proceeding":null,"authors":["Chenyu Yang","Wanrong He","Yingqing Xu","Yang Gao"],"abstract":"Most existing methods view makeup transfer as transferring color distributions of different facial regions and ignore details such as eye shadows and blushes. Besides, they only achieve controllable transfer within predefined fixed regions. This paper emphasizes the transfer of makeup details and steps towards more flexible controls. To this end, we propose Exquisite and locally editable GAN for makeup transfer (EleGANt). It encodes facial attributes into pyramidal feature maps to preserves high-frequency information. It uses attention to extract makeup features from the reference and adapt them to the source face, and we introduce a novel Sow-Attention Module that applies attention within shifted overlapped windows to reduce the computational cost. Moreover, EleGANt is the first to achieve customized local editing within arbitrary areas by corresponding editing on the feature maps. Extensive experiments demonstrate that EleGANt generates realistic makeup faces with exquisite details and achieves state-of-the-art performance. The code is available at https://github.com/Chenyu-Yang-2000/EleGANt.","url_abs":"https://arxiv.org/abs/2207.09840v1","url_pdf":"https://arxiv.org/pdf/2207.09840v1.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":"elegant-exquisite-and-locally-editable-gan","repo_url":"https://github.com/chenyu-yang-2000/elegant","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=2207.09840","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2207.09840"}},"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":"deterministic:regex_extraction","url":"https://github.com/Chenyu-Yang-2000/EleGANt","reach":null}],"summary":{"ran":11,"ran_draft_wrong":1,"ran_fixture":5,"unverified":2},"by_repo_kind":{"official":{"samples":18,"ran":16,"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":19,"samples":[{"code_sha256_prefix":"c8b1c6dc5774265b","entry":"Attention_apply","repo":"Chenyu-Yang-2000/EleGANt","repo_kind":"official","path":"models/elegant.py","file_url":"https://github.com/Chenyu-Yang-2000/EleGANt/blob/HEAD/models/elegant.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"c8b1c6dc5774265b"}},{"code_sha256_prefix":"24e2b7616e3ae391","entry":"Downsample","repo":"Chenyu-Yang-2000/EleGANt","repo_kind":"official","path":"models/elegant.py","file_url":"https://github.com/Chenyu-Yang-2000/EleGANt/blob/HEAD/models/elegant.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"24e2b7616e3ae391"}},{"code_sha256_prefix":"fc1b7b4a34850fb4","entry":"FeedForwardLayer","repo":"Chenyu-Yang-2000/EleGANt","repo_kind":"official","path":"models/elegant.py","file_url":"https://github.com/Chenyu-Yang-2000/EleGANt/blob/HEAD/models/elegant.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"fc1b7b4a34850fb4"}},{"code_sha256_prefix":"b60eab7b9ad9bb8f","entry":"Generator","repo":"Chenyu-Yang-2000/EleGANt","repo_kind":"official","path":"models/elegant.py","file_url":"https://github.com/Chenyu-Yang-2000/EleGANt/blob/HEAD/models/elegant.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"b60eab7b9ad9bb8f"}},{"code_sha256_prefix":"153bf0a3c6aaf0ac","entry":"MultiheadAttention","repo":"Chenyu-Yang-2000/EleGANt","repo_kind":"official","path":"models/elegant.py","file_url":"https://github.com/Chenyu-Yang-2000/EleGANt/blob/HEAD/models/elegant.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"153bf0a3c6aaf0ac"}},{"code_sha256_prefix":"3b3ed0c6e7b58bfd","entry":"MultiheadAttention_value","repo":"Chenyu-Yang-2000/EleGANt","repo_kind":"official","path":"models/elegant.py","file_url":"https://github.com/Chenyu-Yang-2000/EleGANt/blob/HEAD/models/elegant.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"3b3ed0c6e7b58bfd"}},{"code_sha256_prefix":"c115eefaada32113","entry":"MultiheadAttention_weight","repo":"Chenyu-Yang-2000/EleGANt","repo_kind":"official","path":"models/elegant.py","file_url":"https://github.com/Chenyu-Yang-2000/EleGANt/blob/HEAD/models/elegant.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"c115eefaada32113"}},{"code_sha256_prefix":"0d8a48a224db0d6c","entry":"PositionalEmbedding","repo":"Chenyu-Yang-2000/EleGANt","repo_kind":"official","path":"models/elegant.py","file_url":"https://github.com/Chenyu-Yang-2000/EleGANt/blob/HEAD/models/elegant.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"0d8a48a224db0d6c"}},{"code_sha256_prefix":"b7c38f3e7c4de550","entry":"ResidualBlock_IN","repo":"Chenyu-Yang-2000/EleGANt","repo_kind":"official","path":"models/elegant.py","file_url":"https://github.com/Chenyu-Yang-2000/EleGANt/blob/HEAD/models/elegant.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"b7c38f3e7c4de550"}},{"code_sha256_prefix":"42e52235c85aff07","entry":"Upsample","repo":"Chenyu-Yang-2000/EleGANt","repo_kind":"official","path":"models/elegant.py","file_url":"https://github.com/Chenyu-Yang-2000/EleGANt/blob/HEAD/models/elegant.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"42e52235c85aff07"}},{"code_sha256_prefix":"43b762f90950f0d2","entry":"WindowAttention","repo":"Chenyu-Yang-2000/EleGANt","repo_kind":"official","path":"models/elegant.py","file_url":"https://github.com/Chenyu-Yang-2000/EleGANt/blob/HEAD/models/elegant.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"43b762f90950f0d2"}},{"code_sha256_prefix":"2c814f1990af24d7","entry":"build_target_coordinate_matrix","repo":"Chenyu-Yang-2000/EleGANt","repo_kind":"official","path":"models/elegant.py","file_url":"https://github.com/Chenyu-Yang-2000/EleGANt/blob/HEAD/models/elegant.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"2c814f1990af24d7"}},{"code_sha256_prefix":"78dfbe2c8f31243b","entry":"bulid_delta_inverse","repo":"Chenyu-Yang-2000/EleGANt","repo_kind":"official","path":"models/elegant.py","file_url":"https://github.com/Chenyu-Yang-2000/EleGANt/blob/HEAD/models/elegant.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"78dfbe2c8f31243b"}},{"code_sha256_prefix":"e1814689377a5c82","entry":"compute_partial_repr","repo":null,"repo_kind":null,"path":null,"file_url":null,"link_basis":"identical_code_first_harvested_elsewhere","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":null,"inline_ok":false,"mcp_get_code":{"code_sha256":"e1814689377a5c82"}},{"code_sha256_prefix":"1fc0288d55de52e2","entry":"grid_sample","repo":"Chenyu-Yang-2000/EleGANt","repo_kind":"official","path":"models/elegant.py","file_url":"https://github.com/Chenyu-Yang-2000/EleGANt/blob/HEAD/models/elegant.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"1fc0288d55de52e2"}},{"code_sha256_prefix":"595b400a32b3e370","entry":"tps_sampler","repo":"Chenyu-Yang-2000/EleGANt","repo_kind":"official","path":"models/elegant.py","file_url":"https://github.com/Chenyu-Yang-2000/EleGANt/blob/HEAD/models/elegant.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"595b400a32b3e370"}},{"code_sha256_prefix":"000fecba9c78bdcd","entry":"tps_spatial_transform","repo":"Chenyu-Yang-2000/EleGANt","repo_kind":"official","path":"models/elegant.py","file_url":"https://github.com/Chenyu-Yang-2000/EleGANt/blob/HEAD/models/elegant.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"000fecba9c78bdcd"}},{"code_sha256_prefix":"083fb0ce640033ab","entry":"MergeBlock","repo":"Chenyu-Yang-2000/EleGANt","repo_kind":"official","path":"models/elegant.py","file_url":"https://github.com/Chenyu-Yang-2000/EleGANt/blob/HEAD/models/elegant.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"083fb0ce640033ab"}},{"code_sha256_prefix":"96ed265e9f635b1d","entry":"SowAttention","repo":"Chenyu-Yang-2000/EleGANt","repo_kind":"official","path":"models/elegant.py","file_url":"https://github.com/Chenyu-Yang-2000/EleGANt/blob/HEAD/models/elegant.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"96ed265e9f635b1d"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}