Universal Weakly Supervised Segmentation by Pixel-to-Segment Contrastive Learning

Tsung-Wei Ke, Jyh-Jing Hwang, Stella X. Yu
5/3/2021
cs.CV
contrastive-ssl

Official code: twke18/SPML (106 stars, Python, MIT, last commit 2024-06-04).

Abstract

Weakly supervised segmentation requires assigning a label to every pixel based on training instances with partial annotations such as image-level tags, object bounding boxes, labeled points and scribbles. This task is challenging, as coarse annotations (tags, boxes) lack precise pixel localization whereas sparse annotations (points, scribbles) lack broad region coverage.

Show full abstract

Existing methods tackle these two types of weak supervision differently: Class activation maps are used to localize coarse labels and iteratively refine the segmentation model, whereas conditional random fields are used to propagate sparse labels to the entire image. We formulate weakly supervised segmentation as a semi-supervised metric learning problem, where pixels of the same (different) semantics need to be mapped to the same (distinctive) features. We propose 4 types of contrastive relationships between pixels and segments in the feature space, capturing low-level image similarity, semantic annotation, co-occurrence, and feature affinity They act as priors; the pixel-wise feature can be learned from training images with any partial annotations in a data-driven fashion. In particular, unlabeled pixels in training images participate not only in data-driven grouping within each image, but also in discriminative feature learning within and across images. We deliver a universal weakly supervised segmenter with significant gains on Pascal VOC and DensePose. Our code is publicly available at https://github.com/twke18/SPML.

View on arXivView PDF

Code Implementations(1)

twke18/SPMLOfficial100%
MIT

Universal Weakly Supervised Segmentation by Pixel-to-Segment Contrastive Learning

10627Python, ShellMar 22, 20212 years agoMIT
computer-visiondeep-learningmetric-learningsemantic-segmentationweakly-supervised-learning

Similar Papers

Cite this paper

@article{ke2021universal,
  title  = {Universal Weakly Supervised Segmentation by Pixel-to-Segment Contrastive Learning},
  author = {Tsung-Wei Ke and Jyh-Jing Hwang and Stella X. Yu},
  year   = {2021},
  eprint = {2105.00957},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2105.00957}
}

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

Discussion