Semantic Segmentation of Transparent and Opaque Drinking Glasses with the Help of Zero-shot Learning
Annalena Blänsdorf, Tristan Wirth, Arne Rak, Thomas Pöllabauer, Volker Knauthe, Arjan Kuijper
TL;DR
This work tackles the challenge of semantically segmenting transparent drinking glasses, a task difficult due to background blending and varying viewpoints. It introduces TransCaGNet, a zero-shot segmentation model that replaces CaGNet's backbone with Trans4Trans to better handle transparency, and leverages semantic embeddings to enable unseen-class segmentation. A novel synthetic dataset of 7,000 images and a real-world 225-image evaluation set, along with a merging strategy and integration of SAM 2, constitute the key contributions, yielding up to 13.68% improvement in mean IoU and 17.88% in mean accuracy on synthetic data, and improved real-world transfer (IoU up to 5.55%, accuracy up to 5.72%). The approach demonstrates practical impact for robotic perception and accessibility tooling by enabling more robust segmentation of transparent objects under diverse conditions.
Abstract
Segmenting transparent structures in images is challenging since they are difficult to distinguish from the background. Common examples are drinking glasses, which are a ubiquitous part of our lives and appear in many different shapes and sizes. In this work we propose TransCaGNet, a modified version of the zero-shot model CaGNet. We exchange the segmentation backbone with the architecture of Trans4Trans to be capable of segmenting transparent objects. Since some glasses are rarely captured, we use zeroshot learning to be able to create semantic segmentations of glass categories not given during training. We propose a novel synthetic dataset covering a diverse set of different environmental conditions. Additionally we capture a real-world evaluation dataset since most applications take place in the real world. Comparing our model with Zeg-Clip we are able to show that TransCaGNet produces better mean IoU and accuracy values while ZegClip outperforms it mostly for unseen classes. To improve the segmentation results, we combine the semantic segmentation of the models with the segmentation results of SAM 2. Our evaluation emphasizes that distinguishing between different classes is challenging for the models due to similarity, points of view, or coverings. Taking this behavior into account, we assign glasses multiple possible categories. The modification leads to an improvement up to 13.68% for the mean IoU and up to 17.88% for the mean accuracy values on the synthetic dataset. Using our difficult synthetic dataset for training, the models produce even better results on the real-world dataset. The mean IoU is improved up to 5.55% and the mean accuracy up to 5.72% on the real-world dataset.
