Datasets:
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,30 +1,140 @@
|
|
| 1 |
---
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
-
|
| 7 |
-
|
| 8 |
-
-
|
| 9 |
-
|
| 10 |
-
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
splits:
|
| 15 |
-
- name: train
|
| 16 |
-
num_bytes: 683594277
|
| 17 |
-
num_examples: 3911
|
| 18 |
-
- name: test
|
| 19 |
-
num_bytes: 63527420
|
| 20 |
-
num_examples: 608
|
| 21 |
-
download_size: 597110534
|
| 22 |
-
dataset_size: 747121697
|
| 23 |
-
configs:
|
| 24 |
-
- config_name: default
|
| 25 |
-
data_files:
|
| 26 |
-
- split: train
|
| 27 |
-
path: data/train-*
|
| 28 |
-
- split: test
|
| 29 |
-
path: data/test-*
|
| 30 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
license: other
|
| 3 |
+
license_name: bsd-3-clause-non-commercial
|
| 4 |
+
license_link: https://github.com/Mhaiyang/NeurIPS2022_GlassSemNet/blob/main/LICENSE
|
| 5 |
+
task_categories:
|
| 6 |
+
- image-segmentation
|
| 7 |
+
tags:
|
| 8 |
+
- glass-surface-detection
|
| 9 |
+
- semantic-segmentation
|
| 10 |
+
- scene-understanding
|
| 11 |
+
pretty_name: GSD-S (Glass Surface Detection – Semantics)
|
| 12 |
+
size_categories:
|
| 13 |
+
- 1K<n<10K
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
---
|
| 15 |
+
|
| 16 |
+
# GSD-S: Glass Surface Detection – Semantics
|
| 17 |
+
|
| 18 |
+
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"**.
|
| 19 |
+
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.
|
| 20 |
+
|
| 21 |
+
- **Paper:** [Exploiting Semantic Relations for Glass Surface Detection](https://openreview.net/forum?id=WrIrYMCZgbb) — NeurIPS 2022
|
| 22 |
+
- **Project page:** https://jiaying.link/neurips2022-gsds/
|
| 23 |
+
- **Authors:** Jiaying Lin, Yuen-Hei Yeung, Rynson W.H. Lau (City University of Hong Kong)
|
| 24 |
+
|
| 25 |
+
---
|
| 26 |
+
|
| 27 |
+
## Dataset Summary
|
| 28 |
+
|
| 29 |
+
| Split | Samples |
|
| 30 |
+
|-------|---------|
|
| 31 |
+
| train | 3,911 |
|
| 32 |
+
| test | 608 |
|
| 33 |
+
| **total** | **4,519** |
|
| 34 |
+
|
| 35 |
+
Images are 640 × 480 pixels (JPEG). All annotation maps are PNG.
|
| 36 |
+
|
| 37 |
+
---
|
| 38 |
+
|
| 39 |
+
## Columns
|
| 40 |
+
|
| 41 |
+
| Column | Type | Description |
|
| 42 |
+
|--------|------|-------------|
|
| 43 |
+
| `image_id` | `string` | Original filename stem (e.g. `000000000711`); use for round-trip fidelity |
|
| 44 |
+
| `image` | `Image` | RGB photograph (.jpg) |
|
| 45 |
+
| `mask` | `Image` | Binary glass mask — pixel values 0 (non-glass) or 255 (glass) |
|
| 46 |
+
| `seg` | `Image` | Semantic segmentation map — pixel values 0–42 (class index) |
|
| 47 |
+
| `seg_colored` | `Image` | False-color rendering of `seg` using the GSD-S palette (for visualization) |
|
| 48 |
+
|
| 49 |
+
### Semantic classes (43 total)
|
| 50 |
+
|
| 51 |
+
`unknown`, `wall`, `glass`, `floor`, `ceiling`, `door`, `chair`, `table`, `sofa`,
|
| 52 |
+
`cabinet`, `curtain`, `blinds`, `bedding`, `picture`, `light`, `clothes`, `counter`,
|
| 53 |
+
`sink`, `toilet`, `towel`, `mirror`, `tv`, `building_structure`, `stationery`, `plant`,
|
| 54 |
+
`person`, `fridge`, `bath_shower`, `seat`, `floor_mat`, `fence`, `ground`, `bottle`,
|
| 55 |
+
`kitchenware`, `road`, `transport`, `electronics`, `food`, `bag`, `nature`, `animal`,
|
| 56 |
+
`road_infrastructure`, `clock`
|
| 57 |
+
|
| 58 |
+
The class-to-color mapping is available in the official repository at
|
| 59 |
+
`utils/GSD-S_color_map.csv`.
|
| 60 |
+
|
| 61 |
+
---
|
| 62 |
+
|
| 63 |
+
## Loading the Dataset
|
| 64 |
+
|
| 65 |
+
```python
|
| 66 |
+
from datasets import load_dataset
|
| 67 |
+
|
| 68 |
+
ds = load_dataset("garrying/GSD-S")
|
| 69 |
+
sample = ds["train"][0]
|
| 70 |
+
|
| 71 |
+
print(sample["image_id"]) # e.g. "000000000711"
|
| 72 |
+
sample["image"].show() # RGB photo
|
| 73 |
+
sample["mask"].show() # binary glass mask
|
| 74 |
+
sample["seg"].show() # semantic class indices
|
| 75 |
+
sample["seg_colored"].show() # false-color visualization
|
| 76 |
+
```
|
| 77 |
+
|
| 78 |
+
---
|
| 79 |
+
|
| 80 |
+
## Converting Back to Raw Files
|
| 81 |
+
|
| 82 |
+
A conversion helper is bundled in this repository. Download and run it:
|
| 83 |
+
|
| 84 |
+
```bash
|
| 85 |
+
# Download the script
|
| 86 |
+
huggingface-cli download garrying/GSD-S parquet_to_raw.py --repo-type dataset --local-dir .
|
| 87 |
+
|
| 88 |
+
# Restore all splits to ./GSD-S/
|
| 89 |
+
python parquet_to_raw.py --repo garrying/GSD-S
|
| 90 |
+
|
| 91 |
+
# Or restore from a locally cached copy
|
| 92 |
+
python parquet_to_raw.py --local /path/to/local/cache
|
| 93 |
+
```
|
| 94 |
+
|
| 95 |
+
Output layout:
|
| 96 |
+
|
| 97 |
+
```
|
| 98 |
+
GSD-S/
|
| 99 |
+
train/
|
| 100 |
+
images/ # .jpg
|
| 101 |
+
masks/ # .png
|
| 102 |
+
segs/ # .png (class-index maps)
|
| 103 |
+
segs_colored/ # .png (false-color maps)
|
| 104 |
+
test/
|
| 105 |
+
...
|
| 106 |
+
```
|
| 107 |
+
|
| 108 |
+
---
|
| 109 |
+
|
| 110 |
+
## Evaluation Metrics
|
| 111 |
+
|
| 112 |
+
The official evaluation protocol reports:
|
| 113 |
+
|
| 114 |
+
- **IoU** — Intersection over Union
|
| 115 |
+
- **F-measure** (Fβ, β² = 0.3) — weighted precision-recall
|
| 116 |
+
- **MAE** — Mean Absolute Error
|
| 117 |
+
- **BER** — Balanced Error Rate
|
| 118 |
+
|
| 119 |
+
Predictions and ground-truth masks are binarized at threshold 0.5 before computing all metrics.
|
| 120 |
+
|
| 121 |
+
---
|
| 122 |
+
|
| 123 |
+
## Citation
|
| 124 |
+
|
| 125 |
+
```bibtex
|
| 126 |
+
@inproceedings{neurips2022:gsds2022,
|
| 127 |
+
title = {Exploiting Semantic Relations for Glass Surface Detection},
|
| 128 |
+
author = {Lin, Jiaying and Yeung, Yuen Hei and Lau, Rynson W.H.},
|
| 129 |
+
booktitle = {Advances in Neural Information Processing Systems (NeurIPS)},
|
| 130 |
+
year = {2022}
|
| 131 |
+
}
|
| 132 |
+
```
|
| 133 |
+
|
| 134 |
+
---
|
| 135 |
+
|
| 136 |
+
## License
|
| 137 |
+
|
| 138 |
+
BSD 3-Clause License — **non-commercial use only**.
|
| 139 |
+
See [LICENSE](https://github.com/Mhaiyang/NeurIPS2022_GlassSemNet/blob/main/LICENSE) for the full text.
|
| 140 |
+
Please cite the paper if you use this dataset.
|