arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2312.09579cs.CVcs.AI
收藏

MobileSAMv2: 更快的从“分割一切”到“分割所有事物”

MobileSAMv2: Faster Segment Anything to Everything

Kyung Hee University(庆熙大学);Nota Inc.(Nota公司)

Chaoning Zhang, Dongshen Han, Sheng Zheng, Jinwoo Choi, Tae-Ho Kim, Choong Seon Hong

AI总结:

针对SAM的SegEvery任务掩码解码器效率瓶颈,MobileSAMv2通过目标发现获取有效提示直接生成最终掩码,掩码解码器提速超16倍,LVIS零样本目标提议性能提升3.6%,还兼容MobileSAM的蒸馏图像编码器,实现统一高效分割框架。

摘要:

分割一切模型(Segment Anything Model,SAM)解决了两项实用且具有挑战性的分割任务:**分割任意目标(segment anything,SegAny)**,即利用特定点预测单个感兴趣目标的掩码;以及**分割所有事物(segment everything,SegEvery)**,即预测图像上所有目标的掩码。SAM的SegAny任务速度慢的原因在于其重量级图像编码器,这一问题已由MobileSAM通过解耦知识蒸馏解决。然而,基于SAM的SegEvery任务的效率瓶颈在于其掩码解码器,因为它需要先用冗余的网格搜索提示生成大量掩码,再进行过滤以得到最终的有效掩码。我们提出通过仅利用有效提示直接生成最终掩码来提升其效率,这些有效提示可通过目标发现获取。我们提出的方法不仅将掩码解码器的总耗时降低了至少16倍,还取得了更优的性能。具体而言,在LVIS数据集上的零样本目标提议任务中,采用掩码AR@K指标,我们的方法实现了3.6%的平均性能提升(42.5%对比38.9%)。定性结果表明,我们的方法能生成细粒度掩码,同时避免对事物类目标的过分割。这个旨在实现比原始SAM更快的SegEvery的项目被命名为MobileSAMv2,以区别于针对更快SegAny的MobileSAM。此外,我们证明了我们的新型提示采样方法也与MobileSAM中的蒸馏图像编码器兼容,从而构建了一个可实现高效SegAny和SegEvery的统一框架。代码可在与MobileSAM项目相同的链接获取:https://github.com/ChaoningZhang/MobileSAM。

英文摘要:

Segment anything model (SAM) addresses two practical yet challenging segmentation tasks: \textbf{segment anything (SegAny)}, which utilizes a certain point to predict the mask for a single object of interest, and \textbf{segment everything (SegEvery)}, which predicts the masks for all objects on the image. What makes SegAny slow for SAM is its heavyweight image encoder, which has been addressed by MobileSAM via decoupled knowledge distillation. The efficiency bottleneck of SegEvery with SAM, however, lies in its mask decoder because it needs to first generate numerous masks with redundant grid-search prompts and then perform filtering to obtain the final valid masks. We propose to improve its efficiency by directly generating the final masks with only valid prompts, which can be obtained through object discovery. Our proposed approach not only helps reduce the total time on the mask decoder by at least 16 times but also achieves superior performance. Specifically, our approach yields an average performance boost of 3.6\% (42.5\% \textit{v.s.} 38.9\%) for zero-shot object proposal on the LVIS dataset with the mask AR@$K$ metric. Qualitative results show that our approach generates fine-grained masks while avoiding over-segmenting things. This project targeting faster SegEvery than the original SAM is termed MobileSAMv2 to differentiate from MobileSAM which targets faster SegAny. Moreover, we demonstrate that our new prompt sampling is also compatible with the distilled image encoders in MobileSAM, contributing to a unified framework for efficient SegAny and SegEvery. The code is available at the same link as MobileSAM Project \href{https://github.com/ChaoningZhang/MobileSAM}{\textcolor{red}{https://github.com/ChaoningZhang/MobileSAM}}. \end{abstract}

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

↑