arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2406.00625cs.CV
收藏

SAM-LAD:Segment Anything Model 邂逅零样本逻辑异常检测

SAM-LAD: Segment Anything Model Meets Zero-Shot Logic Anomaly Detection

Shanghai Institute of Intelligent Science and Technology, College of Electronics and Information Engineering, Tongji University(同济大学电子与信息工程学院上海智能科学技术研究院)

Yun Peng, Xiao Lin, Nachuan Ma, Jiayuan Du, Chuangwei Liu, Chengju Liu, Qijun Chen

AI总结:

本文提出零样本即插即用框架 SAM-LAD,结合 SAM、对象匹配、DCGA 与异常度量模型,在多个工业和逻辑数据集上实现优于现有 SoTA 的逻辑及结构异常检测。

摘要:

视觉异常检测在工业缺陷检测和医学诊断等实际应用中至关重要。然而,现有大多数方法聚焦于局部结构异常,无法检测逻辑条件下更高层次的功能异常。尽管近期研究已探索逻辑异常检测,但它们只能处理缺失或新增等简单异常,并且由于高度依赖数据驱动而表现出较差的泛化能力。为填补这一空白,我们提出 SAM-LAD,这是一种用于任意场景逻辑异常检测的零样本、即插即用框架。首先,我们使用预训练骨干网络获取查询图像的特征图。同时,通过对查询图像进行最近邻搜索,检索参考图像及其相应特征图。随后,我们引入 Segment Anything Model(SAM)以获取查询图像和参考图像的对象掩码。将每个对象掩码与整幅图像的特征图相乘,得到对象特征图。接下来,提出对象匹配模型(Object Matching Model,OMM),用于匹配查询图像和参考图像中的对象。为促进对象匹配,我们进一步提出动态通道图注意力(Dynamic Channel Graph Attention,DCGA)模块,将每个对象视为一个关键点,并把其特征图转换为特征向量。最后,基于对象匹配关系,提出异常度量模型(Anomaly Measurement Model,AMM),以检测存在逻辑异常的对象。该模型还可以检测对象内部的结构异常。我们使用多种基准验证所提出的 SAM-LAD,包括工业数据集(MVTec Loco AD、MVTec AD)以及逻辑数据集(DigitAnatomy)。大量实验结果表明,SAM-LAD 优于现有 SoTA 方法,尤其是在检测逻辑异常方面。

英文摘要:

Visual anomaly detection is vital in real-world applications, such as industrial defect detection and medical diagnosis. However, most existing methods focus on local structural anomalies and fail to detect higher-level functional anomalies under logical conditions. Although recent studies have explored logical anomaly detection, they can only address simple anomalies like missing or addition and show poor generalizability due to being heavily data-driven. To fill this gap, we propose SAM-LAD, a zero-shot, plug-and-play framework for logical anomaly detection in any scene. First, we obtain a query image's feature map using a pre-trained backbone. Simultaneously, we retrieve the reference images and their corresponding feature maps via the nearest neighbor search of the query image. Then, we introduce the Segment Anything Model (SAM) to obtain object masks of the query and reference images. Each object mask is multiplied with the entire image's feature map to obtain object feature maps. Next, an Object Matching Model (OMM) is proposed to match objects in the query and reference images. To facilitate object matching, we further propose a Dynamic Channel Graph Attention (DCGA) module, treating each object as a keypoint and converting its feature maps into feature vectors. Finally, based on the object matching relations, an Anomaly Measurement Model (AMM) is proposed to detect objects with logical anomalies. Structural anomalies in the objects can also be detected. We validate our proposed SAM-LAD using various benchmarks, including industrial datasets (MVTec Loco AD, MVTec AD), and the logical dataset (DigitAnatomy). Extensive experimental results demonstrate that SAM-LAD outperforms existing SoTA methods, particularly in detecting logical anomalies.

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

↑