Datasets:
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,28 +1,91 @@
|
|
| 1 |
---
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
-
|
| 5 |
-
|
| 6 |
-
-
|
| 7 |
-
|
| 8 |
-
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
- name: train
|
| 14 |
-
num_bytes: 210798808
|
| 15 |
-
num_examples: 5095
|
| 16 |
-
- name: test
|
| 17 |
-
num_bytes: 169576286
|
| 18 |
-
num_examples: 571
|
| 19 |
-
download_size: 1637130683
|
| 20 |
-
dataset_size: 380375094
|
| 21 |
-
configs:
|
| 22 |
-
- config_name: default
|
| 23 |
-
data_files:
|
| 24 |
-
- split: train
|
| 25 |
-
path: data/train-*
|
| 26 |
-
- split: test
|
| 27 |
-
path: data/test-*
|
| 28 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
license: cc-by-nc-4.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- image-segmentation
|
| 5 |
+
tags:
|
| 6 |
+
- mirror-detection
|
| 7 |
+
- segmentation
|
| 8 |
+
- edge-detection
|
| 9 |
+
- computer-vision
|
| 10 |
+
pretty_name: Progressive Mirror Detection (PMD)
|
| 11 |
+
size_categories:
|
| 12 |
+
- 1K<n<10K
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
---
|
| 14 |
+
|
| 15 |
+
# Progressive Mirror Detection (PMD) Dataset
|
| 16 |
+
|
| 17 |
+
The **PMD** dataset is a benchmark for mirror surface detection introduced in the CVPR 2020 paper [*Progressive Mirror Detection*](https://jiaying.link/cvpr2020-pgd/).
|
| 18 |
+
|
| 19 |
+
## Dataset Statistics
|
| 20 |
+
|
| 21 |
+
| Split | Images | Mask | Edge |
|
| 22 |
+
|-------|-------:|:----:|:----:|
|
| 23 |
+
| train | 5,095 | ✓ | ✓ |
|
| 24 |
+
| test | 571 | ✓ | — |
|
| 25 |
+
| **total** | **5,666** | | |
|
| 26 |
+
|
| 27 |
+
## Columns
|
| 28 |
+
|
| 29 |
+
| Column | Type | Description |
|
| 30 |
+
|--------|------|-------------|
|
| 31 |
+
| `image_id` | string | Original filename stem (e.g. `000000000164`), unique within each split |
|
| 32 |
+
| `image` | Image (RGB JPEG) | Input scene photograph |
|
| 33 |
+
| `mask` | Image (grayscale PNG) | Binary mirror segmentation mask |
|
| 34 |
+
| `edge` | Image (grayscale PNG) | Mirror edge map (train only; `None` for test) |
|
| 35 |
+
|
| 36 |
+
## Usage
|
| 37 |
+
|
| 38 |
+
```python
|
| 39 |
+
from datasets import load_dataset
|
| 40 |
+
|
| 41 |
+
ds = load_dataset("garrying/PMD")
|
| 42 |
+
|
| 43 |
+
sample = ds["train"][0]
|
| 44 |
+
sample["image_id"] # original filename stem, e.g. "000000000164"
|
| 45 |
+
sample["image"] # PIL Image (RGB)
|
| 46 |
+
sample["mask"] # PIL Image (grayscale)
|
| 47 |
+
sample["edge"] # PIL Image (grayscale, None for test)
|
| 48 |
+
```
|
| 49 |
+
|
| 50 |
+
## Converting Back to Raw Files
|
| 51 |
+
|
| 52 |
+
A helper script [`parquet_to_raw.py`](parquet_to_raw.py) is included to restore the original folder layout:
|
| 53 |
+
|
| 54 |
+
```bash
|
| 55 |
+
# download the script
|
| 56 |
+
huggingface-cli download garrying/PMD parquet_to_raw.py --repo-type dataset --local-dir .
|
| 57 |
+
|
| 58 |
+
# convert all splits
|
| 59 |
+
python parquet_to_raw.py --repo garrying/PMD --out PMD
|
| 60 |
+
```
|
| 61 |
+
|
| 62 |
+
Output layout:
|
| 63 |
+
```
|
| 64 |
+
PMD/
|
| 65 |
+
train/ image/ mask/ edge/
|
| 66 |
+
test/ image/ mask/
|
| 67 |
+
```
|
| 68 |
+
|
| 69 |
+
## Pretrained Model
|
| 70 |
+
|
| 71 |
+
A pretrained **PMDNet** checkpoint is available at [`garrying/PMD-PMDNet`](https://huggingface.co/garrying/PMD-PMDNet).
|
| 72 |
+
|
| 73 |
+
## License
|
| 74 |
+
|
| 75 |
+
This dataset is released under [CC BY-NC 4.0](https://creativecommons.org/licenses/by-nc/4.0/).
|
| 76 |
+
Please cite the paper below if you use this dataset in your work.
|
| 77 |
+
|
| 78 |
+
## Citation
|
| 79 |
+
|
| 80 |
+
```bibtex
|
| 81 |
+
@INPROCEEDINGS{PMD:2020,
|
| 82 |
+
Author = {Jiaying Lin and Guodong Wang and Rynson W.H. Lau},
|
| 83 |
+
Title = {Progressive Mirror Detection},
|
| 84 |
+
Booktitle = {Proc. CVPR},
|
| 85 |
+
Year = {2020}
|
| 86 |
+
}
|
| 87 |
+
```
|
| 88 |
+
|
| 89 |
+
## Contact
|
| 90 |
+
|
| 91 |
+
csjylin@gmail.com
|