SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2112.05142 · 2021

HairCLIP: Design Your Hair by Text and Reference Image

arXiv · PDF · Open in the Atlas

Code that ran

8 of 9 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 7 failures of our instrument; 1 no recorded run), measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2112.05142.json · badge: /api/ran/2112.05142.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
wty-ustc/hairclip canonical (classifier label)
classifier basis: census
8 ran · 1 no recorded run
FunctionStatusWhere it lives
get_block Ran
ran, honoured the contract we drafted
wty-ustc/hairclip/models/facial_recognition/helpers.py
pointer only (licence: LGPL-2.1) · get_code("b28543ed94f9d144")
How it ran

The body of this sample is withheld: LGPL-2.1, as GitHub detects it on this paper's repository, wty-ustc/hairclip, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_blocks Ran
ran; our contract draft was wrong, not the code
wty-ustc/hairclip/models/facial_recognition/helpers.py
pointer only (licence: LGPL-2.1) · get_code("d764d1b681a351f3")
How it ran

The body of this sample is withheld: LGPL-2.1, as GitHub detects it on this paper's repository, wty-ustc/hairclip, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_interp_size Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
wty-ustc/hairclip/criteria/parse_related_loss/model_utils.py
pointer only (licence: LGPL-2.1) · get_code("80a82d5149279cdf")
How it ran

The body of this sample is withheld: LGPL-2.1, as GitHub detects it on this paper's repository, wty-ustc/hairclip, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_keys Ran
ran; our contract draft was wrong, not the code
wty-ustc/hairclip/mapper/hairclip_mapper.py
pointer only (licence: LGPL-2.1) · get_code("29b9a890f149a3a6")
How it ran

The body of this sample is withheld: LGPL-2.1, as GitHub detects it on this paper's repository, wty-ustc/hairclip, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

interp Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
wty-ustc/hairclip/criteria/parse_related_loss/model_utils.py
pointer only (licence: LGPL-2.1) · get_code("3e87c5d93ee4df83")
How it ran

The body of this sample is withheld: LGPL-2.1, as GitHub detects it on this paper's repository, wty-ustc/hairclip, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

l2_norm Ran
ran; our contract draft was wrong, not the code
wty-ustc/hairclip/models/facial_recognition/helpers.py
pointer only (licence: LGPL-2.1) · get_code("c54fea429589425d")
How it ran

The body of this sample is withheld: LGPL-2.1, as GitHub detects it on this paper's repository, wty-ustc/hairclip, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

run_on_batch Ran
ran; our contract draft was wrong, not the code
wty-ustc/hairclip/predict.py
pointer only (licence: LGPL-2.1) · get_code("fcc8ff62e18cf52d")
How it ran

The body of this sample is withheld: LGPL-2.1, as GitHub detects it on this paper's repository, wty-ustc/hairclip, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

run_on_batch_e4e Ran
ran; our contract draft was wrong, not the code
wty-ustc/hairclip/predict.py
pointer only (licence: LGPL-2.1) · get_code("c515c0d3b470330f")
How it ran

The body of this sample is withheld: LGPL-2.1, as GitHub detects it on this paper's repository, wty-ustc/hairclip, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_upsampling_weight Not yet run
unverified (harvested, no recorded run)
wty-ustc/hairclip/criteria/parse_related_loss/model_utils.py
pointer only (licence: LGPL-2.1); the stored copy get_code serves, from jiwei0921/CoNet, is pointer only (licence: NONE) · get_code("68f02849ad3eb678")
How it ran

The body of this sample is withheld: LGPL-2.1, as GitHub detects it on this paper's repository, wty-ustc/hairclip, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 7 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 4 the same month, 5 later) and 2 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
l2_norm 29 other papers
11 dated earlier, 18 later · 2 only as an assembly brick
1804.07573 (2018-04)
MobileFaceNets: Efficient CNNs for Accurate Real-Time Face Verification on Mobile Devices
1903.08527 (2019-03)
Accurate 3D Face Reconstruction with Weakly-Supervised Learning: From Single Image to Image Set
1905.11946 (2019-05)
EfficientNet: Rethinking Model Scaling for Convolutional Neural Networks
and 26 more not named here
get_block 27 other papers
10 dated earlier, 17 later
1804.07573 (2018-04)
MobileFaceNets: Efficient CNNs for Accurate Real-Time Face Verification on Mobile Devices
1903.08527 (2019-03)
Accurate 3D Face Reconstruction with Weakly-Supervised Learning: From Single Image to Image Set
1907.10830 (2019-07)
U-GAT-IT: Unsupervised Generative Attentional Networks with Adaptive Layer-Instance Normalization for Image-to-Image Translation
and 24 more not named here
get_keys 14 other papers
3 dated earlier, 1 the same month, 10 later
2008.00951 (2020-08)
Encoding in Style: a StyleGAN Encoder for Image-to-Image Translation
2011.12799 (2020-11)
StyleSpace Analysis: Disentangled Controls for StyleGAN Image Generation
2103.17249 (2021-03)
StyleCLIP: Text-Driven Manipulation of StyleGAN Imagery
and 11 more not named here
get_upsampling_weight 9 other papers
5 dated earlier, 1 the same month, 2 later, 1 same year, order not determinable
1807.09856 (2018-07)
Where are the Blobs: Counting by Localization with Point Supervision
1809.00338 (2018-09)
Look Across Elapse: Disentangled Representation Learning and Photorealistic Cross-Age Face Synthesis for Age-Invariant Face Recognition
2006.00176 (2020-06)
When2com: Multi-Agent Perception via Communication Graph Grouping
and 6 more not named here
get_blocks 4 other papers
1 dated earlier, 3 later
2008.00951 (2020-08)
Encoding in Style: a StyleGAN Encoder for Image-to-Image Translation
2203.08422 (2022-03)
Attribute Group Editing for Reliable Few-shot Image Generation
2307.08448 (2023-07)
Not All Steps are Created Equal: Selective Diffusion Distillation for Image Manipulation
and 1 more not named here
get_interp_size 3 other papers
2 dated earlier, 1 the same month
2006.00176 (2020-06)
When2com: Multi-Agent Perception via Communication Graph Grouping
2106.14917 (2021-06)
Striking the Right Balance: Recall Loss for Semantic Segmentation
2112.09130 (2021-12)
Ensembling Off-the-shelf Models for GAN Training
interp 1 other paper
1 the same month
2112.09130 (2021-12)
Ensembling Off-the-shelf Models for GAN Training

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Hair editing is an interesting and challenging problem in computer vision and graphics. Many existing methods require well-drawn sketches or masks as conditional inputs for editing, however these interactions are neither straightforward nor efficient. In order to free users from the tedious interaction process, this paper proposes a new hair editing interaction mode, which enables manipulating hair attributes individually or jointly based on the texts or reference images provided by users. For this purpose, we encode the image and text conditions in a shared embedding space and propose a unified hair editing framework by leveraging the powerful image text representation capability of the Contrastive Language-Image Pre-Training (CLIP) model. With the carefully designed network structures and loss functions, our framework can perform high-quality hair editing in a disentangled manner. Extensive experiments demonstrate the superiority of our approach in terms of manipulation accuracy, visual realism of editing results, and irrelevant attribute preservation. Project repo is https://github.com/wty-ustc/HairCLIP.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2112.05142")
get_code_for_paper("2112.05142")
have("2112.05142")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2112.05142.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2112.05142.svg)](https://syntology.ai/paper/2112.05142)

Connect an agent — have() is free.