skillsafe-ai/slimsam-77-uniform-int8
SlimSAM-77 uniform segment anything (int8)
Browser-ready import artifacts for image-segmentation, produced by SkillSafe's reproducible converter (`models/` in skillsafe.ai) from a pinned upstream source. Every byte here is derivable from that source plus the recipe below; nothing was edited by hand.
Provenance
Files
registry files are parameter files served from models.skillsafe.ai once vetted; bundle files ship inside an app; registry-shared is a runtime library reused by every model of the same architecture.
Verification
Imported as published upstream (no conversion). Each file is pinned by SHA-256 to its source; every ONNX file passed onnx.checker and a CPU smoke run under onnxruntime with zero-filled inputs at the declared shapes:
Use in the browser
import * as ort from "onnxruntime-web";
const session = await ort.InferenceSession.create("https://huggingface.co/skillsafe-ai/slimsam-77-uniform-int8/resolve/main/onnx/prompt_encoder_mask_decoder_quantized.onnx", { executionProviders: ["webgpu", "wasm"] });Contract (onnx/prompt_encoder_mask_decoder_quantized.onnx): input 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] → output iou_scores float32 ['batch_size', 'point_batch_size', 3], pred_masks float32 ['batch_size', 'point_batch_size', 3, 256, 256]. Opset 13.
Licence and attribution
SlimSAM: 0.1% Data Makes Segment Anything Slim (Chen et al., NeurIPS 2024), a structural pruning of Meta's Segment Anything ViT-B, Apache License 2.0. ONNX export published by Xenova (https://huggingface.co/Xenova/slimsam-77-uniform).
Licence: Apache-2.0 — notice: https://github.com/czg1225/SlimSAM/blob/main/LICENSE. The conversion recipe and this model card are part of the SkillSafe repository and carry its licence; the weights remain under the upstream licence above.
The full manifest.json in this repo records the recipe, sources, toolchain (including the uv.lock hash) and per-file verification numbers.
