Language-driven Semantic Segmentation

Boyi Li, Kilian Q. Weinberger, Serge Belongie, Vladlen Koltun, René Ranftl
1/10/2022
1,020 citations
cs.CVcs.CLcs.LG

Official code: isl-org/lang-seg (832 stars, Jupyter Notebook, MIT, last commit 2024-12-18).

Abstract

We present LSeg, a novel model for language-driven semantic image segmentation. LSeg uses a text encoder to compute embeddings of descriptive input labels (e.g., "grass" or "building") together with a transformer-based image encoder that computes dense per-pixel embeddings of the input image.

Show full abstract

The image encoder is trained with a contrastive objective to align pixel embeddings to the text embedding of the corresponding semantic class. The text embeddings provide a flexible label representation in which semantically similar labels map to similar regions in the embedding space (e.g., "cat" and "furry"). This allows LSeg to generalize to previously unseen categories at test time, without retraining or even requiring a single additional training sample. We demonstrate that our approach achieves highly competitive zero-shot performance compared to existing zero- and few-shot semantic segmentation methods, and even matches the accuracy of traditional segmentation algorithms when a fixed label set is provided. Code and demo are available at https://github.com/isl-org/lang-seg.

View on arXivView PDF

Code Implementations(1)

isl-org/lang-segOfficial100%
MIT

Language-Driven Semantic Segmentation

83299Jupyter Notebook, PythonNov 9, 20211 years agoMIT

Similar Papers

Cite this paper

@article{li2022languagedriven,
  title  = {Language-driven Semantic Segmentation},
  author = {Boyi Li and Kilian Q. Weinberger and Serge Belongie and Vladlen Koltun and René Ranftl},
  year   = {2022},
  eprint = {2201.03546},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2201.03546}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2201.03546.svg)](https://codeofpaper.com/paper/2201.03546)

Discussion