SAM 3.1 ONNX

ONNX exports of Meta's SAM 3.1 multiplex checkpoint for interactive segmentation and video tracking with ONNX Runtime Web and WebGPU.

This is an experimental community release developed for Blackboard Studio.

Models

Precision Runtime payload Interactive input Temporal tracking
q4f16 (default) 295.38 MB / 281.70 MiB 1008 ร— 1008 No
fp16 1082.28 MB 504 or 1008 504

The default Q4F16 directory is a standalone 1008-only interactive model. It retains the sequential block-32 INT4 encoder weights, removes the unused video projection branch, and compacts the external weight file. Large decoder matrix weights are stored in FP16 and cast to FP32 for arithmetic. The FP16 variant is unchanged and retains its original multiresolution and temporal capabilities.

Download

hf download promc/sam3.1-onnx \
  --include 'q4f16/*' --include 'LICENSE' --include 'licenses/*' \
  --local-dir ./sam31-onnx

The Q4F16 runtime consists of:

  • q4f16/sam-interactive-frame-1008.onnx
  • q4f16/encoder-1008.bin (external ONNX data)
  • q4f16/sam-interactive-1008.onnx
  • q4f16/manifest.json (format, capability and SHA-256 metadata)

Usage

Use ONNX Runtime Web with hardware WebGPU and shader-f16. The encoder expects square, antialiased RGB input in float32 CHW layout with values in [0, 255]. The encoder returns three interactive FP32 feature tensors: interactive_lowres, interactive_hires2, and interactive_hires4. Pass these to the decoder as lowres, hires2, and hires4, with normalized point/box coordinates, one-hot prompt types and the not-a-point padding token as appropriate. The decoder returns four signed 288 ร— 288 mask logits and candidate scores. Text prompts are not supported.

The new standalone format is not compatible with the existing Blackboard Studio temporal-bundle installer. Existing pinned clients can continue using the previous multiresolution revision. Studio integration of the new standalone package remains pending.

Validation

See q4f16/validation.json for the new package's experimental validation. On one previously used real footage frame with six prompts, the three encoder feature tensors matched the prior Q4F16 1008 reference exactly. All six selected binary masks and candidate rankings matched. Maximum score drift was 8.8e-7. The encoder used strict WebGPU without CPU fallback; decoder tests allowed fallback. This is reference agreement, not ground-truth accuracy or independent footage qualification. Earlier 1008 encoder tests against FP32 measured mean/minimum mask IoU of 0.8395/0.3091; pruning does not correct that pre-existing quantization drift. The unchanged FP16 bundle retains its original validation receipt. Cross-device quality, strict decoder placement and standalone Studio installation remain unverified.

Attribution

Derived from Meta's SAM 3.1 and the muggled_sam implementation by heyoeyo. ONNX conversion, quantization and WebGPU integration were developed for Blackboard Studio. The base model was not retrained.

License

The model weights and derived ONNX artifacts are distributed under Meta's SAM License. See LICENSE for the applicable terms and conditions.

The upstream muggled_sam software license is included in licenses/muggled_sam.txt for attribution. The SAM License applies to the model artifacts.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for promc/sam3.1-onnx

Base model

facebook/sam3.1
Quantized
(11)
this model