Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Pay Attention to Your Neighbours: Training-Free Open-Vocabulary Semantic Segmentation

About

Despite the significant progress in deep learning for dense visual recognition problems, such as semantic segmentation, traditional methods are constrained by fixed class sets. Meanwhile, vision-language foundation models, such as CLIP, have showcased remarkable effectiveness in numerous zero-shot image-level tasks, owing to their robust generalizability. Recently, a body of work has investigated utilizing these models in open-vocabulary semantic segmentation (OVSS). However, existing approaches often rely on impractical supervised pre-training or access to additional pre-trained networks. In this work, we propose a strong baseline for training-free OVSS, termed Neighbour-Aware CLIP (NACLIP), representing a straightforward adaptation of CLIP tailored for this scenario. Our method enforces localization of patches in the self-attention of CLIP's vision transformer which, despite being crucial for dense prediction tasks, has been overlooked in the OVSS literature. By incorporating design choices favouring segmentation, our approach significantly improves performance without requiring additional data, auxiliary pre-trained networks, or extensive hyperparameter tuning, making it highly practical for real-world applications. Experiments are performed on 8 popular semantic segmentation benchmarks, yielding state-of-the-art performance on most scenarios. Our code is publicly available at https://github.com/sinahmr/NACLIP.

Sina Hajimiri, Ismail Ben Ayed, Jose Dolz• 2024

Related benchmarks

TaskDatasetResultRank
Semantic segmentationADE20K (val)
mIoU17.4
2731
Semantic segmentationADE20K
mIoU19.1
936
Semantic segmentationCityscapes
mIoU3.23e+3
578
Semantic segmentationCityscapes (val)
mIoU35.5
332
Semantic segmentationCOCO Stuff
mIoU23.3
195
Semantic segmentationADE20K A-150
mIoU19.1
188
Semantic segmentationPascal Context 59
mIoU38.4
164
Semantic segmentationLoveDA
mIoU32.29
142
Semantic segmentationCOCO Stuff (val)
mIoU23.3
126
Semantic segmentationPASCAL-Context 59 class (val)
mIoU35.2
125
Showing 10 of 58 rows

Other info

Follow for update