arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.09057cs.CV
收藏

视觉-语言上下文学习驱动的少样本视觉检测模型

Vision-Language In-Context Learning Driven Few-Shot Visual Inspection Model

Graduate School of Advanced Science and Engineering, Hiroshima University(广岛大学先端科学与研究生院)

Shiryu Ueno, Yoshikazu Hayashi, Shunsuke Nakatsuka, Yusei Yamada, Hiroaki Aizawa, Kunihito Kato

AI总结:

针对现有视觉-语言模型(VLM)未针对视觉检测任务训练的问题,提出基于VLM微调结合上下文学习的少样本视觉检测模型,无需大量样本重训,在MVTec AD单样本检测中MCC达0.804、F1-score达0.950。

摘要:

我们提出了一种通用视觉检测模型,该模型使用视觉-语言模型(VLM),并结合非缺陷或缺陷产品的少样本图像以及作为检测标准的解释性文本。尽管现有VLM在各类任务中表现出高性能,但它们并未针对视觉检测等特定任务进行训练。因此,我们构建了一个数据集,包含从网络收集的多种非缺陷和缺陷产品图像,以及统一格式的输出文本,并对VLM进行微调。对于新产品,我们的方法采用上下文学习,让模型通过非缺陷或缺陷图像示例、相应解释性文本及视觉提示进行检测。该方法无需为每种产品收集大量训练样本和重新训练模型。实验结果显示,我们的方法在MVTec AD上以单样本方式实现了高性能,MCC为0.804,F1-score为0.950。我们的代码可在https://github.com/ia-gu/Vision-Language-In-Context-Learning-Driven-Few-Shot-Visual-Inspection-Model获取。

英文摘要:

We propose general visual inspection model using Vision-Language Model~(VLM) with few-shot images of non-defective or defective products, along with explanatory texts that serve as inspection criteria. Although existing VLM exhibit high performance across various tasks, they are not trained on specific tasks such as visual inspection. Thus, we construct a dataset consisting of diverse images of non-defective and defective products collected from the web, along with unified formatted output text, and fine-tune VLM. For new products, our method employs In-Context Learning, which allows the model to perform inspections with an example of non-defective or defective image and the corresponding explanatory texts with visual prompts. This approach eliminates the need to collect a large number of training samples and re-train the model for each product. The experimental results show that our method achieves high performance, with MCC of 0.804 and F1-score of 0.950 on MVTec AD in a one-shot manner. Our code is available at~https://github.com/ia-gu/Vision-Language-In-Context-Learning-Driven-Few-Shot-Visual-Inspection-Model.

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

↑