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

CLIP也是一种有效的分割器:一种文本驱动的弱监督语义分割方法

CLIP is Also an Efficient Segmenter: A Text-Driven Approach for Weakly Supervised Semantic Segmentation

Zhejiang University(浙江大学);Fullong Technology(福隆科技)

Yuqi Lin, Minghao Chen, Wenxiao Wang, Boxi Wu, Ke Li, Binbin Lin, Haifeng Liu, Xiaofei He

摘要:

基于图像标签的弱监督语义分割是一项具有挑战性的任务。主流办法遵循多阶段框架,培训费用高。在本文中,我们探索了对比图像预训练模型(CLIP)的潜力,仅用图像级标签定位不同的类别,而无需进一步的训练。为了有效地从CLIP生成高质量的分割掩模,我们提出了一种新的WSSS框架,称为CLIP-ES。我们的框架通过对CLIP的特殊设计改进了WSSS的所有三个阶段:1)我们将softmax函数引入GradCAM,并利用CLIP的zero-shot能力来抑制非目标类和背景引起的混淆。同时,为了充分利用CLIP的优势,我们重新探索了WSSS设置下的文本输入,并定制了两个文本驱动策略:基于锐度的提示选择和同义词融合。2)为了简化CAM细化的阶段,我们提出了一个实时类感知的基于注意力的亲和力(CAA)模块的基础上固有的多头自我注意力(MHSA)在CLIP-ViTs。3)当使用CLIP生成的掩码训练最终的分割模型时,我们引入了置信度引导损失(CGL)聚焦于置信区域。我们的CLIP-ES在Pascal VOC 2012和MS COCO 2014上实现了SOTA性能,而伪掩模生成只需要以前方法的10%时间。代码可在https://github.com/linyq2117/CLIP-ES上获得。

英文摘要:

Weakly supervised semantic segmentation (WSSS) with image-level labels is a challenging task. Mainstream approaches follow a multi-stage framework and suffer from high training costs. In this paper, we explore the potential of Contrastive Language-Image Pre-training models (CLIP) to localize different categories with only image-level labels and without further training. To efficiently generate high-quality segmentation masks from CLIP, we propose a novel WSSS framework called CLIP-ES. Our framework improves all three stages of WSSS with special designs for CLIP: 1) We introduce the softmax function into GradCAM and exploit the zero-shot ability of CLIP to suppress the confusion caused by non-target classes and backgrounds. Meanwhile, to take full advantage of CLIP, we re-explore text inputs under the WSSS setting and customize two text-driven strategies: sharpness-based prompt selection and synonym fusion. 2) To simplify the stage of CAM refinement, we propose a real-time class-aware attention-based affinity (CAA) module based on the inherent multi-head self-attention (MHSA) in CLIP-ViTs. 3) When training the final segmentation model with the masks generated by CLIP, we introduced a confidence-guided loss (CGL) focus on confident regions. Our CLIP-ES achieves SOTA performance on Pascal VOC 2012 and MS COCO 2014 while only taking 10% time of previous methods for the pseudo mask generation. Code is available at https://github.com/linyq2117/CLIP-ES.

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

↑