chaoningzhang/mobilesam

This is the official code for MobileSAM project that makes SAM lightweight for mobile applications and beyond!

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 3 minutes ago
Added to GitGenius on September 11th, 2026
Created on June 25th, 2023
Open Issues & Pull Requests: 119 (+0)
GitHub issues: Enabled
Number of forks: 587
Total Stargazers: 5,866 (+0)
Total Subscribers: 46 (+0)

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Issue API getrepoissuespagesummary failed: 429 Rate limit exceeded. Please try again later.

Detailed Description

MobileSAM is a lightweight image segmentation model that makes the Segment Anything Model practical for mobile applications and resource-constrained environments.

The project addresses the computational burden of the original SAM by replacing its heavyweight image encoder with a lightweight alternative, enabling fast segmentation on CPU-based devices. MobileSAMv2 extends this approach further by replacing grid-search prompt sampling with object-aware prompt sampling to accelerate segment-everything workflows. The tool supports ONNX model export for broad deployment compatibility and can run inference on standard CPUs in seconds, as demonstrated by the public demo running on modest hardware.

Developers working on mobile applications, edge devices, or projects requiring real-time segmentation should consider this tool. It suits scenarios where the original SAM is too slow or memory-intensive but segmentation capability is essential. The project has been integrated into numerous downstream applications including image inpainting, browser-based implementations, 3D segmentation, and annotation tools, indicating practical viability across diverse use cases.

The project receives issue reports primarily from external users rather than the core team, reflecting a substantial base of real-world adopters. However, issues and pull requests often experience response delays of weeks or longer, suggesting limited availability for active maintenance and community support.