FastSAM-s ONNX (fp32)
ONNX export of FastSAM-s (YOLOv8s-seg, ~11.8M params) for click-to-select segmentation on CPU. Used by MicrostockEngine to mask a watermark from a single click before inpainting.
Provenance
- Source weights: ultralytics
FastSAM-s.pt, assets releasev8.4.0. - Export:
ultralytics8.4.107,imgsz=1024,opset=17, simplified withonnxslim. - No quantization โ full fp32.
I/O contract
- input
images:[1, 3, 1024, 1024]float32, values0..1, letterboxed top-left with pad value114/255. - output0:
[1, 37, 21504]โ per anchor: 4 box (xywh, in 1024-space) + 1 class score (sigmoid already applied; FastSAM is class-agnostic) + 32 mask coefficients. - output1:
[1, 32, 256, 256]โ 32 mask prototypes at a quarter of input resolution. An instance mask issigmoid(sum(coeff_i * proto_i)), cropped to its own box.
Licence
Apache-2.0 (CASIA-IVA-Lab/FastSAM). The weights were trained with Ultralytics code (AGPL-3.0); noted here so the provenance is not lost.
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐ Ask for provider support