Dataset Viewer
Auto-converted to Parquet Duplicate
image_id
stringlengths
8
72
image
imagewidth (px)
561
1.28k
mask
imagewidth (px)
561
1.28k
depth
imagewidth (px)
561
1.28k
00000001
00000002
00000003
00000008
00000009
00000012
00000013
00000014
00000015
00000016
00000018
00000021
00000024
00000025
00000026
00000038
00000051
00000055
00000057
00000062
00000063
00000064
00000065
00000068
00000074
00000081
00000082
00000083
00000087
00000088
00000091
00000092
00000093
00000094
00000102
00000116
00000117
00000126
00000129
00000156
00000157
00000159
00000164
00000165
00000171
00000173
00000174
00000176
00000177
00000178
00000179
00000180
00000183
00000184
00000186
00000187
00000191
00000192
00000199
00000202
00000204
00000207
00000210
00000211
00000212
00000213
00000215
00000216
00000219
00000221
00000230
00000236
00000237
00000241
00000242
00000243
00000245
00000246
00000256
00000262
00000264
00000265
00000269
00000270
00000271
00000272
00000274
00000278
00000279
00000282
00000284
00000300
00000303
00000305
00000313
00000314
00000317
00000321
00000322
00000323
End of preview. Expand in Data Studio

RGBD-GSD — RGB-D Glass Surface Detection Dataset

RGBD-GSD is the first large-scale RGB-D glass surface detection dataset, introduced in:

Leveraging RGB-D Data with Cross-Modal Context Mining for Glass Surface Detection
Jiaying Lin*, Yuen-Hei Yeung*, Shuquan Ye, Rynson W. H. Lau
AAAI 2025
arXiv · Project Page

Dataset Summary

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.

Split Samples
train 2,400
test 609
total 3,009

Dataset Structure

Each sample has four columns:

Column Type Description
image_id string Original filename stem, e.g. 00000001. Enables round-trip fidelity.
image Image JPEG RGB image
mask Image PNG binary segmentation mask (glass = white, background = black)
depth Image PNG depth map (blank/missing regions often correspond to glass surfaces)

The original on-disk layout is:

RGBD-GSD/
  train/
    images/   # {id}.jpg
    masks/    # {id}.png
    depths/   # {id}.png
  test/
    …

Loading the Dataset

from datasets import load_dataset

ds = load_dataset("garrying/RGBD-GSD")
# or load a single split:
train_ds = load_dataset("garrying/RGBD-GSD", split="train")
test_ds  = load_dataset("garrying/RGBD-GSD", split="test")

sample = train_ds[0]
print(sample["image_id"])   # e.g. "00000001"
sample["image"].show()
sample["mask"].show()
sample["depth"].show()

Converting Back to Raw Files

A helper script parquet_to_raw.py is included in this repo to restore the original directory structure:

# Download the helper
huggingface-cli download garrying/RGBD-GSD parquet_to_raw.py --repo-type dataset

# Restore all splits from HuggingFace
python parquet_to_raw.py --repo garrying/RGBD-GSD

# Restore only the test split to a custom directory
python parquet_to_raw.py --repo garrying/RGBD-GSD --splits test --out RGBD-GSD_test

Output structure matches the original:

RGBD-GSD/
  train/images/{id}.jpg  train/masks/{id}.png  train/depths/{id}.png
  test/…

Citation

@article{aaai2025_rgbdglass,
  author    = {Lin, Jiaying and Yeung, Yuen-Hei and Ye, Shuquan and Lau, Rynson W.H.},
  title     = {Leveraging RGB-D Data with Cross-Modal Context Mining for Glass Surface Detection},
  journal   = {AAAI},
  year      = {2025},
}

License

This dataset is released under CC BY-NC 4.0. Non-commercial use only.

Downloads last month
20

Paper for garrying/RGBD-GSD