EfficientSAM3 TV-M image encoder ONNX (fp16)

fp16 ONNX export of the image encoder of EfficientSAM3 Stage 3 TV-M (TinyViT-11M, efficientsam3_tinyvit.pt) for ONNX Runtime. The file has the name, inputs and outputs of the SAM3 image encoder in krauthaufen/sam3-onnx-fp16 and replaces it in a Sam3.Net model directory; text encoder and decoder are the unchanged SAM3 ones from there. Runs on CUDA / DirectML / CoreML / CPU; ~3.5 GB GPU peak instead of ~6.4 GB with the SAM3 image encoder (8 GB card, DirectML).

file role
sam3_image_encoder.onnx + .data image encoder: uint8 CHW 1008Β² (normalization baked in) β†’ vision_pos_enc_2, backbone_fpn_0/1/2

This was converted from the EfficientSAM3 Stage 3 checkpoint:

  • fp16: onnxconverter_common float16 (keep_io_types=False, max_finite_val=65504), Cast-to-float32 retargeted to float16, value_info cleared.
  • DirectML fix: allowzero removed from Reshape nodes.
  • Accuracy: vs. PyTorch, encoder features rel. error < 1 %; with the SAM3 text encoder and static decoder the detections match EfficientSAM3 in PyTorch.
  • No text encoder: EfficientSAM3's MobileCLIP-S0 text encoder is derived from Apple weights licensed for research only, so SAM3's text encoder (which it was distilled from) is used instead.
  • No interactive features: the checkpoint has no SAM2 neck, so there is no sam3_image_encoder_inst.onnx (no click prompts).

License

The weights are distilled from SAM3 and used with the SAM3 text encoder and decoder, so they are covered by the SAM License (LICENSE); the EfficientSAM3 code is Apache-2.0. These files are derivatives β€” ship a copy of the license with them.

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