SlimSAM-77 uniform segment anything (int8)

models.skillsafe.ai/slimsam-77-uniform-int8@5850ab45/

Vetted

Image segmentation model for onnxruntime-web (int8 dynamic-quantized). Runs on WASM — 13.1 MB downloaded once from models.skillsafe.ai, then cached for every SkillSafe app that uses it. Inference happens on your device; nothing you enter is uploaded to load it, and it never costs a credit. Weights from Hugging Face · Xenova/slimsam-77-uniform, pinned at 5850ab45f587 — also loadable straight from Hugging Face outside SkillSafe (how).

Share

Details

Catalogue idslimsam-77-uniform-int8@5850ab45
Runtimeonnxruntime-web ≥ 1.17.0
DeviceWASM
Variantint8 dynamic-quantized
Download13.1 MB · 2 files
LicenceApache-2.0 · notice
Pinned at5850ab45f587c112167512ffef949107115e26a0
ApprovedSep 3, 2026
Statusactive — every file is a live vetted hash

Files

Each file is served at an immutable URL; the canonical form is the SHA-256 itself. Tokenizer and config JSON are not here by design — they ship in your app bundle.

PathFormatSizeSHA-256
onnx/vision_encoder_quantized.onnx onnx 8.5 MB cce23c7b2e5d…1f2971
onnx/prompt_encoder_mask_decoder_quantized.onnx onnx 4.7 MB cb90b279f549…7fdce2

Signature

Graph inputs and outputs read from the ONNX bytes at vetting — the tensor names your session.run() call feeds and reads. Symbolic dimensions are shown by name.

onnx/vision_encoder_quantized.onnx

Inputs

  • pixel_values float32 [batch_size, 3, 1024, 1024]

Outputs

  • image_embeddings float32 [batch_size, 256, 64, 64]
  • image_positional_embeddings float32 [batch_size, 256, 64, 64]

onnx/prompt_encoder_mask_decoder_quantized.onnx

Inputs

  • input_points float32 [batch_size, point_batch_size, nb_points_per_image, 2]
  • input_labels int64 [batch_size, point_batch_size, nb_points_per_image]
  • image_embeddings float32 [batch_size, 256, 64, 64]
  • image_positional_embeddings float32 [batch_size, 256, 64, 64]

Outputs

  • iou_scores float32 [batch_size, point_batch_size, 3]
  • pred_masks float32 [batch_size, point_batch_size, 3, 256, 256]
Use it in an app declaration · SDK loader · onnxruntime-web · URLs · Hugging Face — generated from this entry

Add to the body of POST /v1/apps/{slug}/releases (or a release session). An unknown or withdrawn model is refused with a 400 naming it; the app page then shows "downloads 13.1 MB · runs on your device" and /models.txt carries the attribution.

{
  "models": [
    {
      "id": "slimsam-77-uniform-int8",
      "revision": "5850ab45"
    }
  ]
}

Evaluation

onnx.checker + onnxruntime CPU smoke run with zero-filled inputs at the declared shapes; per-file SHA-256 pinned to the source; ONNX output vs the PyTorch model from the same commit on real text (import.parity) — imported as published upstream, then checked. Evaluated Sep 22, 2026.

Parity against transformers SamVisionModel from nielsr/slimsam-77-uniform@72a5ae6ca4d1, fp32 · last_hidden_state

fileprecisionmax absmean abscosine / PSNR
onnx/vision_encoder_quantized.onnxquantised0.0596.1e-30.998347

Runs under onnxruntime

Zero-filled inputs at the declared shapes, CPU execution provider on the converter host; the check is that the graph loads, runs, and emits the declared output shapes.

  • onnx/prompt_encoder_mask_decoder_quantized.onnx: input_points[1,1,1,2], input_labels[1,1,1], image_embeddings[1,256,64,64], image_positional_embeddings[1,256,64,64] → iou_scores[1,1,3], pred_masks[1,1,3,256,256] 11.9 ms
  • onnx/vision_encoder_quantized.onnx: pixel_values[1,3,1024,1024] → image_embeddings[1,256,64,64], image_positional_embeddings[1,256,64,64] 388.4 ms

Toolchain: python 3.12.13 · platform Darwin 25.6.0 arm64 · torch 2.10.0 · onnx 1.23.0 · onnxruntime 1.30.0. Recipe models/recipes/slimsam-77-uniform-int8.yaml (33c47dabbe64). Full manifest.json

Licence & attribution

Apache-2.0 · licence text · notice

SlimSAM: 0.1% Data Makes Segment Anything Slim (Chen et al., NeurIPS 2024), a structural pruning of Meta's Segment Anything ViT-B. ONNX int8 dynamic-quantized export of the 77%-pruned uniform model published by Xenova on Hugging Face. Licensed under the Apache License 2.0.

Apps that declare this model get this text in their generated /models.txt, so a licence that requires a notice always carries one.

Every file here was approved by exact SHA-256 after a structural audit of the graph, fetched from a content-pinned source, and is served credential-free at an immutable URL. The SDK re-verifies the hash on your device before it caches or returns anything. Missing a variant? Request it — or read how the registry works.