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

ClipSAM: 面向零样本异常分割的CLIP与SAM协作框架

ClipSAM: CLIP and SAM Collaboration for Zero-Shot Anomaly Segmentation

Fudan University(复旦大学)

Shengze Li, Jianjian Cao, Peng Ye, Yuhan Ding, Chongjun Tu, Tao Chen

AI总结:

针对现有CLIP、SAM类零样本异常分割方法的局部精度不足、掩码冗余问题,提出协作框架ClipSAM,通过UMCI模块定位异常、MMR模块精炼掩码,在两个基准数据集上取得最优分割性能。

摘要:

近年来,CLIP、SAM等基础模型在零样本异常分割(Zero-Shot Anomaly Segmentation, ZSAS)任务上展现出可观性能。但现有基于CLIP或SAM的ZSAS方法仍存在不可忽视的关键缺陷:1)CLIP主要关注不同输入间的全局特征对齐,导致局部异常区域的分割精度不足;2)SAM在缺乏合适提示约束的情况下易生成大量冗余掩码,需要复杂的后处理步骤。本文创新性地提出一种面向ZSAS的CLIP与SAM协作框架ClipSAM。其核心思路是利用CLIP的语义理解能力进行异常定位与粗略分割,再将该结果作为SAM的提示约束,以优化异常分割结果。具体而言,我们提出了关键的统一多尺度跨模态交互(Unified Multi-scale Cross-modal Interaction, UMCI)模块,用于在CLIP的多尺度视觉特征与语言特征间进行交互,以推理异常位置。随后,我们设计了新颖的多级掩码精炼(Multi-level Mask Refinement, MMR)模块,利用位置信息作为SAM的多级提示,获取分层级的掩码并进行融合。大量实验验证了所提方法的有效性,在MVTec-AD和VisA数据集上取得了最优的分割性能。

英文摘要:

Recently, foundational models such as CLIP and SAM have shown promising performance for the task of Zero-Shot Anomaly Segmentation (ZSAS). However, either CLIP-based or SAM-based ZSAS methods still suffer from non-negligible key drawbacks: 1) CLIP primarily focuses on global feature alignment across different inputs, leading to imprecise segmentation of local anomalous parts; 2) SAM tends to generate numerous redundant masks without proper prompt constraints, resulting in complex post-processing requirements. In this work, we innovatively propose a CLIP and SAM collaboration framework called ClipSAM for ZSAS. The insight behind ClipSAM is to employ CLIP's semantic understanding capability for anomaly localization and rough segmentation, which is further used as the prompt constraints for SAM to refine the anomaly segmentation results. In details, we introduce a crucial Unified Multi-scale Cross-modal Interaction (UMCI) module for interacting language with visual features at multiple scales of CLIP to reason anomaly positions. Then, we design a novel Multi-level Mask Refinement (MMR) module, which utilizes the positional information as multi-level prompts for SAM to acquire hierarchical levels of masks and merges them. Extensive experiments validate the effectiveness of our approach, achieving the optimal segmentation performance on the MVTec-AD and VisA datasets.

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

↑