Datasets:
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,28 +1,108 @@
|
|
| 1 |
---
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
-
|
| 5 |
-
|
| 6 |
-
-
|
| 7 |
-
|
| 8 |
-
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
- name: train
|
| 14 |
-
num_bytes: 671199548
|
| 15 |
-
num_examples: 2400
|
| 16 |
-
- name: test
|
| 17 |
-
num_bytes: 367134292
|
| 18 |
-
num_examples: 609
|
| 19 |
-
download_size: 1942993580
|
| 20 |
-
dataset_size: 1038333840
|
| 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 |
+
- glass-surface-detection
|
| 7 |
+
- rgb-d
|
| 8 |
+
- depth-estimation
|
| 9 |
+
- scene-understanding
|
| 10 |
+
pretty_name: RGBD-GSD (RGB-D Glass Surface Detection Dataset)
|
| 11 |
+
size_categories:
|
| 12 |
+
- 1K<n<10K
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
---
|
| 14 |
+
|
| 15 |
+
# RGBD-GSD — RGB-D Glass Surface Detection Dataset
|
| 16 |
+
|
| 17 |
+
RGBD-GSD is the first large-scale **RGB-D glass surface detection** dataset, introduced in:
|
| 18 |
+
|
| 19 |
+
> **Leveraging RGB-D Data with Cross-Modal Context Mining for Glass Surface Detection**
|
| 20 |
+
> Jiaying Lin\*, Yuen-Hei Yeung\*, Shuquan Ye, Rynson W. H. Lau
|
| 21 |
+
> AAAI 2025
|
| 22 |
+
> [arXiv](https://arxiv.org/abs/2206.11250) · [Project Page](https://jiaying.link/aaai2025-rgbdglass/)
|
| 23 |
+
|
| 24 |
+
## Dataset Summary
|
| 25 |
+
|
| 26 |
+
RGBD-GSD contains **3,009 RGB-D images** across a wide range of real-world glass surface categories, each paired with a precise binary segmentation mask and a depth map. Depth maps are captured with 3D sensors; blank (missing) regions in depth correspond to glass surfaces, providing a complementary detection cue to the RGB image.
|
| 27 |
+
|
| 28 |
+
| Split | Samples |
|
| 29 |
+
|-------|--------:|
|
| 30 |
+
| train | 2,400 |
|
| 31 |
+
| test | 609 |
|
| 32 |
+
| **total** | **3,009** |
|
| 33 |
+
|
| 34 |
+
## Dataset Structure
|
| 35 |
+
|
| 36 |
+
Each sample has four columns:
|
| 37 |
+
|
| 38 |
+
| Column | Type | Description |
|
| 39 |
+
|------------|--------|-------------|
|
| 40 |
+
| `image_id` | string | Original filename stem, e.g. `00000001`. Enables round-trip fidelity. |
|
| 41 |
+
| `image` | Image | JPEG RGB image |
|
| 42 |
+
| `mask` | Image | PNG binary segmentation mask (glass = white, background = black) |
|
| 43 |
+
| `depth` | Image | PNG depth map (blank/missing regions often correspond to glass surfaces) |
|
| 44 |
+
|
| 45 |
+
The original on-disk layout is:
|
| 46 |
+
```
|
| 47 |
+
RGBD-GSD/
|
| 48 |
+
train/
|
| 49 |
+
images/ # {id}.jpg
|
| 50 |
+
masks/ # {id}.png
|
| 51 |
+
depths/ # {id}.png
|
| 52 |
+
test/
|
| 53 |
+
…
|
| 54 |
+
```
|
| 55 |
+
|
| 56 |
+
## Loading the Dataset
|
| 57 |
+
|
| 58 |
+
```python
|
| 59 |
+
from datasets import load_dataset
|
| 60 |
+
|
| 61 |
+
ds = load_dataset("garrying/RGBD-GSD")
|
| 62 |
+
# or load a single split:
|
| 63 |
+
train_ds = load_dataset("garrying/RGBD-GSD", split="train")
|
| 64 |
+
test_ds = load_dataset("garrying/RGBD-GSD", split="test")
|
| 65 |
+
|
| 66 |
+
sample = train_ds[0]
|
| 67 |
+
print(sample["image_id"]) # e.g. "00000001"
|
| 68 |
+
sample["image"].show()
|
| 69 |
+
sample["mask"].show()
|
| 70 |
+
sample["depth"].show()
|
| 71 |
+
```
|
| 72 |
+
|
| 73 |
+
## Converting Back to Raw Files
|
| 74 |
+
|
| 75 |
+
A helper script `parquet_to_raw.py` is included in this repo to restore the original directory structure:
|
| 76 |
+
|
| 77 |
+
```bash
|
| 78 |
+
# Download the helper
|
| 79 |
+
huggingface-cli download garrying/RGBD-GSD parquet_to_raw.py --repo-type dataset
|
| 80 |
+
|
| 81 |
+
# Restore all splits from HuggingFace
|
| 82 |
+
python parquet_to_raw.py --repo garrying/RGBD-GSD
|
| 83 |
+
|
| 84 |
+
# Restore only the test split to a custom directory
|
| 85 |
+
python parquet_to_raw.py --repo garrying/RGBD-GSD --splits test --out RGBD-GSD_test
|
| 86 |
+
```
|
| 87 |
+
|
| 88 |
+
Output structure matches the original:
|
| 89 |
+
```
|
| 90 |
+
RGBD-GSD/
|
| 91 |
+
train/images/{id}.jpg train/masks/{id}.png train/depths/{id}.png
|
| 92 |
+
test/…
|
| 93 |
+
```
|
| 94 |
+
|
| 95 |
+
## Citation
|
| 96 |
+
|
| 97 |
+
```bibtex
|
| 98 |
+
@article{aaai2025_rgbdglass,
|
| 99 |
+
author = {Lin, Jiaying and Yeung, Yuen-Hei and Ye, Shuquan and Lau, Rynson W.H.},
|
| 100 |
+
title = {Leveraging RGB-D Data with Cross-Modal Context Mining for Glass Surface Detection},
|
| 101 |
+
journal = {AAAI},
|
| 102 |
+
year = {2025},
|
| 103 |
+
}
|
| 104 |
+
```
|
| 105 |
+
|
| 106 |
+
## License
|
| 107 |
+
|
| 108 |
+
This dataset is released under [CC BY-NC 4.0](https://creativecommons.org/licenses/by-nc/4.0/). Non-commercial use only.
|