Downloads · 30 days
0
Geo-IA/evo-sam2.1-onnx
evo-sam2.1-onnx is a machine learning model from Geo-IA. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for onnxruntime-web. The card lists the license as apache-2.0.
Self-contained ONNX exports of Meta's SAM 2.1 image encoder + prompt/mask decoder, packaged for onnxruntime-web (no .onnxdata external-data files, which the browser runtime cannot mount).
Downloads · 30 days
0
Access
Public
Updated Jul 3, 2026
Repo size
2.3 GB
Likes
0
Public
Click a slice to open those files.
.onnx2.3 GB · 100%
From the Hugging Face model README
Self-contained ONNX exports of Meta's SAM 2.1 image encoder + prompt/mask
decoder, packaged for onnxruntime-web (no .onnx_data external-data files,
which the browser runtime cannot mount).
One directory per model size (sam2.1_hiera_{tiny,small,base_plus,large}):
| file | contents |
|---|---|
vision_encoder.onnx | image encoder, fp32 (merged self-contained from the onnx-community export) |
vision_encoder_fp16.onnx | same, fp16 weights / fp32 I/O — for WebGPU |
prompt_encoder_mask_decoder.onnx | prompt encoder + mask decoder, fp32, re-exported with the mask-refinement inputs |
prompt_encoder_mask_decoder_fp16.onnx | same, fp16 weights / fp32 I/O — for WebGPU |
The stock onnx-community decoder export drops the prompt encoder's mask path:
no input_masks / has_mask_input inputs and no single-mask token. SAM is
trained to be used iteratively — each refinement click feeds the previous
low-res logits back as a prior and reads the dedicated refinement token.
These decoders restore that contract:
input_points [1,1,N,2] (1024-px space, float32), input_labels
[1,1,N] (int64), image_embeddings.{0,1,2}, input_masks [1,1,256,256],
has_mask_input [1]iou_scores [1,4], pred_masks [1,4,256,256] (logits, ±32),
object_score_logits [1,1]pred_masks slots: 0 = single-mask/refinement output (official
multimask_output=False path incl. stability fallback); 1-3 = multimask
hypotheses.Exported from the official Meta checkpoints (2024-09-24 release) with
scripts/export_sam21_decoder_mask.py —
logit parity 0.0000 vs SAM2ImagePredictor (cold, single-mask and
refinement decodes) verified for every size at export time. Encoders are
byte-identical migrations of the previously published merged files and consume
nothing new — the decoder is a drop-in swap.
fp16 variants keep fp32 I/O (weights-only conversion, with Cast fixes for the label-cast nodes); intended for WebGPU. On WASM prefer fp32 — fp16 there is emulated and slower.