[论文解读] Matte Anything: Interactive Natural Image Matting with Segment Anything Models
MatAny 使用 Segment Anything Model (SAM) 和开放词汇检测器(GroundingDINO)为图像抠图生成伪 trimap,使交互式、无需训练、在最少用户输入和 refining 步骤下获得高质量 alpha matting。
Natural image matting algorithms aim to predict the transparency map (alpha-matte) with the trimap guidance. However, the production of trimap often requires significant labor, which limits the widespread application of matting algorithms on a large scale. To address the issue, we propose Matte Anything (MatAny), an interactive natural image matting model that could produce high-quality alpha-matte with various simple hints. The key insight of MatAny is to generate pseudo trimap automatically with contour and transparency prediction. In our work, we leverage vision foundation models to enhance the performance of natural image matting. Specifically, we use the segment anything model to predict high-quality contour with user interaction and an open-vocabulary detector to predict the transparency of any object. Subsequently, a pre-trained image matting model generates alpha mattes with pseudo trimaps. MatAny is the interactive matting algorithm with the most supported interaction methods and the best performance to date. It consists of orthogonal vision models without any additional training. We evaluate the performance of MatAny against several current image matting algorithms. MatAny has 58.3% improvement on MSE and 40.6% improvement on SAD compared to the previous image matting methods with simple guidance, achieving new state-of-the-art (SOTA) performance. The source codes and pre-trained models are available at https://github.com/hustvl/Matte-Anything.
研究动机与目标
- 通过利用基础视觉模型,减少自然图像抠图中对 trimap 的人工劳动。
- 证明从分割和目标检测中获得的伪 trimap 可以在无需额外训练的情况下驱动高质量抠图。
- 展示通过简单的用户输入(点、框、涂鸦、文本)进行交互式 refinement 以改进结果。
- 在合成和真实世界数据集上评估泛化能力,并与领先的抠图方法比较。
提出的方法
- 使用 Segment Anything Model (SAM) 在用户交互下获得高质量的实例掩码。
- 采用 GroundingDINO 作为开放词汇检测器来识别并文本提示潜在的透明对象。
- 从 SAM 掩码和透明度预测生成伪 trimap,先应用腐蚀/膨胀创建基本 trimap,再通过透明度校正策略进行 refinement。
- 将原始图像和伪 trimap 送入预训练抠图模型(ViTMatte)以预测 alpha matting,无需额外训练。
- 允许用户通过简单点击来修正透明度预测,改进误识别的透明区域的抠图。
实验结果
研究问题
- RQ1一个完全互动、无需训练的抠图系统能否通过将基础模型(SAM、OV 检测器)与预训练抠图模型组合来实现具有竞争力的结果?
- RQ2从分割与透明度检测生成的伪 trimap 在引导抠图方面在多数据集上的有效性如何?
- RQ3需要怎样的用户交互水平才能将结果改进到标准抠图基准的最先进水平?
- RQ4相较于传统的基于 trimap 的方法,该方法在真实世界和类特定抠图场景(人、动物、透明对象)中的泛化能力有多好?
主要发现
- MatAny 在 Composition-1k 上表现出色,超越其他基于 x 指导的抠图方法,并在 refined 后与基于 trimap 的抠图保持竞争力。
- GroundingDINO 的透明度预测影响很大但可能引入错误;单击更正能带来显著改善(MatAny vs. MatAny† 显示出大量 SAD/MSE 的提升)。
- 所提出的伪 trimap 策略实现了在最少用户输入且无需额外训练的情况下的高质量抠图。
- MatAny 在 AIM-500 与真实世界的类特定数据集(AM-2k、P3M-500)上展现出与最先进方法的竞争力,且在无 trimap 和基于 trimap 的方法之间均衡表现。
- 系统支持广泛的交互形式(点、框、涂鸦、文本),并可快速 refined,在 x-guided 方法中达到顶尖水平。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。