Multi-scale and Cross-scale Contrastive Learning for Semantic Segmentation

Theodoros Pissas, Claudio S. Ravasio, Lyndon Da Cruz, Christos Bergeles
3/25/2022
cs.CV
contrastive-ssl

Official code: RViMLab/ECCV2022-multi-scale-and-cross-scale-contrastive-segmentation (33 stars, Python, last commit 2024-08-26).

Abstract

This work considers supervised contrastive learning for semantic segmentation. We apply contrastive learning to enhance the discriminative power of the multi-scale features extracted by semantic segmentation networks.

Show full abstract

Our key methodological insight is to leverage samples from the feature spaces emanating from multiple stages of a model's encoder itself requiring neither data augmentation nor online memory banks to obtain a diverse set of samples. To allow for such an extension we introduce an efficient and effective sampling process, that enables applying contrastive losses over the encoder's features at multiple scales. Furthermore, by first mapping the encoder's multi-scale representations to a common feature space, we instantiate a novel form of supervised local-global constraint by introducing cross-scale contrastive learning linking high-resolution local features to low-resolution global features. Combined, our multi-scale and cross-scale contrastive losses boost performance of various models (DeepLabV3, HRNet, OCRNet, UPerNet) with both CNN and Transformer backbones, when evaluated on 4 diverse datasets from natural (Cityscapes, PascalContext, ADE20K) but also surgical (CaDIS) domains. Our code is available at https://github.com/RViMLab/MS_CS_ContrSeg. datasets from natural (Cityscapes, PascalContext, ADE20K) but also surgical (CaDIS) domains.

View on arXivView PDF

Code Implementations(1)

Implementation of the methods described in "Multi-scale and Cross-scale Contrastive Learning for Semantic Segmentation", ECCV 2022

332PythonJul 11, 20222 years ago

Similar Papers

Cite this paper

@article{pissas2022multiscale,
  title  = {Multi-scale and Cross-scale Contrastive Learning for Semantic Segmentation},
  author = {Theodoros Pissas and Claudio S. Ravasio and Lyndon Da Cruz and Christos Bergeles},
  year   = {2022},
  eprint = {2203.13409},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.13409}
}

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

Discussion