Datasets:
image imagewidth (px) 227 1k | mask imagewidth (px) 227 1k | frame int32 1 1.05k | hairstyle class label 7
classes | width int32 227 1k | height int32 227 1k |
|---|---|---|---|---|---|
1 | 0straight | 418 | 556 | ||
2 | 0straight | 477 | 635 | ||
3 | 0straight | 515 | 617 | ||
4 | 0straight | 458 | 458 | ||
5 | 0straight | 451 | 676 | ||
6 | 0straight | 424 | 636 | ||
7 | 0straight | 420 | 558 | ||
8 | 0straight | 313 | 500 | ||
9 | 0straight | 418 | 592 | ||
11 | 0straight | 480 | 720 | ||
12 | 0straight | 554 | 831 | ||
14 | 0straight | 372 | 701 | ||
15 | 0straight | 500 | 751 | ||
16 | 0straight | 503 | 754 | ||
17 | 0straight | 432 | 648 | ||
19 | 0straight | 439 | 585 | ||
20 | 0straight | 417 | 417 | ||
21 | 0straight | 421 | 561 | ||
22 | 0straight | 402 | 604 | ||
23 | 0straight | 633 | 447 | ||
25 | 0straight | 462 | 611 | ||
26 | 0straight | 401 | 863 | ||
27 | 0straight | 433 | 661 | ||
28 | 0straight | 706 | 726 | ||
29 | 0straight | 538 | 717 | ||
31 | 0straight | 573 | 859 | ||
33 | 0straight | 753 | 690 | ||
34 | 0straight | 507 | 676 | ||
35 | 0straight | 526 | 697 | ||
36 | 0straight | 1,000 | 1,000 | ||
37 | 0straight | 1,000 | 1,000 | ||
38 | 0straight | 559 | 559 | ||
39 | 0straight | 426 | 519 | ||
40 | 0straight | 1,000 | 997 | ||
41 | 0straight | 608 | 912 | ||
42 | 0straight | 550 | 550 | ||
43 | 0straight | 287 | 691 | ||
44 | 0straight | 329 | 523 | ||
45 | 0straight | 374 | 434 | ||
46 | 0straight | 745 | 559 | ||
47 | 0straight | 429 | 514 | ||
49 | 0straight | 403 | 537 | ||
51 | 0straight | 466 | 621 | ||
53 | 0straight | 631 | 958 | ||
54 | 0straight | 348 | 351 | ||
55 | 0straight | 422 | 633 | ||
56 | 0straight | 511 | 767 | ||
57 | 0straight | 568 | 804 | ||
58 | 0straight | 371 | 461 | ||
59 | 0straight | 433 | 573 | ||
61 | 0straight | 633 | 477 | ||
62 | 0straight | 433 | 577 | ||
65 | 0straight | 403 | 403 | ||
66 | 0straight | 792 | 594 | ||
67 | 0straight | 405 | 487 | ||
68 | 0straight | 438 | 613 | ||
70 | 0straight | 495 | 495 | ||
71 | 0straight | 439 | 566 | ||
72 | 0straight | 409 | 411 | ||
73 | 0straight | 389 | 516 | ||
74 | 0straight | 478 | 679 | ||
75 | 0straight | 577 | 865 | ||
76 | 0straight | 604 | 910 | ||
77 | 0straight | 646 | 860 | ||
78 | 0straight | 445 | 703 | ||
80 | 0straight | 521 | 753 | ||
81 | 0straight | 489 | 622 | ||
82 | 0straight | 599 | 897 | ||
83 | 0straight | 394 | 519 | ||
85 | 0straight | 567 | 852 | ||
86 | 0straight | 450 | 677 | ||
87 | 0straight | 429 | 429 | ||
88 | 0straight | 494 | 743 | ||
91 | 0straight | 563 | 750 | ||
92 | 0straight | 563 | 845 | ||
93 | 0straight | 674 | 674 | ||
94 | 0straight | 516 | 516 | ||
95 | 0straight | 573 | 778 | ||
97 | 0straight | 862 | 862 | ||
99 | 0straight | 442 | 569 | ||
100 | 0straight | 635 | 635 | ||
101 | 0straight | 496 | 742 | ||
103 | 0straight | 480 | 720 | ||
104 | 0straight | 978 | 652 | ||
106 | 0straight | 416 | 623 | ||
107 | 0straight | 327 | 490 | ||
108 | 0straight | 531 | 796 | ||
109 | 0straight | 388 | 582 | ||
110 | 0straight | 570 | 855 | ||
111 | 0straight | 441 | 661 | ||
116 | 0straight | 463 | 695 | ||
117 | 0straight | 535 | 802 | ||
118 | 0straight | 404 | 606 | ||
119 | 0straight | 475 | 713 | ||
120 | 0straight | 357 | 536 | ||
121 | 0straight | 848 | 1,000 | ||
122 | 0straight | 1,000 | 1,000 | ||
123 | 0straight | 1,000 | 1,000 | ||
124 | 0straight | 1,000 | 1,000 | ||
125 | 0straight | 743 | 991 |
Figaro1k
1,050 unconstrained photographs with pixel-level hair segmentation masks, spanning seven hairstyle classes. Prepared for nobg.
Usage
from datasets import load_dataset
ds = load_dataset("nobg/figaro1k")
example = ds["train"][0]
example["image"] # PIL RGB photograph
example["mask"] # PIL L mask, 0 = background, 255 = hair
ds["train"].features["hairstyle"].int2str(example["hairstyle"]) # e.g. "straight"
Splits
| Split | Examples | Per hairstyle |
|---|---|---|
train |
840 | 120 |
test |
210 | 30 |
The split is the original Training/Testing partition shipped with the dataset, not a
re-split. Verified: no frame index appears in both splits, and all 1,050 frames are present.
Fields
| Field | Type | Notes |
|---|---|---|
image |
Image |
RGB photograph, original resolution β sizes vary, do not assume a fixed shape |
mask |
Image |
Single-channel, 0 = background / 255 = hair, same dimensions as image |
frame |
int32 |
Original frame index (1β1050), from the source filename |
hairstyle |
ClassLabel |
straight, wavy, curly, kinky, braids, dreadlocks, short-men |
width, height |
int32 |
Convenience copies of the image dimensions |
Preparation notes
Built from the upstream Figaro1k.zip (Original/*.jpg + GT/*.pbm). Three things are
worth knowing if you compare against other conversions:
- Pairing is by filename (
FrameNNNNN-org.jpgβFrameNNNNN-gt.pbm), not by sorted directory position. The commonly-referenced loader in YBIGTA/pytorch-hair-segmentation pairs positionally, and some copies of the archive ship duplicate(1).pbmmasks that silently misalign every later pair. - Masks are
255= hair. The source is 1-bit PBM, whose polarity is easy to invert by accident. Confirmed here two ways: masks cover only ~2 % of the image border, and pixels inside the mask are markedly darker than outside (mean luminance 98 vs 154). - No resizing, cropping or normalization was applied; images are stored at original resolution. Hair covers ~34β41 % of pixels on average because the source images are tightly cropped around heads.
hairstyle is recovered from the frame index in blocks of 150 (frames 1β150 straight,
151β300 wavy, β¦), per the class ranges documented upstream. The resulting per-class counts
come out exactly balanced, which cross-checks the mapping.
Citation
Figaro1k is released by the original authors for research purposes; see the project page, we also acquired the data thanks to the work from YBIGTA. This repository redistributes the images in a converted format and claims no additional rights over them. Cite the original work:
@inproceedings{svanera2016figaro,
title={Figaro, hair detection and segmentation in the wild},
author={Svanera, Michele and Muhammad, Umar Riaz and Leonardi, Riccardo and Benini, Sergio},
booktitle={2016 IEEE International Conference on Image Processing (ICIP)},
pages={933--937},
year={2016},
organization={IEEE}
}
- Downloads last month
- 182