garrying commited on
Commit
8aed0fa
·
verified ·
1 Parent(s): c2e97c3

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +105 -26
README.md CHANGED
@@ -1,28 +1,107 @@
1
  ---
2
- dataset_info:
3
- features:
4
- - name: image_id
5
- dtype: string
6
- - name: clip_id
7
- dtype: string
8
- - name: image
9
- dtype: image
10
- - name: mask
11
- dtype: image
12
- splits:
13
- - name: train
14
- num_bytes: 1314207449
15
- num_examples: 7836
16
- - name: test
17
- num_bytes: 1321945656
18
- num_examples: 7152
19
- download_size: 2598839589
20
- dataset_size: 2636153105
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
+ - video-understanding
8
+ - video-mirror-detection
9
+ - scene-understanding
10
+ pretty_name: VMD-D (Video Mirror Detection Dataset)
11
+ size_categories:
12
+ - 10K<n<100K
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  ---
14
+
15
+ # VMD-D — Video Mirror Detection Dataset
16
+
17
+ VMD-D is the first large-scale dataset for **Video Mirror Detection**, introduced in:
18
+
19
+ > **Learning to Detect Mirrors from Videos via Dual Correspondences**
20
+ > Jiaying Lin\*, Xin Tan\*, Rynson W. H. Lau
21
+ > CVPR 2023
22
+ > [Paper](https://openaccess.thecvf.com/content/CVPR2023) · [Project Page](https://jiaying.link/cvpr2023-vmd/)
23
+
24
+ ## Dataset Summary
25
+
26
+ VMD-D contains **14,987 image frames** from **269 videos** with corresponding manually annotated binary mirror masks. Videos are split into clips, and each clip is an independent sequence segment.
27
+
28
+ | Split | Clips | Frames |
29
+ |-------|------:|-------:|
30
+ | train | 144 | 7,836 |
31
+ | test | 127 | 7,151 |
32
+
33
+ ## Dataset Structure
34
+
35
+ Each sample has four columns:
36
+
37
+ | Column | Type | Description |
38
+ |------------|--------|-------------|
39
+ | `image_id` | string | Original path stem: `{clip_id}/{frame_id}`, e.g. `056_12/0001`. Enables round-trip fidelity. |
40
+ | `clip_id` | string | Video clip identifier, e.g. `056_12` |
41
+ | `image` | Image | JPEG video frame |
42
+ | `mask` | Image | PNG binary segmentation mask (mirror = white, background = black) |
43
+
44
+ The original on-disk layout is:
45
+ ```
46
+ VMD/
47
+ train/
48
+ {clip_id}/
49
+ JPEGImages/ # {frame}.jpg
50
+ SegmentationClassPNG/ # {frame}.png
51
+ test/
52
+ …
53
+ ```
54
+
55
+ ## Loading the Dataset
56
+
57
+ ```python
58
+ from datasets import load_dataset
59
+
60
+ ds = load_dataset("garrying/VMD-D")
61
+ # or load a single split:
62
+ train_ds = load_dataset("garrying/VMD-D", split="train")
63
+ test_ds = load_dataset("garrying/VMD-D", split="test")
64
+
65
+ sample = train_ds[0]
66
+ print(sample["image_id"]) # e.g. "056_12/0001"
67
+ sample["image"].show()
68
+ sample["mask"].show()
69
+ ```
70
+
71
+ ## Converting Back to Raw Files
72
+
73
+ A helper script `parquet_to_raw.py` is included in this repo to restore the original directory structure:
74
+
75
+ ```bash
76
+ # Download the helper
77
+ huggingface-cli download garrying/VMD-D parquet_to_raw.py --repo-type dataset
78
+
79
+ # Restore all splits from HuggingFace
80
+ python parquet_to_raw.py --repo garrying/VMD-D
81
+
82
+ # Restore only the test split to a custom directory
83
+ python parquet_to_raw.py --repo garrying/VMD-D --splits test --out VMD_test
84
+ ```
85
+
86
+ Output structure matches the original:
87
+ ```
88
+ VMD/
89
+ train/{clip_id}/JPEGImages/{frame}.jpg
90
+ train/{clip_id}/SegmentationClassPNG/{frame}.png
91
+ test/…
92
+ ```
93
+
94
+ ## Citation
95
+
96
+ ```bibtex
97
+ @InProceedings{Lin_2023_CVPR,
98
+ author = {Lin, Jiaying and Tan, Xin and Lau, Rynson W. H.},
99
+ title = {Learning to Detect Mirrors from Videos via Dual Correspondences},
100
+ booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
101
+ year = {2023},
102
+ }
103
+ ```
104
+
105
+ ## License
106
+
107
+ This dataset is released under [CC BY-NC 4.0](https://creativecommons.org/licenses/by-nc/4.0/). Non-commercial use only.