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

高质量分割任意物体

Segment Anything in High Quality

HKUST(香港科技大学);ETH Zürich(苏黎世联邦理工学院);Dartmouth College(达特茅斯学院)

Lei Ke, Mingqiao Ye, Martin Danelljan, Yifan Liu, Yu-Wing Tai, Chi-Keung Tang, Fisher Yu

AI总结:

提出HQ-SAM,通过引入高质量输出令牌和特征融合,在保持SAM零样本能力的同时显著提升掩膜预测质量。

摘要:

最近的Segment Anything Model (SAM)在扩展分割模型方面迈出了一大步,允许实现强大的零样本能力和灵活的提示。尽管SAM使用11亿个掩膜进行训练,但在许多情况下其掩膜预测质量仍然不足,特别是在处理具有复杂结构的物体时。我们提出HQ-SAM,赋予SAM准确分割任意物体的能力,同时保持SAM原始的可提示设计、效率和零样本泛化性。我们的精心设计重用并保留了SAM的预训练模型权重,仅引入最少的额外参数和计算量。我们设计了一个可学习的高质量输出令牌,将其注入SAM的掩膜解码器中,负责预测高质量掩膜。我们不仅将其应用于掩膜解码器特征,还首先将其与早期和最终的ViT特征融合,以改善掩膜细节。为训练引入的可学习参数,我们从多个来源构建了一个包含44K细粒度掩膜的数据集。HQ-SAM仅在此引入的44K掩膜数据集上训练,在8个GPU上仅需4小时。我们在10个不同分割数据集上验证了HQ-SAM的有效性,涵盖不同下游任务,其中8个在零样本迁移协议下评估。代码和预训练模型位于https://github.com/SysCV/SAM-HQ。

英文摘要:

The recent Segment Anything Model (SAM) represents a big leap in scaling up segmentation models, allowing for powerful zero-shot capabilities and flexible prompting. Despite being trained with 1.1 billion masks, SAM's mask prediction quality falls short in many cases, particularly when dealing with objects that have intricate structures. We propose HQ-SAM, equipping SAM with the ability to accurately segment any object, while maintaining SAM's original promptable design, efficiency, and zero-shot generalizability. Our careful design reuses and preserves the pre-trained model weights of SAM, while only introducing minimal additional parameters and computation. We design a learnable High-Quality Output Token, which is injected into SAM's mask decoder and is responsible for predicting the high-quality mask. Instead of only applying it on mask-decoder features, we first fuse them with early and final ViT features for improved mask details. To train our introduced learnable parameters, we compose a dataset of 44K fine-grained masks from several sources. HQ-SAM is only trained on the introduced detaset of 44k masks, which takes only 4 hours on 8 GPUs. We show the efficacy of HQ-SAM in a suite of 10 diverse segmentation datasets across different downstream tasks, where 8 out of them are evaluated in a zero-shot transfer protocol. Our code and pretrained models are at https://github.com/SysCV/SAM-HQ.

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

↑