Datasets:
|
Download README.md from ming0531/LayerBeauty: direct link, hf CLI and curl.
- Browser
- Download file 13.3 kB
-
https://huggingface.co/datasets/ming0531/LayerBeauty/resolve/main/README.md
- Command line
-
hf download hf://datasets/ming0531/LayerBeauty/README.md
-
curl -L -H "Authorization: Bearer $HF_TOKEN" -o README.md https://huggingface.co/datasets/ming0531/LayerBeauty/resolve/main/README.md
13.3 kB
| license: cc-by-nc-4.0 | |
| extra_gated_prompt: >- | |
| LayerBeauty is released under CC BY-NC 4.0 for non-commercial research and education only. Commercial use and any | |
| unlawful use, or use that violates other people's rights (impersonation, deceptive face edits, editing someone's photo | |
| without consent), are not allowed. Any work that uses LayerBeauty must cite the IrisMix paper (arXiv 2611.35956). | |
| extra_gated_fields: | |
| I will use LayerBeauty only for non-commercial research or education: checkbox | |
| I will not use LayerBeauty for any unlawful or harmful purpose: checkbox | |
| I will cite the IrisMix paper in any work that uses LayerBeauty: checkbox | |
| extra_gated_button_content: Agree and access LayerBeauty | |
| pretty_name: LayerBeauty | |
| task_categories: | |
| - image-to-image | |
| tags: | |
| - makeup | |
| - makeup-transfer | |
| - face | |
| - layer-decomposition | |
| - synthetic | |
| size_categories: | |
| - 10K<n<100K | |
| configs: | |
| - config_name: creative_scene | |
| data_files: | |
| - split: train | |
| path: data/creative_scene/train-*.parquet | |
| - split: val | |
| path: data/creative_scene/val-*.parquet | |
| - split: test | |
| path: data/creative_scene/test-*.parquet | |
| - split: unseen_style | |
| path: data/creative_scene/unseen_style-*.parquet | |
| - config_name: daily_scene | |
| data_files: | |
| - split: train | |
| path: data/daily_scene/train-*.parquet | |
| - split: val | |
| path: data/daily_scene/val-*.parquet | |
| - split: test | |
| path: data/daily_scene/test-*.parquet | |
| # LayerBeauty | |
| Paired makeup data with explicit makeup layers, introduced with *IrisMix: Compositional Makeup Transfer and Editing | |
| with Layered Diffusion* ([arXiv 2611.35956](https://arxiv.org/abs/2611.35956)). Every pair contains a made-up portrait, the bare face of the same synthetic person, and the makeup | |
| as a coverage-and-colour layer such that | |
| madeup = round(clip(a * F + (1 - a) * bare)) (a, F, bare in [0, 1]) | |
| ## Subsets | |
| | subset | config | pairs | identities | construction | makeup | | |
| |---|---|---|---|---|---| | |
| | LayerBeauty-CreativeScene | `creative_scene` | 13,273 | 3,496 person groups | makeup-first: a made-up portrait is generated, then the makeup is removed | editorial and avant-garde face art, 53 style families, 88 prompted nationalities | | |
| | LayerBeauty-DailyScene | `daily_scene` | 4,794 | 4,505 identity groups | bare-first: makeup is edited part by part onto a generated bare face | everyday looks (lips, liner, eyeshadow, brows, blush) | | |
| ## Layout | |
| ``` | |
| LayerBeauty/ | |
| data/creative_scene/{train, val, test, unseen_style}-NNNNN-of-NNNNN.parquet | |
| data/daily_scene/{train, val, test}-NNNNN-of-NNNNN.parquet | |
| splits.json id -> split for both configs, the split rules and the counts | |
| dataset_info.json dataset-level constants (see below) | |
| tools/load_layerbeauty.py loading and recomposition example | |
| ``` | |
| ```python | |
| from datasets import load_dataset | |
| ds = load_dataset("ming0531/LayerBeauty", "creative_scene", split="val") # config: creative_scene | daily_scene | |
| row = ds[0] | |
| row["madeup"] # PIL image | |
| row["person"]["identity_group"] # nested fields are plain dicts | |
| row["layer_info"]["box"] # [x0, y0, x1, y1] | |
| ``` | |
| `tools/load_layerbeauty.py` reads the undecoded bytes and checks the recomposition, for example | |
| `python tools/load_layerbeauty.py daily_scene val --n 3`. | |
| ## Columns | |
| Each row is one pair. Ids (`cs_000001`, `ds_000001`, six digits) are stable, opaque and carry no meaning; their order is not | |
| related to style, person or generation order. The same name means the same thing in both configs; a field that a config | |
| does not have is not in its schema. | |
| Top level: | |
| | column | configs | content | | |
| |---|---|---| | |
| | `id` | both | item id | | |
| | `madeup` | both | made-up image, lossless WebP (CreativeScene 1024x1024, DailyScene 768x1024) | | |
| | `bare` | both | bare face, lossless WebP | | |
| | `layer` | both | makeup layer, RGBA lossless WebP: RGB = colour F, A = coverage a (CreativeScene: full image; DailyScene: the face box `layer_info.box`) | | |
| | `parts_npz` | both | `.npz` file bytes, read with `numpy.load(io.BytesIO(...))`. CreativeScene: `w` (5, H, W; lips, eyes, brows, face, forehead), `part_names`, `face` mask. DailyScene, in the face box: `part_labels`, `part_names`, `regions`, `eye_w`, `eye_w_names`, shading `S`, plus `box`, `lm_bare` and `lm3d_bare` landmarks | | |
| | `person` | both | see below | | |
| | `design` | both | see below | | |
| | `generation` | both | see below | | |
| | `layer_info` | both | see below | | |
| | `quality` | creative_scene | see below | | |
| | `sample_weight` | both | CreativeScene: re-weights by measured skin tone, gender and the 31-55 age subset (mean 1). DailyScene: always 1.0 | | |
| `madeup`, `bare` and `layer` are image columns of the form `{bytes, path}`, where `bytes` is the WebP file and `path` a | |
| neutral name such as `cs_000001/madeup.webp`. Use the undecoded bytes, or convert a decoded `layer` with `.convert("RGBA")`, to | |
| keep F and a exact. | |
| `person`: prompt intent, not verified attributes. | |
| | field | configs | content | | |
| |---|---|---| | |
| | `identity_group` | both | opaque group id; items of one person share it. CreativeScene: the person group of a generated persona. DailyScene: an identity group | | |
| | `gender` | creative_scene | `woman` or `man` | | |
| | `region` | both | prompted region pool: `east_asia`, `west`, `eurasia` or `global`; DailyScene is always `east_asia` | | |
| | `nationality` | creative_scene | prompted nationality | | |
| | `age_prompt` | creative_scene | prompted age, set only for the extended 31-55 age subset, otherwise null (other prompts state the age in the text) | | |
| | `skin_tone_prompt` | creative_scene | prompted Monk skin tone (1-10), set only for the `global` prompt pool, otherwise null | | |
| | `age_extended` | creative_scene | true for the extended 31-55 age subset | | |
| `design`: what the makeup is meant to be. | |
| | field | configs | content | | |
| |---|---|---| | |
| | `style_family` | creative_scene | one of 53 style families (listed below) | | |
| | `design_id` | creative_scene | opaque design id (`d0001`), one per design; several items can share a design | | |
| | `theme` | creative_scene | design title | | |
| | `story` | creative_scene | short design concept | | |
| | `palette` | creative_scene | list of colour names | | |
| | `intensity` | creative_scene | `natural`, `soft`, `medium`, `editorial` or `avant-garde` | | |
| | `asymmetric` | creative_scene | whether the design is asymmetric | | |
| | `parts` | creative_scene | part order of `w` in `parts_npz` | | |
| | `part_descriptions` | both | per-part text. CreativeScene: one string each for `face_art`, `eyes`, `lips`, `brows`, `cheeks`, `decor`. DailyScene: a list of strings each for `eyes`, `lips`, `cheeks` | | |
| | `description` | daily_scene | whole-face makeup description used for the edits | | |
| `generation`: the text and seed used, verbatim. | |
| | field | configs | content | | |
| |---|---|---| | |
| | `prompt` | both | image-generation prompt | | |
| | `photo` | creative_scene | scene, pose and styling direction written with the design; `prompt` contains it word for word for only some items | | |
| | `removal_prompts` | creative_scene | the makeup-removal edit prompts | | |
| | `seed` | both | generation seed | | |
| `layer_info`: how the layer sits on the image. | |
| | field | configs | content | | |
| |---|---|---| | |
| | `box` | both | layer position `[x0, y0, x1, y1]`; CreativeScene: always the full image | | |
| | `pigments` | daily_scene | one entry per makeup part (`lips`, `brows`, `eyeshadow`, `liner`, `cheeks`, `socket`, `undereye`), null if the look has no such part: `pigment_lab` (CIELAB), `pigment_rgb` (sRGB in [0, 1]), `intensity` with `mean_alpha`, `p95_alpha` and `area_px` | | |
| | `lip_strength` | daily_scene | strength class of the lip layer: `none`, `sheer`, `medium` or `full` | | |
| `quality`: values measured on the images during filtering; null where the check did not run. | |
| | field | configs | content | | |
| |---|---|---| | |
| | `part_coverage` | creative_scene | layer coverage per part (`lips`, `eyes`, `brows`, `face`, `forehead`) | | |
| | `eye_ratio` | creative_scene | eye-geometry ratio between the made-up and bare faces (about 1 when they match) | | |
| | `face_iou` | creative_scene | face-region overlap between the made-up and bare faces | | |
| | `skin_dL` | creative_scene | skin lightness (CIELAB L*) difference between the faces; positive when the bare face is lighter | | |
| | `ita_madeup`, `ita_bare` | creative_scene | Individual Typology Angle of the skin, in degrees | | |
| Style families: `alien`, `arabiandesert`, `aristocrat`, `art`, `bloodymary`, `bold`, `ceo`, `cubist`, `cyberpunk`, `cyberrunner`, `daily_cn`, `daily_jp`, `daily_kr`, `daily_tw`, `dandy`, `desertrose`, `desertsw`, `detective`, `eeriespider`, `egyptqueen`, `elemental`, `eu_fairytale`, `general`, `gezaixi`, `glam`, `gothic`, `halloween`, `icequeen`, `indianmystic`, `jingju`, `jp_ol`, `kpopidol`, `kr_elite`, `miao`, `miko`, `mongolian`, `nursecare`, `postimpress`, `redhood`, `russianice`, `shakespeare`, `siberian`, `smoky`, `socialite`, `street`, `tales`, `thaiclassic`, `twfresh`, `twinfluencer`, `witch`, `wizardschool`, `wuxia`, `xianxia`. | |
| ## Dataset-level constants | |
| These hold for every row of a config and are therefore not columns; `dataset_info.json` has the same content. | |
| | | `creative_scene` | `daily_scene` | | |
| |---|---|---| | |
| | compositing | `madeup = round(clip(a*F + (1-a)*bare)), a = layer alpha / 255, F = layer RGB / 255, bare = bare image / 255` | `inside layer_info.box: madeup = round(clip(a*F + (1-a)*bare)); outside: madeup = bare` | | |
| | label note | person.region, person.nationality, person.gender and person.age_prompt are prompt intent, not verified attributes | person.region and any age stated in generation.prompt are prompt intent, not verified attributes | | |
| | generation model | Z-Image-Turbo | Z-Image-Turbo | | |
| | edit model | FLUX.2-klein-4B | FLUX.2-klein-4B | | |
| ## Splits | |
| | config | train | val | test | unseen_style | | |
| |---|---|---|---|---| | |
| | `creative_scene` | 11,739 | 323 | 493 | 718 | | |
| | `daily_scene` | 4,366 | 122 | 306 | - | | |
| CreativeScene splits hash the person group, so no generated persona is shared between train, val and test. `unseen_style` | |
| holds every item of two theme sets for testing generalisation to unseen designs: European fairy-tale (`eu_fairytale`) and | |
| cyberpunk (the `cyberpunk` and `cyberrunner` style families); a persona can appear in both an unseen-style item and a training item, but never with the same style family. | |
| DailyScene splits follow identity groups. | |
| ## Intended use | |
| Research on makeup transfer, makeup removal, layer decomposition and editing. The layers are a supplied representation, | |
| not physical ground truth: for CreativeScene the bare face comes from an image editor, so it is an estimate; for DailyScene | |
| the layer is exact by construction. | |
| ## How it was made | |
| Portraits: Z-Image-Turbo; makeup removal and part edits: FLUX.2-klein-4B (both under Apache-2.0). Prompts were | |
| validated against exclusion rules (no real people, brands, characters, religious symbols, wounds, sexualised content). | |
| Images passed age gates (adult personas only; ambiguous cases checked manually), eye-geometry, skin-tone and quality | |
| filters, and a visual defect check (attached or 3D-looking objects, hands or tools at the face, removal residue). See the | |
| paper's appendix for the full pipeline and filter statistics. | |
| ## Limitations and bias | |
| - All faces are synthetic; the `person` fields (prompted region, nationality, gender and age) describe generation intent, not | |
| verified attributes. | |
| - Demographics are imbalanced: DailyScene contains East Asian women only; CreativeScene is about 49% East Asian personas and | |
| 7% men. `sample_weight` (CreativeScene) re-weights by measured skin tone, gender and the 31-55 age subset (mean 1). | |
| - Filters were stricter for some groups (e.g. the skin-tone gate on darker skin), so pass rates differ between groups. | |
| - CreativeScene layers recompose the made-up image to within 2/255 (the stored bare face is quantised); DailyScene layers | |
| exactly. | |
| - The reported IrisMix models were trained on an earlier set of pairs; the counts here are not training-set sizes. | |
| ## Licence | |
| Dataset licence: **CC BY-NC 4.0** (https://creativecommons.org/licenses/by-nc/4.0/), non-commercial use only. | |
| Generator licences: Apache-2.0. | |
| ## Terms of use | |
| By downloading or using LayerBeauty you agree to the following. | |
| - **Non-commercial only.** CC BY-NC 4.0, for non-commercial research and education. Commercial use is not allowed: no | |
| selling, no paid products or services, and no training of models for commercial use. | |
| - **No unlawful or harmful use.** Do not use it in ways that break the law or violate other people's rights, such as | |
| impersonation, deceptive face edits, harassment, or editing someone's photo without their consent. | |
| - **Citation is required.** Any paper, report, code, model or dataset that uses it must cite the IrisMix paper | |
| (see Citation below). | |
| ## Citation | |
| ```bibtex | |
| @misc{lee2026irismix, | |
| title = {{IrisMix}: Compositional Makeup Transfer and Editing with Layered Diffusion}, | |
| author = {Lee, Chia-Ming and Chang, Ming-Ching and Li, Xin and | |
| Shuai, Hong-Han and Liu, Yu-Lun and Hsu, Chih-Chung}, | |
| year = {2026}, | |
| eprint = {2611.35956}, | |
| archivePrefix = {arXiv}, | |
| primaryClass = {cs.CV}, | |
| url = {https://arxiv.org/abs/2611.35956} | |
| } | |
| ``` | |
| Project page: https://ming053l.github.io/IrisMix/ · Code: https://github.com/ming053l/IrisMix | |