arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2312.07374cs.CV
收藏

放宽SAM中针对特定图像的提示要求:用于伪装目标分割的单一通用提示

Relax Image-Specific Prompt Requirement in SAM: A Single Generic Prompt for Segmenting Camouflaged Objects

Queen Mary University of London(伦敦玛丽女王大学)

Jian Hu, Jiayi Lin, Weitong Cai, Shaogang Gong

AI总结:

针对弱监督伪装目标检测中手动提示不可行、SAM提示缺乏语义的问题,提出GenSAM框架,通过跨模态思维链提示和渐进式掩码生成,用单一通用文本提示实现免训练的测试时自适应,性能优于点监督方法、接近涂鸦监督水平。

摘要:

伪装目标检测(Camouflaged Object Detection, COD)方法高度依赖像素级标注数据集。弱监督COD(Weakly-Supervised COD, WSCOD)方法使用涂鸦或点等稀疏标注来减少标注工作量,但这会导致精度下降。Segment Anything Model(SAM,分割一切模型)在点等稀疏提示下展现出卓越的分割能力。然而,手动提示并非始终可行,因为在实际应用中可能无法获取手动提示。此外,它仅提供定位信息而非语义信息,这本质上会导致目标解读的模糊性。在本研究中,我们旨在消除对手动提示的需求。核心思路是采用跨模态思维链提示(Cross-modal Chains of Thought Prompting, CCTP),利用通用文本提示提供的语义信息来推理视觉提示。为此,我们提出了一种名为Generalizable SAM(GenSAM,可泛化SAM)的逐实例测试时自适应机制,用于为WSCOD自动生成并优化与通用任务提示匹配的视觉提示。具体而言,CCTP利用视觉-语言模型将单一通用文本提示映射为针对特定图像的一致前景和背景热图,从而获得可靠的视觉提示。此外,为了在测试时自适应调整视觉提示,我们进一步提出了渐进式掩码生成(Progressive Mask Generation, PMG)方法,对输入图像进行迭代重加权,以从粗到细的方式引导模型聚焦于目标。至关重要的是,所有网络参数均保持固定,无需额外训练。实验证明了GenSAM的优越性。在三个基准数据集上的实验表明,GenSAM仅依赖通用任务描述作为提示,性能便优于点监督方法,且取得了与涂鸦监督方法相当的结果。我们的代码位于:https://lwpyh.github.io/GenSAM/。

英文摘要:

Camouflaged object detection (COD) approaches heavily rely on pixel-level annotated datasets. Weakly-supervised COD (WSCOD) approaches use sparse annotations like scribbles or points to reduce annotation effort, but this can lead to decreased accuracy. The Segment Anything Model (SAM) shows remarkable segmentation ability with sparse prompts like points. However, manual prompt is not always feasible, as it may not be accessible in real-world application. Additionally, it only provides localization information instead of semantic one, which can intrinsically cause ambiguity in interpreting the targets. In this work, we aim to eliminate the need for manual prompt. The key idea is to employ Cross-modal Chains of Thought Prompting (CCTP) to reason visual prompts using the semantic information given by a generic text prompt. To that end, we introduce a test-time adaptation per-instance mechanism called Generalizable SAM (GenSAM) to automatically enerate and optimize visual prompts the generic task prompt for WSCOD. In particular, CCTP maps a single generic text prompt onto image-specific consensus foreground and background heatmaps using vision-language models, acquiring reliable visual prompts. Moreover, to test-time adapt the visual prompts, we further propose Progressive Mask Generation (PMG) to iteratively reweight the input image, guiding the model to focus on the targets in a coarse-to-fine manner. Crucially, all network parameters are fixed, avoiding the need for additional training. Experiments demonstrate the superiority of GenSAM. Experiments on three benchmarks demonstrate that GenSAM outperforms point supervision approaches and achieves comparable results to scribble supervision ones, solely relying on general task descriptions as prompts. our codes is in: https://lwpyh.github.io/GenSAM/.

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

↑