garrying/GSD
Viewer β’ Updated β’ 4.1k β’ 206 β’ 1
Pretrained checkpoint for GlassNet 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/
| File | Description |
|---|---|
GSD.pth |
GlassNet weights trained on the GSD training split |
import torch
from huggingface_hub import hf_hub_download
from model import GlassNet
ckpt = hf_hub_download("garrying/GSD-GlassNet", "GSD.pth")
net = GlassNet()
net.load_state_dict(torch.load(ckpt, map_location="cpu"))
net.eval()
For full inference code (data loading, CRF post-processing, saving outputs) see infer.py in the original release.
GlassNet uses a ResNeXt-101 backbone with:
The GSD dataset is available at garrying/GSD.
@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}
}