Zum Inhalt springen
ModelAufgelistetExtern
Browse files

Patho Sam Vit B Onnx

Promptable patho-sam (vitbhistopathology, distributed via micro-sam's model registry) exported to ONNX for client-side inference with onnxruntime-web + WebGPU, used by the JAX Image Tools viewer (jit-ui#90) SAM...

ArtOtherVersionDecoderCBewertung

Modellquelle

Art
Other
Dateigröße
15,7–172 MB
Version
vDecoder
Aktualisiert
1. Nov. 2026
Quelle
Hugging Face

Quellenbeschreibung

patho-sam ViT-B (histopathology) — ONNX (browser/WebGPU)

Promptable patho-sam (vit_b_histopathology, distributed via micro-sam's model registry) exported to ONNX for client-side inference with onnxruntime-web + WebGPU, used by the JAX Image Tools viewer (jit-ui#90) SAM segment tool. Finetuned for H&E / stained tissue — the histopathology sibling of microsam-vit-b-lm-onnx.

Two graphs (SAM v1 I/O):

filein → outrun
encoder.fp16.onnx (fp16, ~172 MB)image (1,3,1024,1024) fp32 → embedding (1,256,64,64) fp32once per image
decoder.onnx (fp32, ~16 MB)embedding + box/point prompts → mask (resized to orig size)per prompt
  • Image preprocessing (resize long side → 1024, SAM normalize, pad) is done on the client; the encoder is pure tensor I/O. fp16 keeps fp32 I/O.
  • fp16 produced with onnxruntime.transformers.float16.
  • Box prompt = two points labelled 2/3; positive/negative points 1/0.

Export tooling: the sam-js project (export/export_sam_onnx.py --microsam vit_b_histopathology). Base model: patho-sam vit_b_histopathology (ViT-Base; Segment Anything, Apache-2.0). See patho-sam / micro-sam for model license.

Quellen

1 Quelle
Hugging FacePrimärVersion b1a66397ae5d079f5b89c97d90e3320f58d3fcb6
huggingface.co/Ballon999/patho-sam-vit-b-onnx/tree/b1a66397ae5d079f5b89c97d90e3320f58d3fcb6

Verifiziert 1. Nov.

Download files

Modellartefakte

3 Artefakte

decoder.onnx

onnx · 15,7 MB · SHA-256 c1da6ff3b2b3…05bd · Hugging Face

Download file

encoder.fp16.onnx

onnx · FP16 (unverified) · 172 MB · SHA-256 1c7c53b649f6…9fc4 · Hugging Face

Download file

encoder.int8.onnx

onnx · INT8 (unverified) · 95,6 MB · SHA-256 0c4be89730c9…8f9d · Hugging Face

Download file

Quellenauszüge

2 Auszüge

--- license: cc-by-4.0 tags: - segment-anything - patho-sam - histopathology - onnx - webgpu - image-segmentation library_name: onnxruntime --- # patho-sam ViT-B (histopathology) — ONNX (browser/WebGPU) Promptable [patho-sam](https://github.com/computational-cell-analytics/patho-sam) (`vit_b_histopathology`, distributed via micro-sam's model registry) exported to ONNX for client-side inference with **onnxruntime-web + WebGPU**, used by the JAX Image Tools viewer (jit-ui#90) SAM segment tool. Finetuned for H&E / stained tissue — the histopathology sibling of `microsam-vit-b-lm-onnx`. Two graphs (SAM v1 I/O): | file | in → out | run | |---|---|---| | `encoder.fp16.onnx` (fp16, ~172 MB) | image `(1,3,1024,1024)` fp32 → embedding `(1,256,64,64)` fp32 | once per image | | `decoder.onnx` (fp32, ~16 MB) | embedding + box/point prompts → mask (resized to orig size) | per prompt | - Image preprocessing (resize long side → 1024, SAM normalize, pad) is done on the client; the encoder is pure tensor I/O. fp16 keeps fp32 I/O. - fp16 produced with `onnxruntime.transformers.float16`. - Box prompt = two points labelled `2`/`3`; positive/negative points `1`/`0`. Export tooling: the `sam-js` project (`export/export_sam_onnx.py --microsam vit_b_histopathology`). Base model: patho-sam `vit_b_histopathology` (ViT-Base; Segment Anything, Apache-2.0). See patho-sam / micro-sam for model license.

Source context: 0 downloads · 0 likes · Pipeline image-segmentation · Library onnxruntime · Repo Ballon999/patho-sam-vit-b-onnx