[论文解读] Matcher: Segment Anything with One Shot Using All-Purpose Feature Matching
Matcher 是一个无需训练的框架,结合现成的视觉基础模型,从一个上下文示例即可对任意对象进行分割,在多任务上实现强劲的一拍和少拍分割,无需训练。
Powered by large-scale pre-training, vision foundation models exhibit significant potential in open-world image understanding. However, unlike large language models that excel at directly tackling various language tasks, vision foundation models require a task-specific model structure followed by fine-tuning on specific tasks. In this work, we present Matcher, a novel perception paradigm that utilizes off-the-shelf vision foundation models to address various perception tasks. Matcher can segment anything by using an in-context example without training. Additionally, we design three effective components within the Matcher framework to collaborate with these foundation models and unleash their full potential in diverse perception tasks. Matcher demonstrates impressive generalization performance across various segmentation tasks, all without training. For example, it achieves 52.7% mIoU on COCO-20$^i$ with one example, surpassing the state-of-the-art specialist model by 1.6%. In addition, Matcher achieves 33.0% mIoU on the proposed LVIS-92$^i$ for one-shot semantic segmentation, outperforming the state-of-the-art generalist model by 14.4%. Our visualization results further showcase the open-world generality and flexibility of Matcher when applied to images in the wild. Our code can be found at https://github.com/aim-uofa/Matcher.
研究动机与目标
- 在无需特定任务训练的情况下,推动使用视觉基础模型来完成多样化的感知任务。
- 利用参考图像及其掩模,通过上下文推理引导对目标图像的分割。
- 设计组件以实现跨图像鲁棒匹配及为 SAM 生成多样化提示。
- 在一-shot 和少-shot 的语义分割与物体部件分割中实现高度泛化,并扩展到视频对象分割。
提出的方法
- 使用现成的编码器(如 DINOv2)从参考图像和目标图像提取补丁级特征,并通过余弦相似度形成对应矩阵 S。
- 使用双向补丁匹配和掩模过滤,产生鲁棒的前向与反向对应并抑制离群值。
- 引入一个鲁棒的提示采样器,从匹配点生成部件级、实例级和全局级提示,以创建多样化的 SAM 提示。
- 在参考掩模与 SAM 派生的候选区域之间执行实例级匹配,使用最优运输(地球搬运距离)成本 C = 1/2(1−S),并加入纯度与覆盖度指标来对候选区域进行评分。
- 合并高质量掩模,并通过调整同一语义实例的合并掩模数量来产生可控输出。
- 所有步骤均设计为无需对底层模型进行训练。
实验结果
研究问题
- RQ1如何将视觉基础模型组合起来,在无需任务特定训练的情况下完成分割任务?
- RQ2上下文中的示例能否引导跨图像的语义匹配,在不同数据集上产生准确的掩模?
- RQ3哪些组件对把一个对类别无关的分割模型转变为通用感知系统是必不可少的?
- RQ4一-shot 和少-shot 分割在 COCO-20i、FSS-1000、LVIS-92i 等数据集上的泛化能力有多远?
- RQ5在不进行训练的情况下,将该方法扩展到视频对象分割是否可行?
主要发现
- Matcher 在 COCO-20i(one-shot)达到 52.7% 的平均 IoU,在 few-shot 时达到 60.7% 。
- Matcher 在 FSS-1000(one-shot)达到 87.0% 的平均 IoU,在 few-shot 时达到 89.6% 。
- Matcher 在 LVIS-92i(one-shot)达到 33.0% 的平均 IoU,在 few-shot 时达到 40.0% 。
- 与最新的专家模型和通用模型相比,Matcher 在所评估的数据集上显示出优越或具竞争力的性能。
- Matcher 在 COCO-20i、FSS-1000、和 LVIS-92i 上明显优于训练-free 的 PerSAM 与 PerSAM-F,表明汇集基础模型的价值高于仅依赖 SAM。
- 在视频对象分割中,Matcher 在无需训练的情况下也能提供有竞争力的结果,超越了一些使用非视频数据进行训练的模型。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。