Datasets:
HIM-2K
HIM-2K is a human instance matting benchmark introduced in "Human Instance Matting via Mutual Guidance and Multi-Instance Refinement" (InstMatt, Sun et al., CVPR 2022). Please cite the original authors and respect the non-commercial (CC BY-NC 4.0) license.
Schema
One row per image:
image— the RGB photo (datasets.Image).mask— a list of per-instance alpha mattes for that image (List(Image(...))); each element is one human instance alpha, ordered by the instance index in the source archive.
Splits
comp— 1680 composited images.natural— 320 natural images.
The images/natural_wo_gt portion of the original archive is excluded here
because it has no ground-truth alpha mattes.
Evaluation protocol
All tasks in eval.yaml report Instance Matting Quality (IMQ) as defined in the InstMatt paper (arXiv 2205.10767, Table 1) and the official code (evaluation/IMQ.py, evaluation/metrics.py). The comp split is the paper's Synthetic Subset (1680 composited images) and natural is the Natural Subset (320 images).
- Matching: binarize every predicted and ground-truth instance alpha with alpha > 0, compute the IoU matrix, and do one-to-one Hungarian matching. A matched pair is a true positive (TP) if IoU >= 0.5. Unmatched or below-threshold predictions are FP, unmatched ground truths are FN. Counts are accumulated over the whole split.
- Similarity: for each TP pair, S = 1 - min(w * E, 1) with w = 10. E is the per-instance error with alpha in [0, 1], averaged over the pixels where pred > 0 or gt > 0: MAD (mean absolute difference), MSE, Grad (Gaussian gradient, sigma = 1.4) or Conn (step 0.1, theta = 0.15).
- Score: IMQ = sum of S over all TP / (|TP| + 0.5 |FP| + 0.5 |FN|), reported on a 0-100 scale (the code returns 0-1, multiply by 100).
| Task ID | Metric | Direction | Scale |
|---|---|---|---|
comp_imq_mad / natural_imq_mad |
IMQ with E = MAD | higher is better | 0-100 |
comp_imq_mse / natural_imq_mse |
IMQ with E = MSE | higher is better | 0-100 |
comp_imq_grad / natural_imq_grad |
IMQ with E = Grad | higher is better | 0-100 |
comp_imq_conn / natural_imq_conn |
IMQ with E = Conn | higher is better | 0-100 |
Per-instance MAD or SAD numbers (as reported by MaGGIe and similar works) are a different protocol and must not be submitted to these IMQ tasks.
Example .eval_results/<name>.yaml entry in a model repo (the value is illustrative, in the scale above):
- dataset:
id: nobg/HIM-2K
task_id: comp_imq_mad
value: 63.59
Citation
@inproceedings{sun2022instmatt,
title = {Human Instance Matting via Mutual Guidance and Multi-Instance Refinement},
author = {Sun, Yanan and Tang, Chi-Keung and Tai, Yu-Wing},
booktitle = {CVPR},
year = {2022}
}
- Downloads last month
- 240