Faster Segment Anything: Towards Lightweight SAM for Mobile Applications

计算机科学 编码器 移动设备 图像(数学) 编码(集合论) 计算机硬件 人工智能 计算机视觉 操作系统 程序设计语言 集合(抽象数据类型)
作者
Chaoning Zhang,Dongshen Han,Yu Qiao,Jung Uk Kim,Sung‐Ho Bae,Seungkyu Lee,Choong Seon Hong
出处
期刊:Cornell University - arXiv [Cornell University]
被引量:204
标识
DOI:10.48550/arxiv.2306.14289
摘要

Segment Anything Model (SAM) has attracted significant attention due to its impressive zero-shot transfer performance and high versatility for numerous vision applications (like image editing with fine-grained control). Many of such applications need to be run on resource-constraint edge devices, like mobile phones. In this work, we aim to make SAM mobile-friendly by replacing the heavyweight image encoder with a lightweight one. A naive way to train such a new SAM as in the original SAM paper leads to unsatisfactory performance, especially when limited training sources are available. We find that this is mainly caused by the coupled optimization of the image encoder and mask decoder, motivated by which we propose decoupled distillation. Concretely, we distill the knowledge from the heavy image encoder (ViT-H in the original SAM) to a lightweight image encoder, which can be automatically compatible with the mask decoder in the original SAM. The training can be completed on a single GPU within less than one day, and the resulting lightweight SAM is termed MobileSAM which is more than 60 times smaller yet performs on par with the original SAM. For inference speed, With a single GPU, MobileSAM runs around 10ms per image: 8ms on the image encoder and 4ms on the mask decoder. With superior performance, our MobileSAM is around 5 times faster than the concurrent FastSAM and 7 times smaller, making it more suitable for mobile applications. Moreover, we show that MobileSAM can run relatively smoothly on CPU. The code for our project is provided at \href{https://github.com/ChaoningZhang/MobileSAM}{\textcolor{red}{MobileSAM}}), with a demo showing that MobileSAM can run relatively smoothly on CPU.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
完美世界的应助被chaitc采纳,获得10
刚刚
scoringtitle完成签到,获得积分10
1秒前
balala完成签到 ,获得积分10
1秒前
2秒前
123发布了新的文献求助10
2秒前
无限绫完成签到,获得积分10
2秒前
李佳完成签到,获得积分10
2秒前
2秒前
Yang完成签到,获得积分10
3秒前
shixinaaaaa发布了新的文献求助10
3秒前
3秒前
scoringtitle发布了新的文献求助10
4秒前
4秒前
Lucas的应助被睡觉早点睡觉采纳,获得10
4秒前
4秒前
多多完成签到 ,获得积分10
4秒前
KKK给KKK的求助进行了留言
4秒前
汉堡包的应助被要减肥若烟采纳,获得10
4秒前
4秒前
拼搏的帽子完成签到 ,获得积分10
5秒前
JudeCHU发布了新的文献求助10
5秒前
ding的应助被chenzai采纳,获得10
5秒前
希望天下0贩的0的应助被cc采纳,获得10
5秒前
克莱茵蓝发布了新的文献求助10
5秒前
南巷完成签到,获得积分10
5秒前
早点睡觉丶完成签到,获得积分10
5秒前
1701完成签到,获得积分10
6秒前
Stars关注了科研通微信公众号
6秒前
6秒前
6秒前
gusgusgus发布了新的文献求助10
7秒前
秋叶完成签到,获得积分10
7秒前
7秒前
睡醒的庄周完成签到,获得积分10
7秒前
小马甲的应助被司徒呀采纳,获得10
7秒前
7秒前
热爱胃肠的小赖完成签到,获得积分10
8秒前
无心的哈密瓜完成签到,获得积分20
8秒前
浩浩发布了新的文献求助10
8秒前
8秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Energie-Contracting 1500
Spec 401: Standards for Jet Fuel Facility and Equipment Commissioning and Flushing at Airports, 2026.1 (Original Issue) 1000
Spec 103: Standard for Jet Fuel Quality Control at Airports, Revision 2026.1 1000
Mathematical models in hydrology 1000
Klimaschutzrecht durch den Energiesektor im Mehrebenensystem – Ein Rechtsvergleich 1000
Erzählte Gnade 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 计算机科学 工程类 有机化学 化学工程 生物化学 物理 复合材料 内科学 催化作用 光电子学 人工智能 细胞生物学 无机化学 物理化学 数学
热门帖子
关注 科研通微信公众号,转发送积分 8087553
求助须知:如何正确求助?哪些是违规求助? 9500931
关于积分的说明 21423155
捐赠科研通 7659131
什么是DOI,文献DOI怎么找? 3403787
关于科研通互助平台的介绍 2532446
邀请新用户注册赠送积分活动 2442121