/ Модель

Характеристики

Лицензия
Apache 2.0
Библиотека
onnx
Опубликована
4 авг 2026

mobilesam

Генерация масокИзображение → mask

Облегчённая модель AMD на основе MobileSAM выделяет объект на изображении по координате заданной точки и возвращает пиксельную маску.

0скачиваний за 30 дней0лайковвеса обновлены20 авг 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

MobileSAM — облегчённая модель сегментации объектов по запросу, основанная на дистиллированной Segment Anything Model и адаптированная AMD-PAVS-AI для запуска через ONNX Runtime на оборудовании AMD. Она принимает изображение и координату одной точки, после чего выдаёт пиксельную маску выбранного объекта. Архитектура состоит из TinyViT-кодировщика изображения и декодера масок; экспортированная модель использует двухэтапный граф ONNX.

Репозиторий ориентирован на сегментацию экземпляров по точечной подсказке и проверку качества на подмножестве SA-1B из 10 изображений. Модель валидирована для CPU, GPU AMD с ROCm и NPU AMD Ryzen AI; README приводит метрики для CPU и GPU, а также отмечает снижение качества на NPU. Лицензия — Apache 2.0. Результаты оценки основаны на небольшом наборе данных, поэтому они не гарантируют аналогичное качество на произвольных изображениях.

Сценарии применения

  • выделение объекта на фотографии по точке
  • интерактивная сегментация изображений
  • создание масок объектов для разметки данных

Ограничения

Оценка качества в README проведена на подмножестве SA-1B всего из 10 изображений, поэтому результаты могут не отражать качество на других данных. Для NPU указано более низкое качество, чем на CPU и GPU.

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

MobileSAM: Optimized for AMD ROCm

MobileSAM is a lightweight, promptable segmentation model — a distilled Segment Anything Model (SAM) that predicts a pixel-level mask for any object from a single point prompt. This repository packages inference for promptable instance segmentation using ONNX Runtime, exported and validated for AMD ROCm so it runs efficiently on AMD GPUs, CPUs, and NPUs.

This is based on the implementation of MobileSAM found here. This repository contains configurations and scripts optimized for AMD® ROCm™ platforms. You can use the mobilesam AMD scripts to reproduce results or export with custom configurations. More details on model performance can be found here.


Task Overview

Task: Promptable instance segmentation (point prompt → mask)

Dataset: SA-1B subset (10 images, per-mask point-prompt annotations)

Output metrics: mIoU, Mean Mask IoU, Median Mask IoU, IoU Std Dev, Min IoU, Max IoU


AMD ROCm Optimization

This model export has been adapted and validated for AMD Instinct™ / Radeon™ GPUs running ROCm, as well as AMD CPUs and AMD Ryzen AI NPUs. Key points:

  • Validated backends: ONNX Runtime across CPU (FP32), GPU (MIGraphX execution provider — FP32/FP16 for benchmarking, FP32/FP16/BF16/INT8 for profiling and evaluation), and NPU (VitisAI execution provider, auto-quantized internally).
  • The pipeline is a two-stage ONNX graph — a TinyViT image encoder (once per image) feeding a prompt/mask decoder (once per point).
  • No code changes required versus the upstream MobileSAM implementation — only environment/runtime configuration differs.
  • On GPU, the MIGraphX execution provider writes the TinyViT encoder output in NHWC memory order; the evaluator reinterprets it back to NCHW so GPU accuracy matches CPU.
RuntimePrecisionBackendHardwareNotes
ONNX RuntimeFP32CPU Execution ProviderAMD CPU—
ONNX RuntimeFP32 / FP16 (benchmark); FP32/FP16/BF16/INT8 (eval/profile)MIGraphX Execution ProviderAMD Instinct™ / Radeon™ GPU (ROCm)NHWC output reinterpreted to NCHW
ONNX RuntimeAutoVitisAI Execution ProviderAMD Ryzen AI NPUAuto-quantized internally; quality lower than CPU/GPU

Getting Started

For setup instructions, evaluation scripts, and custom configuration options, see the mobilesam on GitHub.


Model Details

Model Type: Promptable instance segmentation — distilled Segment Anything Model with a TinyViT encoder

Base Model: MobileSAM (pinned commit b01a9ccef3b9e10b099b544efe004d0871802c3b)

Model Stats:

  • Two-stage pipeline: TinyViT image encoder + prompt/mask decoder
  • Encoder input: (1, 3, 1024, 1024) float32; encoder output (image_embeddings): (1, 256, 64, 64) float32
  • Decoder input (point_coords): (1, 1, 2) float32; (point_labels): (1, 1) float32
  • Decoder output (low_res_masks): (1, 1, 256, 256) float32; (iou_predictions): (1, 1) float32
  • Precision tested: FP32 (CPU); FP32, FP16, BF16, INT8 (GPU); auto-quantized (NPU)

Accuracy Pipeline

Higher mIoU means the model's predicted masks overlap more closely with the ground-truth annotations — 1.0 would be pixel-perfect agreement, 0.0 means no overlap. In practice, values above ~0.5 for mIoU on SA-1B are considered strong for prompted segmentation.

Metrics Explained

MetricDescription
mIoUPrimary metric — mean Intersection over Union averaged across all images. Higher means predicted masks align closely with ground truth across the evaluation set.
Mean Mask IoUAverage per-mask IoU across all individual point prompts — captures how well the model handles each mask independently, not just the per-image average.
Median Mask IoUMedian per-mask IoU — robust to outliers; if this is much higher than Mean Mask IoU, a few bad masks are dragging the mean down.
IoU Std DevStandard deviation of per-mask IoU scores — low std means consistent quality across all prompts; high std means some masks are much worse than others.
Min IoU / Max IoURange of per-mask IoU — exposes the worst-case and best-case mask predictions. A very low Min IoU indicates the model occasionally produces completely wrong masks.

Accuracy Results

Full Dataset Evaluation (SA-1B subset, 10 images) — filled from runs/quality_<device>_<precision>.json; run make metrics to refresh:

DevicePrecisionmIoUMean Mask IoUMedian Mask IoUIoU Std
CPUFP320.57520.57520.57110.0574
GPUFP320.57520.57520.57110.0574
GPUFP160.57500.57500.56810.0563
NPUAuto0.42520.42520.41740.0753

Dig Deeper

Want to explore the full evaluation scripts, config options, and other AMD-optimized model examples?

📂 View the full project on GitHub

The GitHub repository includes:

  • Setup and prerequisites for ROCm environments
  • Scripts for CPU, GPU, and NPU runners (encoder + decoder benchmarking/profiling)
  • SA-1B dataset staging and mIoU evaluation pipeline
  • Benchmarking and reproduction instructions

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · onnx

Нельзя запустить

В репозитории нет config.json: не понять архитектуру модели.

Ревизия весов
99e64bd

0 моделей