arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.03048cs.CVcs.AIcs.CLcs.LGcs.MM
收藏

用单样本个性化Segment Anything Model

Personalize Segment Anything Model with One Shot

CUHK(香港中文大学);Shanghai Artificial Intelligence Laboratory(上海人工智能实验室);Peking University(北京大学);Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所)

Renrui Zhang, Zhengkai Jiang, Ziyu Guo, Shilin Yan, Junting Pan, Xianzheng Ma, Hao Dong, Peng Gao, Hongsheng Li

AI总结:

本研究提出无需训练的PerSAM和仅训练2个参数的PerSAM-F方法,实现单样本下SAM的个性化分割,构建PerSeg数据集验证性能,还可增强DreamBooth优化Stable Diffusion的文生图个性化效果。

摘要:

在大数据预训练的驱动下,Segment Anything Model(SAM,分割一切模型)已被证明是一个功能强大的可提示框架,彻底革新了分割模型。尽管具备通用性,在无需人工提示的情况下为特定视觉概念定制SAM的研究仍不充分,例如自动在不同图像中分割你的宠物狗。本文提出一种无需训练的SAM个性化方法,命名为PerSAM。仅给定一张带参考掩码的图像,PerSAM首先通过位置先验定位目标概念,再通过三种技术在其他图像或视频中分割目标:目标引导注意力、目标语义提示和级联后细化。通过这种方式,我们无需任何训练即可有效让SAM适配私人使用场景。为进一步缓解掩码歧义,我们提出一种高效的单样本微调变体PerSAM-F。在冻结整个SAM的前提下,我们为多尺度掩码引入两个可学习权重,仅需在10秒内训练2个参数即可提升性能。为验证方法的有效性,我们构建了一个新的分割数据集PerSeg用于个性化评估,并在视频目标分割任务上测试了我们的方法,取得了具有竞争力的性能。此外,我们的方法还能增强DreamBooth,以个性化Stable Diffusion用于文生图任务,该方法可消除背景干扰,实现更好的目标外观学习。代码已发布于https://github.com/ZrrSkywalker/Personalize-SAM

英文摘要:

Driven by large-data pre-training, Segment Anything Model (SAM) has been demonstrated as a powerful and promptable framework, revolutionizing the segmentation models. Despite the generality, customizing SAM for specific visual concepts without man-powered prompting is under explored, e.g., automatically segmenting your pet dog in different images. In this paper, we propose a training-free Personalization approach for SAM, termed as PerSAM. Given only a single image with a reference mask, PerSAM first localizes the target concept by a location prior, and segments it within other images or videos via three techniques: target-guided attention, target-semantic prompting, and cascaded post-refinement. In this way, we effectively adapt SAM for private use without any training. To further alleviate the mask ambiguity, we present an efficient one-shot fine-tuning variant, PerSAM-F. Freezing the entire SAM, we introduce two learnable weights for multi-scale masks, only training 2 parameters within 10 seconds for improved performance. To demonstrate our efficacy, we construct a new segmentation dataset, PerSeg, for personalized evaluation, and test our methods on video object segmentation with competitive performance. Besides, our approach can also enhance DreamBooth to personalize Stable Diffusion for text-to-image generation, which discards the background disturbance for better target appearance learning. Code is released at https://github.com/ZrrSkywalker/Personalize-SAM

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

↑