arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2312.03585cs.CVcs.AI
收藏

基础模型辅助的弱监督语义分割

Foundation Model Assisted Weakly Supervised Semantic Segmentation

Zhejiang University(浙江大学)

Xiaobo Yang, Xiaojin Gong

AI总结:

提出一种由CLIP与SAM驱动的由粗到细WSSS框架,通过可学习任务提示和SAMS模块生成高质量伪标签种子,在PASCAL VOC 2012上达到SOTA。

摘要:

本工作旨在利用预训练基础模型,例如对比语言-图像预训练(CLIP)和分割一切模型(SAM),以解决仅使用图像级标签的弱监督语义分割(WSSS)问题。为此,我们提出了一种基于CLIP和SAM的由粗到细框架,用于生成高质量分割种子。具体而言,我们构建了图像分类任务和种子分割任务,这两个任务由权重冻结的CLIP以及两组可学习的任务专用提示联合执行。我们设计了一个基于SAM的种子生成(SAMS)模块,并将其应用于每个任务,以产生粗略或精细的种子图。此外,我们设计了由图像级标签监督的多标签对比损失,以及由生成的粗略种子图监督的CAM激活损失。这些损失用于学习提示,而提示是我们框架中唯一需要学习的部分。一旦提示学习完成,我们将每张图像连同学习到的分割专用提示输入CLIP和SAMS模块,以生成高质量分割种子。这些种子充当伪标签,像其他两阶段WSSS方法一样用于训练现成的分割网络。实验表明,我们的方法在PASCAL VOC 2012上达到最先进性能,并在MS COCO 2014上取得具有竞争力的结果。代码可在https://github.com/HAL-42/FMA-WSSS.git获取。

英文摘要:

This work aims to leverage pre-trained foundation models, such as contrastive language-image pre-training (CLIP) and segment anything model (SAM), to address weakly supervised semantic segmentation (WSSS) using image-level labels. To this end, we propose a coarse-to-fine framework based on CLIP and SAM for generating high-quality segmentation seeds. Specifically, we construct an image classification task and a seed segmentation task, which are jointly performed by CLIP with frozen weights and two sets of learnable task-specific prompts. A SAM-based seeding (SAMS) module is designed and applied to each task to produce either coarse or fine seed maps. Moreover, we design a multi-label contrastive loss supervised by image-level labels and a CAM activation loss supervised by the generated coarse seed map. These losses are used to learn the prompts, which are the only parts need to be learned in our framework. Once the prompts are learned, we input each image along with the learned segmentation-specific prompts into CLIP and the SAMS module to produce high-quality segmentation seeds. These seeds serve as pseudo labels to train an off-the-shelf segmentation network like other two-stage WSSS methods. Experiments show that our method achieves the state-of-the-art performance on PASCAL VOC 2012 and competitive results on MS COCO 2014. Code is available at https://github.com/HAL-42/FMA-WSSS.git.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑