SAMRefiner:驯服 Segment Anything Model 以实现通用掩码优化
SAMRefiner: Taming Segment Anything Model for Universal Mask Refinement
AI总结:
本文提出通用掩码优化方法 SAMRefiner,通过抗噪声多提示与 STM 流程改造 SAM,并以无标注 IoU 自增强得到 SAMRefiner++,在多类基准上提升准确性与效率。
摘要:
本文探索了一种提升广泛存在的既有粗糙掩码质量的根本方法,使其能够作为分割模型的可靠训练数据,从而降低标注成本。以往的优化技术往往以封闭世界的方式针对特定模型或任务定制;与之不同,我们提出 SAMRefiner,这是一种通过将 SAM 适配到掩码优化任务而实现的通用且高效的方法。该模型的核心技术是抗噪声提示方案。具体而言,我们引入多提示挖掘策略,从初始粗糙掩码中为 SAM 挖掘多样化的输入提示(即距离引导点、上下文感知弹性边界框和高斯风格掩码)。这些提示能够相互协作,以缓解粗糙掩码中缺陷的影响。特别是,考虑到 SAM 在语义分割中处理多目标情形的困难,我们引入了先分割后合并(split-then-merge,STM)流程。此外,我们通过增加一个 IoU 适配步骤,将方法扩展为 SAMRefiner++,以进一步提升通用 SAMRefiner 在目标数据集上的性能。该步骤是自增强的,不需要额外标注。所提出的框架用途广泛,能够灵活地与现有分割方法协同工作。我们在不同设置下的大量基准上评估了该掩码框架,结果表明其具有更好的准确性和效率。SAMRefiner 在加速优化工具演进方面具有显著潜力。代码可在 https://github.com/linyq2117/SAMRefiner 获取。
英文摘要:
In this paper, we explore a principal way to enhance the quality of widely pre-existing coarse masks, enabling them to serve as reliable training data for segmentation models to reduce the annotation cost. In contrast to prior refinement techniques that are tailored to specific models or tasks in a close-world manner, we propose SAMRefiner, a universal and efficient approach by adapting SAM to the mask refinement task. The core technique of our model is the noise-tolerant prompting scheme. Specifically, we introduce a multi-prompt excavation strategy to mine diverse input prompts for SAM (i.e., distance-guided points, context-aware elastic bounding boxes, and Gaussian-style masks) from initial coarse masks. These prompts can collaborate with each other to mitigate the effect of defects in coarse masks. In particular, considering the difficulty of SAM to handle the multi-object case in semantic segmentation, we introduce a split-then-merge (STM) pipeline. Additionally, we extend our method to SAMRefiner++ by introducing an additional IoU adaption step to further boost the performance of the generic SAMRefiner on the target dataset. This step is self-boosted and requires no additional annotation. The proposed framework is versatile and can flexibly cooperate with existing segmentation methods. We evaluate our mask framework on a wide range of benchmarks under different settings, demonstrating better accuracy and efficiency. SAMRefiner holds significant potential to expedite the evolution of refinement tools. Our code is available at https://github.com/linyq2117/SAMRefiner.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。