not-lain commited on
Commit
e4c714e
·
verified ·
1 Parent(s): 71554cf

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +68 -26
README.md CHANGED
@@ -1,28 +1,70 @@
1
  ---
2
- dataset_info:
3
- features:
4
- - name: image
5
- dtype: image
6
- - name: mask
7
- dtype: image
8
- - name: instance_id
9
- dtype: int32
10
- - name: subset
11
- dtype: string
12
- splits:
13
- - name: comp
14
- num_bytes: 5644136440
15
- num_examples: 5883
16
- - name: natural
17
- num_bytes: 778747388
18
- num_examples: 830
19
- download_size: 6423302154
20
- dataset_size: 6422883828
21
- configs:
22
- - config_name: default
23
- data_files:
24
- - split: comp
25
- path: data/comp-*
26
- - split: natural
27
- path: data/natural-*
28
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ license: cc-by-nc-4.0
3
+ pretty_name: HIM-2K
4
+ task_categories:
5
+ - image-segmentation
6
+ tags:
7
+ - human-matting
8
+ - instance-matting
9
+ - alpha-matting
10
+ - image-matting
11
+ size_categories:
12
+ - 1K<n<10K
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  ---
14
+
15
+ # HIM-2K (Human Instance Matting)
16
+
17
+ HIM-2K is a **human instance matting** benchmark introduced with **InstMatt**
18
+ (["Human Instance Matting via Mutual Guidance and Multi-Instance Refinement", Sun et al., CVPR 2022](https://openaccess.thecvf.com/content/CVPR2022/html/Sun_Human_Instance_Matting_via_Mutual_Guidance_and_Multi-Instance_Refinement_CVPR_2022_paper.html)).
19
+ Unlike standard human matting, it provides a **separate alpha matte for every human instance** in an image,
20
+ so a single photo containing multiple people yields multiple ground-truth alpha mattes.
21
+
22
+ Source: [nowsyn/InstMatt](https://github.com/nowsyn/InstMatt).
23
+
24
+ ## Dataset structure
25
+
26
+ Because instance matting has a variable number of alpha mattes per image, this dataset uses
27
+ **one row per (image, instance-alpha) pair**. All rows in every split share the same schema:
28
+
29
+ | column | type | description |
30
+ |---------------|-----------------|--------------------------------------------------------------------|
31
+ | `image` | `Image` | The shared RGB photo. Repeated across the instances it contains. |
32
+ | `mask` | `Image` | The alpha matte for **one** human instance in that image. |
33
+ | `instance_id` | `int32` | Index of the instance within its image (from the alpha filename). |
34
+ | `subset` | `string` | `"comp"` or `"natural"` (matches the split name). |
35
+
36
+ An image with N humans appears in N rows, all sharing the same `image` but each carrying a
37
+ different `mask` / `instance_id`.
38
+
39
+ ## Splits
40
+
41
+ The dataset's own subset structure is used as the splits (there is no separate train/test split):
42
+
43
+ | split | images | instance rows |
44
+ |-----------|--------|---------------|
45
+ | `comp` | 1680 | 5883 |
46
+ | `natural` | 320 | 830 |
47
+
48
+ - **`comp`** — composited images.
49
+ - **`natural`** — real natural images with ground-truth per-instance alphas.
50
+
51
+ Note: the original archive also ships an `images/natural_wo_gt` folder (100 natural images
52
+ *without* ground-truth alphas). Those images have no masks and therefore cannot fit the
53
+ `image` + `mask` schema, so they are **excluded** from this dataset.
54
+
55
+ ## License
56
+
57
+ Released under **CC BY-NC 4.0** (academic / non-commercial). The upstream InstMatt repository
58
+ does not state an explicit license; this is a conservative choice for an academic matting benchmark.
59
+ Please cite the InstMatt paper if you use this data.
60
+
61
+ ## Citation
62
+
63
+ ```bibtex
64
+ @inproceedings{sun2022instmatt,
65
+ title = {Human Instance Matting via Mutual Guidance and Multi-Instance Refinement},
66
+ author = {Sun, Yanan and Tang, Chi-Keung and Tai, Yu-Wing},
67
+ booktitle = {CVPR},
68
+ year = {2022}
69
+ }
70
+ ```