Dataset Viewer
Auto-converted to Parquet Duplicate
image_id
stringlengths
2
18
image
imagewidth (px)
119
9.68k
mask
imagewidth (px)
119
9.68k
edge
imagewidth (px)
119
9.68k
000000000164
000000000208
000000000560
000000000684
000000000754
000000000939
000000001099
000000001155
000000001706
000000001790
000000001864
000000001895
000000001926
000000002024
000000002197
000000002217
000000002283
000000002284
000000002434
000000002496
000000002559
000000002703
000000003040
000000003640
000000003789
000000004051
000000004065
000000004830
000000004893
000000005060
000000005111
000000005328
000000005335
000000005359
000000005360
000000005486
000000006213
000000006225
000000006358
000000006572
000000006578
000000006842
000000007239
000000007584
000000007762
000000007796
000000007921
000000008045
000000008234
000000008429
000000008602
000000008775
000000009174
000000009195
000000009772
000000010107
000000010263
000000010428
000000010466
000000010643
000000010655
000000010800
000000010977
000000010991
000000011146
000000011495
000000011630
000000011727
000000012103
000000012233
000000012238
000000012429
000000012700
000000013320
000000013463
000000013547
000000013916
000000013921
000000014282
000000014591
000000014730
000000014774
000000014941
000000015096
000000015180
000000015267
000000015468
000000015704
000000015810
000000015918
000000015952
000000016032
000000016251
000000016283
000000016523
000000016543
000000017235
000000017325
000000017379
000000017481
End of preview. Expand in Data Studio

Progressive Mirror Detection (PMD) Dataset

The PMD dataset is a benchmark for mirror surface detection introduced in the CVPR 2020 paper Progressive Mirror Detection.

Dataset Statistics

Split Images Mask Edge
train 5,095
test 571
total 5,666

Columns

Column Type Description
image_id string Original filename stem (e.g. 000000000164), unique within each split
image Image (RGB JPEG) Input scene photograph
mask Image (grayscale PNG) Binary mirror segmentation mask
edge Image (grayscale PNG) Mirror edge map (train only; None for test)

Usage

from datasets import load_dataset

ds = load_dataset("garrying/PMD")

sample = ds["train"][0]
sample["image_id"]  # original filename stem, e.g. "000000000164"
sample["image"]     # PIL Image (RGB)
sample["mask"]      # PIL Image (grayscale)
sample["edge"]      # PIL Image (grayscale, None for test)

Converting Back to Raw Files

A helper script parquet_to_raw.py is included to restore the original folder layout:

# download the script
huggingface-cli download garrying/PMD parquet_to_raw.py --repo-type dataset --local-dir .

# convert all splits
python parquet_to_raw.py --repo garrying/PMD --out PMD

Output layout:

PMD/
  train/  image/  mask/  edge/
  test/   image/  mask/

Pretrained Model

A pretrained PMDNet checkpoint is available at garrying/PMD-PMDNet.

License

This dataset is released under CC BY-NC 4.0. Please cite the paper below if you use this dataset in your work.

Citation

@INPROCEEDINGS{PMD:2020,
   Author    = {Jiaying Lin and Guodong Wang and Rynson W.H. Lau},
   Title     = {Progressive Mirror Detection},
   Booktitle = {Proc. CVPR},
   Year      = {2020}
}

Contact

csjylin@gmail.com

Downloads last month
32