SPCL: A New Framework for Domain Adaptive Semantic Segmentation via Semantic Prototype-based Contrastive Learning

Binhui Xie, Mingjia Li, Shuang Li
11/24/2021
cs.CV
contrastive-ssl

Official code: BinhuiXie/SPCL (11 stars, Python, MIT, last commit 2022-06-24).

Abstract

Although there is significant progress in supervised semantic segmentation, it remains challenging to deploy the segmentation models to unseen domains due to domain biases. Domain adaptation can help in this regard by transferring knowledge from a labeled source domain to an unlabeled target domain.

Show full abstract

Previous methods typically attempt to perform the adaptation on global features, however, the local semantic affiliations accounting for each pixel in the feature space are often ignored, resulting in less discriminability. To solve this issue, we propose a novel semantic prototype-based contrastive learning framework for fine-grained class alignment. Specifically, the semantic prototypes provide supervisory signals for per-pixel discriminative representation learning and each pixel of source and target domains in the feature space is required to reflect the content of the corresponding semantic prototype. In this way, our framework is able to explicitly make intra-class pixel representations closer and inter-class pixel representations further apart to improve the robustness of the segmentation model as well as alleviate the domain shift problem. Our method is easy to implement and attains superior results compared to state-of-the-art approaches, as is demonstrated with a number of experiments. The code is publicly available at https://github.com/BinhuiXie/SPCL.

View on arXivView PDF

Code Implementations(1)

BinhuiXie/SPCLOfficial100%
MIT

SPCL: A New Framework for Domain Adaptive Semantic Segmentation via Semantic Prototype-based Contrastive Learning https://arxiv.org/abs/2111.12358

111Python, ShellNov 25, 20214 years agoMIT

Similar Papers

Cite this paper

@article{xie2021spcl,
  title  = {SPCL: A New Framework for Domain Adaptive Semantic Segmentation via Semantic Prototype-based Contrastive Learning},
  author = {Binhui Xie and Mingjia Li and Shuang Li},
  year   = {2021},
  eprint = {2111.12358},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2111.12358}
}

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/2111.12358.svg)](https://codeofpaper.com/paper/2111.12358)

Discussion