Contrastive Enhancement Using Latent Prototype for Few-Shot Segmentation

Xiaoyu Zhao, Xiaoqian Chen, Zhiqiang Gong, Wen Yao, Yunyang Zhang +1 more
3/8/2022
cs.CVcs.AI

Official code: zhaoxiaoyu1995/CELP-Pytorch (9 stars, Python, Apache-2.0, last commit 2022-03-09).

Abstract

Few-shot segmentation enables the model to recognize unseen classes with few annotated examples. Most existing methods adopt prototype learning architecture, where support prototype vectors are expanded and concatenated with query features to perform conditional segmentation.

Show full abstract

However, such framework potentially focuses more on query features while may neglect the similarity between support and query features. This paper proposes a contrastive enhancement approach using latent prototypes to leverage latent classes and raise the utilization of similarity information between prototype and query features. Specifically, a latent prototype sampling module is proposed to generate pseudo-mask and novel prototypes based on features similarity. The module conveniently conducts end-to-end learning and has no strong dependence on clustering numbers like cluster-based method. Besides, a contrastive enhancement module is developed to drive models to provide different predictions with the same query features. Our method can be used as an auxiliary module to flexibly integrate into other baselines for a better segmentation performance. Extensive experiments show our approach remarkably improves the performance of state-of-the-art methods for 1-shot and 5-shot segmentation, especially outperforming baseline by 5.9% and 7.3% for 5-shot task on Pascal-5^i and COCO-20^i. Source code is available at https://github.com/zhaoxiaoyu1995/CELP-Pytorch

View on arXivView PDF

Code Implementations(1)

Apache-2.0

This is a PyTorch implementation of CELP for few-shot segmentation

93Python, CudaMar 8, 20224 years agoApache-2.0

Similar Papers

Cite this paper

@article{zhao2022contrastive,
  title  = {Contrastive Enhancement Using Latent Prototype for Few-Shot Segmentation},
  author = {Xiaoyu Zhao and Xiaoqian Chen and Zhiqiang Gong and Wen Yao and Yunyang Zhang and Xiaohu Zheng},
  year   = {2022},
  eprint = {2203.04095},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.04095}
}

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

Discussion