Dataset Viewer
Auto-converted to Parquet Duplicate
Search is not available for this dataset
image
imagewidth (px)
1.08k
2.93k
mask
imagewidth (px)
1.08k
2.93k
End of preview. Expand in Data Studio

P3M-10K

P3M-10K (Privacy-Preserving Portrait Matting) is a large-scale portrait matting benchmark. It is redistributed here from the original release by JizhiziLi/P3M.

If you use this dataset, please cite the original paper (see Citation).

Contents

Each example is a portrait RGB image and its corresponding alpha matte:

Column Type Description
image Image RGB portrait image
mask Image Alpha matte (soft foreground opacity)

Note: mask is the alpha matte, not a binary segmentation map.

Splits

Split Rows Image source Description
train 9421 blurred_image (privacy) Training set with face-blurred portraits
P3M_500_P 500 blurred_image (privacy) Validation set, Privacy (face-blurred) portraits
P3M_500_NP 500 original_image Validation set, Non-Privacy (unblurred) portraits

The schema is identical across all three splits (image + mask).

Dropped columns

The original release also ships fg/ (foreground) and bg/ (background) for the training set, and trimap/ for the validation sets. These were dropped to keep a clean, consistent two-column schema (image, mask) across all splits.

Evaluation protocol

Submissions to the tasks in eval.yaml must follow the official P3M evaluation code (core/evaluate.py and core/test.py), so that numbers match Table 4 of the P3M paper (arXiv 2104.14222). Compute each metric per image on the whole image (no trimap, this is trimap-free matting), with predicted and ground-truth alpha both in [0, 1] (mask / 255) at the original image resolution, then report the mean over the 500 images of the split. The task ID prefix selects the split: P3M_500_P_* uses P3M_500_P (face-blurred), P3M_500_NP_* uses P3M_500_NP (not blurred).

Task ID Metric Direction Scale (per image, then averaged)
P3M_500_{P,NP}_sad SAD lower is better sum of |pred - gt| over all pixels, divided by 1000
P3M_500_{P,NP}_mse MSE lower is better mean of (pred - gt)^2 over all H x W pixels, raw (for example 0.0026, not x1e-3)
P3M_500_{P,NP}_mad MAD lower is better mean of |pred - gt| over all H x W pixels, raw (for example 0.0051)
P3M_500_{P,NP}_grad Gradient lower is better Gaussian first-derivative filter with sigma = 1.4 (scipy.ndimage.gaussian_filter), sum of squared differences of gradient magnitudes, divided by 10
P3M_500_{P,NP}_conn Connectivity lower is better thresholds 0 to 1 in steps of 0.1, theta = 0.15, sum of |phi_pred - phi_gt|, divided by 1000

Example .eval_results/<name>.yaml entry in a model repo (the value is illustrative, in the scale above):

- dataset:
    id: nobg/P3M-10K
    task_id: P3M_500_P_sad
  value: 8.73

Citation

@inproceedings{li2021privacy,
  title={Privacy-Preserving Portrait Matting},
  author={Li, Jizhizi and Ma, Sihan and Zhang, Jing and Tao, Dacheng},
  booktitle={ACM MM},
  year={2021}
}

License

Released under the MIT License, matching the original P3M-10K Dataset Release Agreement (MIT License). Please review and abide by the original agreement.

Downloads last month
1,511

Collection including nobg/P3M-10K

Paper for nobg/P3M-10K