Datasets:
image_id stringlengths 8 72 | image imagewidth (px) 233 1.28k | mask imagewidth (px) 233 1.28k | seg imagewidth (px) 233 1.28k | seg_colored imagewidth (px) 233 1.28k |
|---|---|---|---|---|
000000000711 | ||||
000000000795 | ||||
000000001306 | ||||
000000001347 | ||||
000000001837 | ||||
000000003742 | ||||
000000003877 | ||||
000000004243 | ||||
000000004578 | ||||
000000004970 | ||||
000000005359 | ||||
000000005505 | ||||
000000005830 | ||||
000000006357 | ||||
000000007214 | ||||
000000008064 | ||||
000000008086 | ||||
000000008791 | ||||
000000008999 | ||||
000000009113 | ||||
000000009556 | ||||
00000001 | ||||
000000010145 | ||||
000000010342 | ||||
000000010877 | ||||
000000011182 | ||||
000000011244 | ||||
000000011332 | ||||
000000011630 | ||||
000000011774 | ||||
000000012614 | ||||
000000013144 | ||||
000000013547 | ||||
000000014713 | ||||
000000015070 | ||||
000000015485 | ||||
000000015930 | ||||
000000017376 | ||||
000000017870 | ||||
000000017877 | ||||
000000018256 | ||||
000000018294 | ||||
000000018641 | ||||
000000019074 | ||||
000000019391 | ||||
000000019546 | ||||
00000002 | ||||
000000020456 | ||||
000000021353 | ||||
000000021740 | ||||
000000022411 | ||||
000000023343 | ||||
000000023579 | ||||
000000024026 | ||||
000000024380 | ||||
000000024507 | ||||
000000024608 | ||||
000000025195 | ||||
000000025245 | ||||
000000026028 | ||||
000000027476 | ||||
000000027888 | ||||
000000028253 | ||||
000000028714 | ||||
00000003 | ||||
000000030401 | ||||
000000030643 | ||||
000000030995 | ||||
000000031053 | ||||
000000031282 | ||||
000000031798 | ||||
000000031983 | ||||
000000032068 | ||||
000000032301 | ||||
000000032458 | ||||
000000032678 | ||||
000000032711 | ||||
000000033204 | ||||
000000033733 | ||||
000000033802 | ||||
000000033943 | ||||
000000034151 | ||||
000000034475 | ||||
000000035012 | ||||
000000035211 | ||||
000000035891 | ||||
000000036425 | ||||
000000036663 | ||||
000000036726 | ||||
000000036729 | ||||
000000036836 | ||||
000000037015 | ||||
000000037862 | ||||
000000038259 | ||||
000000038274 | ||||
000000038584 | ||||
000000038963 | ||||
000000039680 | ||||
000000040114 | ||||
000000040414 |
GSD-S: Glass Surface Detection – Semantics
GSD-S is a glass surface detection dataset augmented with per-pixel semantic labels, introduced in the NeurIPS 2022 paper "Exploiting Semantic Relations for Glass Surface Detection". Each sample pairs an RGB photograph with a binary glass mask and a 43-class semantic segmentation map, enabling joint glass detection and scene-semantic reasoning.
- Paper: Exploiting Semantic Relations for Glass Surface Detection — NeurIPS 2022
- Project page: https://jiaying.link/neurips2022-gsds/
- Authors: Jiaying Lin, Yuen-Hei Yeung, Rynson W.H. Lau (City University of Hong Kong)
Dataset Summary
| Split | Samples |
|---|---|
| train | 3,911 |
| test | 608 |
| total | 4,519 |
Images are 640 × 480 pixels (JPEG). All annotation maps are PNG.
Columns
| Column | Type | Description |
|---|---|---|
image_id |
string |
Original filename stem (e.g. 000000000711); use for round-trip fidelity |
image |
Image |
RGB photograph (.jpg) |
mask |
Image |
Binary glass mask — pixel values 0 (non-glass) or 255 (glass) |
seg |
Image |
Semantic segmentation map — pixel values 0–42 (class index) |
seg_colored |
Image |
False-color rendering of seg using the GSD-S palette (for visualization) |
Semantic classes (43 total)
unknown, wall, glass, floor, ceiling, door, chair, table, sofa,
cabinet, curtain, blinds, bedding, picture, light, clothes, counter,
sink, toilet, towel, mirror, tv, building_structure, stationery, plant,
person, fridge, bath_shower, seat, floor_mat, fence, ground, bottle,
kitchenware, road, transport, electronics, food, bag, nature, animal,
road_infrastructure, clock
The class-to-color mapping is available in the official repository at
utils/GSD-S_color_map.csv.
Loading the Dataset
from datasets import load_dataset
ds = load_dataset("garrying/GSD-S")
sample = ds["train"][0]
print(sample["image_id"]) # e.g. "000000000711"
sample["image"].show() # RGB photo
sample["mask"].show() # binary glass mask
sample["seg"].show() # semantic class indices
sample["seg_colored"].show() # false-color visualization
Converting Back to Raw Files
A conversion helper is bundled in this repository. Download and run it:
# Download the script
huggingface-cli download garrying/GSD-S parquet_to_raw.py --repo-type dataset --local-dir .
# Restore all splits to ./GSD-S/
python parquet_to_raw.py --repo garrying/GSD-S
# Or restore from a locally cached copy
python parquet_to_raw.py --local /path/to/local/cache
Output layout:
GSD-S/
train/
images/ # .jpg
masks/ # .png
segs/ # .png (class-index maps)
segs_colored/ # .png (false-color maps)
test/
...
Evaluation Metrics
The official evaluation protocol reports:
- IoU — Intersection over Union
- F-measure (Fβ, β² = 0.3) — weighted precision-recall
- MAE — Mean Absolute Error
- BER — Balanced Error Rate
Predictions and ground-truth masks are binarized at threshold 0.5 before computing all metrics.
Citation
@inproceedings{neurips2022:gsds2022,
title = {Exploiting Semantic Relations for Glass Surface Detection},
author = {Lin, Jiaying and Yeung, Yuen Hei and Lau, Rynson W.H.},
booktitle = {Advances in Neural Information Processing Systems (NeurIPS)},
year = {2022}
}
License
BSD 3-Clause License — non-commercial use only. See LICENSE for the full text. Please cite the paper if you use this dataset.
- Downloads last month
- 26