1.  [](/)
2.  [Models](/models)
3.  MobileSAM

Not runnable todaySegmentationVerified 2026-11-05

# MobileSAM

dhkim2810/MobileSAM (mobile\_sam.pt)

MobileSAM is a image segmentation model (Apache-2.0). Not runnable on Mixpeek today.

Something blocks it today, such as the license, remote code or a GPU-only runtime. The reason is below.

[Record as JSON](/models/mobilesam.json)

No demo for MobileSAM yet

A video, image, slideshow or playground goes here once we record one on our own data.

## What it is good and bad at

Best at

SAM with a 5M-parameter TinyViT encoder: box or point prompted masks on CPU in tens of milliseconds.

Worst at

Mask quality below SAM 2; images only.

Task

Segmentation

Input

Image

Output

Masks, Scores

Use cases

Segmentation, Object detection

## Templates that use it

No template uses this model yet. [Browse templates](/templates).

## Input and output

### Input

Image

Resolution

1024x1024

Prompts

points and boxes

### Output

Masks

binary masks with IoU predictions

## How Mixpeek wires it

Extractors

None today

Feature URIs

None today

Vector indexes

None

Retriever stages

None

Combines with

*   detector boxes -> MobileSAM masks -> masked crops -> SigLIP

## How it runs

Status

Not runnable today Weights are a .pt pickle and the model code is the repo's (segment\_anything fork). The repo ships an ONNX export script; once exported to ONNX it runs as a CPU plugin with onnxruntime.

Serve apps

None

Runtime

mobile\_sam package (sam\_model\_registry\['vit\_t'\]) or onnxruntime after export

Weights

Pickle, no remote code

Parameters

10 M

Size on disk

41 MB

Preprocessing

Resize longest side to 1024, pad, normalize.

Postprocessing

Threshold mask logits, pick by predicted IoU.

Serving

both

Hardware

Runs on CPU (slower without a GPU)

### Scale to zero

Minimum replicas

0

Maximum replicas

1

Idle timeout

600 s

Memory

1 GB

CPUs

1

GPUs

0

Cold start, node warm

Not recorded

Cold start, new node

Not recorded

## Measured cost

Unmeasured

No committed measurement; plan row 3 measures it in the standalone image.

## Our evaluations

Unmeasured

We have not evaluated this model on our own data yet. Publisher results are in the sources below.

## Questions

What is MobileSAM best at?

SAM with a 5M-parameter TinyViT encoder: box or point prompted masks on CPU in tens of milliseconds.

What are the limits of MobileSAM?

Mask quality below SAM 2; images only.

Can MobileSAM be used commercially?

Yes. Apache-2.0 per the GitHub repo (the hub mirror is tagged MIT); no use restrictions either way.

How does MobileSAM run on Mixpeek?

Weights are a .pt pickle and the model code is the repo's (segment\_anything fork). The repo ships an ONNX export script; once exported to ONNX it runs as a CPU plugin with onnxruntime.

## Identity

Catalog id

`mobilesam`

Family

mobilesam

Hub id

`dhkim2810/MobileSAM (mobile_sam.pt)`

License

Apache-2.0

Commercial use

AllowedApache-2.0 per the GitHub repo (the hub mirror is tagged MIT); no use restrictions either way.

Released

2023-06

Last verified

Verified 2026-11-05

Paper

[arxiv.org/abs/2306.14289](https://arxiv.org/abs/2306.14289)

Code

[github.com/ChaoningZhang/MobileSAM](https://github.com/ChaoningZhang/MobileSAM)

## References and formats

*   `hf://dhkim2810/MobileSAM@4e2e5245fe9dc63096d575d36e70eb39b03b3aba`
*   `github://ChaoningZhang/MobileSAM/weights/mobile_sam.pt`

Format

File

Loads today

PyTorch .pt

mobile\_sam.pt

No

PyTorch .pt

mobile\_sam.pt

No

## Related models

*   [SAM 2.1 Hiera Tiny (small, base-plus)](/models/sam2-1-hiera-tiny)Segmentation
*   [SAM 2.1 Hiera Large](/models/sam2-1-hiera-large)Segmentation
*   [EfficientSAM ViT-S](/models/efficientsam-vits)Segmentation
*   [SAM 3 (Segment Anything with Concepts)](/models/sam3)Segmentation
*   [Ultralytics YOLO11 segment](/models/yolo11-segment)Segmentation
*   [Ultralytics YOLO26 segment](/models/yolo26-segment)Segmentation

## Sources

*   [huggingface.co/dhkim2810/MobileSAM](https://huggingface.co/dhkim2810/MobileSAM)
*   [github.com/ChaoningZhang/MobileSAM](https://github.com/ChaoningZhang/MobileSAM)
*   [arxiv.org/abs/2306.14289](https://arxiv.org/abs/2306.14289)