garrying/GSD-GlassNet
Updated
image_id stringlengths 5 78 | image imagewidth (px) 119 600 | mask imagewidth (px) 119 600 | reflections imagewidth (px) 119 600 | edge imagewidth (px) 119 600 |
|---|---|---|---|---|
-NgAM8OusRI | ||||
-fwmf0AkK7U | ||||
000000000715 | ||||
000000000730 | ||||
000000000987 | ||||
000000001176 | ||||
000000001347 | ||||
000000001518 | ||||
000000001586 | ||||
000000001762 | ||||
000000002639 | ||||
000000002639(2) | ||||
000000003442 | ||||
000000003640 | ||||
000000004578 | ||||
000000004587 | ||||
000000005359 | ||||
000000005830 | ||||
000000006357 | ||||
000000007214 | ||||
000000008064 | ||||
000000008204 | ||||
000000009774 | ||||
000000010275 | ||||
000000010342 | ||||
000000010714 | ||||
000000010877 | ||||
000000011244 | ||||
000000011703 | ||||
000000012109 | ||||
000000012494 | ||||
000000013547 | ||||
00838 | ||||
00885 | ||||
008_0001 | ||||
008_0028 | ||||
008_0101 | ||||
008_0198 | ||||
008_0199 | ||||
008_0213 | ||||
00954 | ||||
011_0040 | ||||
011_0082 | ||||
01739 | ||||
02780 | ||||
070f7621608935_560448c2bbe8e | ||||
099_0039 | ||||
0EBxuG6geHI | ||||
0TLId2pjnKk | ||||
0w86xpJCSC8 | ||||
10006131764_9077af1cd0_k | ||||
10040459403_dbe9fac941_k | ||||
10096727886_ca59e126d0_b | ||||
10227552294_0d0f4a63af_b | ||||
1028160974_71cbb855e6_b | ||||
10291923246_d8ad4881f6_k | ||||
10329280065_5763d19fab_k | ||||
1045221 | ||||
1045423244_eb965d4d3d_k | ||||
10499909383_33410df5fa_b | ||||
1050805819_238dbe7b77_b | ||||
1051826899_cf14dc8005_b | ||||
10576117255_150c7472b9_b | ||||
10576117784_db4e69d188_b | ||||
10576399123_64ab0693d6_b | ||||
10579653173_d50d8e1c0b_b | ||||
10597755064_7a9033a902_z | ||||
10620949745_c71624db90_b | ||||
10637050416_7c91daa2d9_k | ||||
109038254_3102907b29_h | ||||
109771443_baa0b82507_k | ||||
11150697114_40319243f5_b | ||||
11230531114_9730218206_k | ||||
11270633464_edec8b3b03_h | ||||
11334213384_80a82f3c54_k | ||||
11357103066_11e8a02ca7_c | ||||
11361600303_0c4ceb5a2f_z | ||||
11389540375_53a28658cc_b | ||||
1139091512_ef8b8b6c9a_z | ||||
114127433_5917db5d32_b | ||||
1167273302_72609b03dd_b | ||||
11758899643_92b0bf6fde_k | ||||
117683700_bd257f2833_b | ||||
117814326_556c4d8c6b_b | ||||
12181593464_94acfca733_b | ||||
12183999464_89f301b04b_k | ||||
12249759393_1eb7c1f6e1_k | ||||
12294875184_5a0b67b7e5_z | ||||
12296347084_09a181f64e_b | ||||
12321462144_b46cacd018_b | ||||
1242539014_e59c610894_b | ||||
12433548785_c6f17291ca_k | ||||
126661315_796d36497d_h | ||||
126994104_45f3bb64e7 | ||||
12705231293_4de6bf95ff_b | ||||
12705529874_749c85fa7a_b | ||||
12850837943_1aadeb9a19_k | ||||
12852691963_63024bbbf8_b | ||||
1293408135_1f8bd2fe5a_b | ||||
1293979871_2450a80172_k |
Dataset from the CVPR 2021 paper:
Rich Context Aggregation with Reflection Prior for Glass Surface Detection
Jiaying Lin, Zebang He, Rynson W.H. Lau
Proceedings of CVPR 2021
Project page: https://jiaying.link/cvpr2021-gsd/
GSD is a large-scale benchmark for glass surface detection in the wild. The dataset contains three splits:
| Split | Images | Masks | Reflections | Edges |
|---|---|---|---|---|
| train | 2,710 | 2,710 | 2,710 | 2,710 |
| extra | 579 | 579 | — | 579 |
| test | 813 | 813 | — | — |
glass_0001), unique within each splitNone otherwise)None for test)from datasets import load_dataset
ds = load_dataset("garrying/GSD")
sample = ds["train"][0]
sample["image_id"] # original filename stem, e.g. "glass_0001"
sample["image"] # PIL Image
sample["mask"] # PIL Image (binary mask)
sample["reflections"] # PIL Image (None for extra/test)
sample["edge"] # PIL Image (None for test)
A helper script parquet_to_raw.py is included in this repository to convert the dataset back to a folder of raw image files:
# download the script
huggingface-cli download garrying/GSD parquet_to_raw.py --repo-type dataset --local-dir .
# convert all splits to raw PNG files
python parquet_to_raw.py --repo garrying/GSD --out GSD
Output layout:
GSD/
train/ image/ mask/ reflections/ edge/ metadata.jsonl
extra/ image/ mask/ edge/ metadata.jsonl
test/ image/ mask/ metadata.jsonl
A pretrained GlassNet checkpoint (GSD.pth) is available in the companion model repository:
# download the checkpoint
huggingface-cli download garrying/GSD-GlassNet GSD.pth --local-dir .
# run inference
python infer.py
GlassNet uses a ResNeXt-101 backbone with:
@inproceedings{GSD:2021,
title = {Rich Context Aggregation with Reflection Prior for Glass Surface Detection},
author = {Lin, Jiaying and He, Zebang and Lau, Rynson W.H.},
booktitle = {Proc. CVPR},
year = {2021}
}