// in-browser model · image segmentation

SlimSAM-77 uniform segment anything (int8)

slimsam-77-uniform-int8@5850ab45 int8 dynamic-quantized vetted · active onnxruntime-web ≥ 1.17.0 wasm

Downloads 13.1 MB once from models.skillsafe.ai, then stays cached for every SkillSafe app that uses it. Inference runs on your device; nothing you enter is uploaded to load it. Licensed Apache-2.0 · source Hugging Face Xenova/slimsam-77-uniform at 5850ab45f587.

See it working

Public apps that declare this model. Open one and the download you see is this file.

  • Image Cutout — Cut Out Anything From a Photo Online, Free

    Click on any object in a photo to cut it out: left-click adds a positive point, right-click adds a negative point, and a Segment-Anything model running entirely in your browser draws the mask. The cutout updates live after every click; add more objects, undo, then pick a background (transparent, white, blurred photo, colour, gradient or your own image) and download a PNG or JPG, or collage several cutouts on the design canvas. Two models to choose from: SlimSAM-77 (default, fast, about 17 MB) or the full SAM ViT-Base (higher quality, about 190 MB). Photos never leave your device. Free, no sign-up. Interface in 11 languages (EN, 简体中文, 日本語, 한국어, ES, PT, FR, DE, RU, ID, VI). Built on Meta's Segment Anything and SlimSAM (Apache-2.0, Xenova's ONNX exports) and onnxruntime-web (MIT), with weights served from SkillSafe's shared model registry.

    517 visits
    Open app

Files

Every 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 — these are 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]

How to use it

Three steps: declare the model on your release, load it through the SDK (verified and cached), hand the bytes to the runtime. The examples below are generated from this entry, so ids, paths and tensor names are exact.

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"
    }
  ]
}

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.