Semantic Distribution-aware Contrastive Adaptation for Semantic Segmentation

Shuang Li, Binhui Xie, Bin Zang, Chi Harold Liu, Xinjing Cheng +2 more
5/11/2021
cs.CV
contrastive-ssl

Official code: BIT-DA/SDCA (38 stars, Python, PyTorch, last commit 2022-04-27).

Abstract

Domain adaptive semantic segmentation refers to making predictions on a certain target domain with only annotations of a specific source domain. Current state-of-the-art works suggest that performing category alignment can alleviate domain shift reasonably.

Show full abstract

However, they are mainly based on image-to-image adversarial training and little consideration is given to semantic variations of an object among images, failing to capture a comprehensive picture of different categories. This motivates us to explore a holistic representative, the semantic distribution from each category in source domain, to mitigate the problem above. In this paper, we present semantic distribution-aware contrastive adaptation algorithm that enables pixel-wise representation alignment under the guidance of semantic distributions. Specifically, we first design a pixel-wise contrastive loss by considering the correspondences between semantic distributions and pixel-wise representations from both domains. Essentially, clusters of pixel representations from the same category should cluster together and those from different categories should spread out. Next, an upper bound on this formulation is derived by involving the learning of an infinite number of (dis)similar pairs, making it efficient. Finally, we verify that SDCA can further improve segmentation accuracy when integrated with the self-supervised learning. We evaluate SDCA on multiple benchmarks, achieving considerable improvements over existing algorithms.The code is publicly available at https://github.com/BIT-DA/SDCA

View on arXivView PDF

Code Implementations(1)

BIT-DA/SDCAOfficial100%
PyTorch

Official Implementation of Semantic Distribution-aware Contrastive Adaptation for Semantic Segmentation https://arxiv.org/abs/2105.05013

386Python, ShellApr 29, 20214 years ago
contrastive-context-informationdomain-adaptationpytorchsemantic-segmentation

Similar Papers

Cite this paper

@article{li2021semantic,
  title  = {Semantic Distribution-aware Contrastive Adaptation for Semantic Segmentation},
  author = {Shuang Li and Binhui Xie and Bin Zang and Chi Harold Liu and Xinjing Cheng and Ruigang Yang and Guoren Wang},
  year   = {2021},
  eprint = {2105.05013},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2105.05013}
}

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

Discussion