Papers › EleGANt: Exquisite and Locally Editable GAN for Makeup Transfer

EleGANt: Exquisite and Locally Editable GAN for Makeup Transfer

20 Jul 2022arXiv:2207.09840archive 2025-07-28

Chenyu Yang, Wanrong He, Yingqing Xu, Yang Gao

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.

PaperPDFCodeCode Syntology ranMethod as code

In Syntology View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, on Syntology's MCP service (how to connect):

Code

Syntology 19 code samples: 18 from 1 repository linked to this paper, 1 identical to code harvested from another paper's repository. Across all 19: 18 ran (of which 10 constructed an object rather than computing a result; 12 with no instrument failure: 0 honoured, 0 violated, 12 with no contract checked; 6 where Syntology's instrument failed) · 1 unverified. Where Syntology's instrument failed: 1 where our contract draft was wrong; 5 where the contract check could not run; failures of Syntology's instrument, not of the code.

By repository: official repository: 18 samples from 1 repository, 17 ran (12 with no instrument failure; 5 where Syntology's instrument failed); 1 identical to code first harvested elsewhere. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Levels written between 2026-09-22 and 2026-09-24 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed.

chenyu-yang-2000/elegant officialmentioned in papermentioned on GitHubpytorchSyntology: 18 samples, 17 ran (5 instrument-failed) · 1 unverified report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

19 samples harvested: 18 ran (of which 10 constructed an object rather than computing a result; 12 with no instrument failure: 0 honoured, 0 violated, 12 with no contract checked; 6 where Syntology's instrument failed) · 1 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page has not changed since , the first build that kept a record date for it; when this build read Syntology's graph is in the build record. That date is not when the samples ran.

1ran · our draft was wrong
5ran; the contract check could not run
12ran
1unverified

Licence: 19 of the 19 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from chenyu-yang-2000/elegant. 1 sample is listed last, in a group without a repository. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. For 5 samples that ran, the graph records a signature this page does not show: for a class the fixture built without calling, the harness called the object with inputs it made up itself, so the recorded signature is the harness's probe, not the fixture's arguments. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.

Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: 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. Samples are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of six reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity. A census tag appears when Syntology's census ran implementations with that name on one shared input per bucket: it gives how many were compared, from how many papers, and how many distinct outputs they produced, and names this sample's bucket when this sample was one of them.

chenyu-yang-2000/elegant official repository 18 samples, 17 ran (5 instrument-failed) · 1 unverified
Attention_apply models/elegant.py ran · metamorphic tier: deterministic fingerprinted licence not identified · pointer only · c8b1c6dc5774265b · report fixture: returned Attention_apply · level recorded 2026-09-22
Downsample in 58 papers models/elegant.py ran · metamorphic tier: deterministic fingerprinted licence not identified · pointer only · 24e2b7616e3ae391 · report fixture: returned Downsample · level recorded 2026-09-22
FeedForwardLayer in 9 papers models/elegant.py ran · metamorphic tier: deterministic fingerprinted licence not identified · pointer only · fc1b7b4a34850fb4 · report fixture: returned FeedForwardLayer · level recorded 2026-09-22
Generator in 95 papers models/elegant.py ran · metamorphic tier: deterministic licence not identified · pointer only · b60eab7b9ad9bb8f · report fixture: returned Generator · level recorded 2026-09-22
MergeBlock models/elegant.py ran fingerprinted licence not identified · pointer only · 083fb0ce640033ab · report fixture: signature fea_s:Tensor/4/float, fea_r:Tensor/4/float · returned Tensor · level recorded 2026-09-24
MultiheadAttention in 44 papers models/elegant.py ran · metamorphic tier: deterministic licence not identified · pointer only · 153bf0a3c6aaf0ac · report fixture: returned MultiheadAttention · level recorded 2026-09-22
MultiheadAttention_value models/elegant.py ran · metamorphic tier: deterministic licence not identified · pointer only · 3b3ed0c6e7b58bfd · report fixture: returned MultiheadAttention_value · level recorded 2026-09-22
MultiheadAttention_weight models/elegant.py ran licence not identified · pointer only · c115eefaada32113 · report fixture: signature fea_c:Tensor/4/float, fea_s:Tensor/4/float, mask_c:Tensor/4/float, mask_s:Tensor/4/float · returned Tensor · level recorded 2026-09-24
PositionalEmbedding in 43 papers
census: 6 implementations from 6 papers, 4 distinct outputs across 3 buckets, one shared input per bucket
models/elegant.py ran · metamorphic tier: deterministic fingerprinted licence not identified · pointer only · 0d8a48a224db0d6c · report fixture: returned PositionalEmbedding · level recorded 2026-09-22
ResidualBlock_IN models/elegant.py ran · metamorphic tier: deterministic fingerprinted licence not identified · pointer only · b7c38f3e7c4de550 · report fixture: returned ResidualBlock_IN · level recorded 2026-09-22
Upsample in 77 papers models/elegant.py ran · metamorphic tier: deterministic licence not identified · pointer only · 42e52235c85aff07 · report fixture: returned Upsample · level recorded 2026-09-22
WindowAttention in 50 papers models/elegant.py ran · metamorphic tier: deterministic licence not identified · pointer only · 43b762f90950f0d2 · report fixture: returned WindowAttention · level recorded 2026-09-22
build_target_coordinate_matrix models/elegant.py ran · our draft was wrong licence not identified · pointer only · 2c814f1990af24d7 · report fixture: signature target_height:int/0/int, target_width:int/0/int, target_control_points:Tensor/2/float · returned Tensor · level recorded 2026-09-22
bulid_delta_inverse models/elegant.py ran; the contract check could not run (RAISES) · metamorphic tier: invariant licence not identified · pointer only · 78dfbe2c8f31243b · report fixture: signature target_control_points:Tensor/2/float · returned Tensor · level recorded 2026-09-22
grid_sample in 18 papers models/elegant.py ran; the contract check could not run (RAISES) · metamorphic tier: invariant licence not identified · pointer only · 1fc0288d55de52e2 · report fixture: signature input:Tensor/4/float, grid:Tensor/4/float, mode:str/0/str, canvas:Tensor/4/float · returned Tensor · level recorded 2026-09-22
tps_sampler models/elegant.py ran; the contract check could not run (RAISES) · metamorphic tier: deterministic licence not identified · pointer only · 595b400a32b3e370 · report fixture: signature target_height:int/0/int, target_width:int/0/int, inverse_kernel:Tensor/3/float, target_coordinate_repr:Tensor/3/float, source:Tensor/4/float, source_control_points:Tensor/3/float, sample_mode:str/0/str · returned tuple · level recorded 2026-09-22
tps_spatial_transform models/elegant.py ran; the contract check could not run (RAISES) · metamorphic tier: deterministic licence not identified · pointer only · 000fecba9c78bdcd · report fixture: signature target_height:int/0/int, target_width:int/0/int, target_control_points:Tensor/2/float, source:Tensor/4/float, source_control_points:Tensor/3/float, sample_mode:str/0/str · returned tuple · level recorded 2026-09-22
SowAttention models/elegant.py unverified licence not identified · pointer only · 96ed265e9f635b1d · report
Repository not located 1 sample, 1 ran (1 instrument-failed) · 0 unverified
1 sample is identical to code Syntology harvested from another paper's repository; this paper's own copy was not located, so no repository is named and no licence is recorded.
compute_partial_repr in 5 papers repository not located ran; the contract check could not run (RAISES) · metamorphic tier: invariant licence of this copy not recorded · e1814689377a5c82 · report fixture: signature input_points:Tensor/2/float, control_points:Tensor/2/float · returned Tensor · level recorded 2026-09-22

Method as code Syntology

What Syntology's graph records as this paper's claimed method, lifted into code: each assembly names its bricks (functions and classes), each with its own role and its own verification level. An assembly is not a check that the code implements the method correctly or reproduces the paper's results. Levels are each brick's own verification level in Syntology's graph (level 0: no recorded run), listed brick by brick and never combined into one level; “ran” means the brick executed on a synthesized input, not that its output is correct, and the instrument figure counts failures of Syntology's instrument, not of the code. Where a model read the code against the paper's claim, each assembly's label verdict is one model's judgement, kept in this page's JSON twin; it is not calibrated, so no card prints it.

1 assembly on this paper: 1 harvested, 0 generated.

harvested Assembly for EleGANt (graph method: EleGANt). 19 bricks; individually on a fixture: 18 ran (of which 10 constructed an object rather than computing a result; 12 with no instrument failure: 0 honoured, 0 violated, 12 with no contract checked; 6 where Syntology's instrument failed) · 1 unverified. The assembly has not been run end-to-end.

  1. Generator entry · level 1 · ran · b60eab7b9ad9bb8f
  2. Attention_apply model · level 1 · ran · c8b1c6dc5774265b
  3. Downsample helper · level 1 · ran · 24e2b7616e3ae391
  4. FeedForwardLayer model · level 1 · ran · fc1b7b4a34850fb4
  5. MergeBlock helper · level 1 · ran · 083fb0ce640033ab
  6. MultiheadAttention model · level 1 · ran · 153bf0a3c6aaf0ac
  7. PositionalEmbedding helper · level 1 · ran · 0d8a48a224db0d6c
  8. ResidualBlock_IN helper · level 1 · ran · b7c38f3e7c4de550
  9. SowAttention model · level 0 · unverified · 96ed265e9f635b1d
  10. Upsample helper · level 1 · ran · 42e52235c85aff07
  11. tps_spatial_transform helper · level 1 · ran; the contract check could not run (RAISES) · 000fecba9c78bdcd
  12. MultiheadAttention_value model · level 1 · ran · 3b3ed0c6e7b58bfd
  13. MultiheadAttention_weight model · level 1 · ran · c115eefaada32113
  14. WindowAttention model · level 1 · ran · 43b762f90950f0d2
  15. build_target_coordinate_matrix helper · level 1 · ran · our draft was wrong · 2c814f1990af24d7
  16. bulid_delta_inverse helper · level 1 · ran; the contract check could not run (RAISES) · 78dfbe2c8f31243b
  17. tps_sampler helper · level 1 · ran; the contract check could not run (RAISES) · 595b400a32b3e370
  18. compute_partial_repr helper · level 1 · ran; the contract check could not run (RAISES) · e1814689377a5c82
  19. grid_sample helper · level 1 · ran; the contract check could not run (RAISES) · 1fc0288d55de52e2

Each brick ends with its code_sha256, Syntology's identity for that exact code; click one to copy the get_code call that returns it. For agents, on Syntology's MCP service: assembly(arxiv_id="2207.09840") returns these assemblies with each brick's role and wiring (how to connect).

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections