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

TL;DR
This paper introduces MobileSAM, a lightweight and efficient version of the Segment Anything Model optimized for mobile devices, achieved through decoupled distillation and lightweight encoder design.
Contribution
The authors propose a decoupled distillation method to create MobileSAM, a significantly smaller and faster version of SAM suitable for resource-constrained devices.
Findings
MobileSAM is over 60 times smaller than original SAM.
MobileSAM achieves comparable performance to SAM on various tasks.
MobileSAM runs around 10ms per image on a single GPU.
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
- 🤗dhkim2810/MobileSAMmodel· ♡ 27♡ 27
- 🤗Uminosachi/MobileSAMmodel· ♡ 2♡ 2
- 🤗qualcomm/MobileSammodel· 104 dl· ♡ 6104 dl♡ 6
- 🤗wanziteng/sd-webui-inpaint-anything-1.17.0model
- 🤗wanziteng/sd-webui-inpaint-anything-1.16.2model
- 🤗wanziteng/sd-webui-inpaint-anything-1.16.0model
- 🤗wanziteng/sd-webui-inpaint-anything-1.15.1model
- 🤗kornia/mobile_sammodel
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAdvanced Neural Network Applications · Visual Attention and Saliency Detection · Advanced Image and Video Retrieval Techniques
MethodsSegment Anything Model
