Views
No views yet
sam2-split-w8a8.zip (86,835,041 bytes) contains six flat files — each .onnx
references its .data by bare filename, so they must extract to one directory:| File | Inputs → outputs | Runs |
|---|---|---|
trunk.onnx / .data | image → embeddings, high-res features, pix_feat | once per image |
prompt.onnx / .data | unnorm_coords, labels → sparse_embedding | once per tap (3 KB) |
decoder.onnx / .data | embeddings + sparse_embedding → masks, scores | once per tap |
sparse_embedding varies — so
cutting at that seam turns ~817 ms per tap into ~817 ms per image plus ~28 ms per tap
(measured, Snapdragon 8 Elite, CPU EP, 4 threads).masks [1,4,256,256] and slices [0:1]. Token 0 is the single-mask head, which blends
the competing interpretations of an ambiguous point prompt and visibly bleeds past object
boundaries; tokens 1–3 are the real granularity candidates. The Slice node's ends is
widened 1 → 4. The trailing QuantizeLinear is untouched, so masks remain uint8 on
the same scale/zero-point (0.3612250089645386 / 165) — only the channel count changes.trunk + prompt + decoder is bit-identical to encoder + decoder at all five clicks.unnorm_coords wants NORMALISED coordinates, in [0, 1], despite the name.
Pixel coordinates return a confidently misplaced mask.-1
(marking the second point slot unused) matters. There are no negative/background points.metadata.json.facebookresearch/sam2. Redistributed with attribution to
Meta AI (original model) and Qualcomm AI Hub (the ONNX export these files derive from).