File size: 2,421 Bytes
9fbdabc 5524b8b 9fbdabc 5524b8b 9fbdabc 5524b8b 9fbdabc 5524b8b 65a020c 9fbdabc 65a020c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | # micro-sam ViT-T generalists (ONNX)
This folder holds ONNX (opset 17) exports of micro-sam's ViT-T models for the Neurodesk micro-sam
web app:
## Light-microscopy generalist (`vit_t_lm`)
`microsam-vit-t-lm-encoder.onnx` and `microsam-vit-t-lm-decoder.onnx` are the image encoder and
the prompt decoder of micro-sam's `vit_t_lm` model.
- Model: "SAM LM Generalist (ViT-T)", BioImage.IO `faithful-chicken` version 1.1,
https://uk1s3.embassy.ebi.ac.uk/public-datasets/bioimage.io/faithful-chicken/1.1/files/vit_t.pt
(sha256 `32b92ab64959088878a1cc3e52b9b64aaa0ba4b24c98e9959746d7390bec7b7a`).
## Electron-microscopy organelle generalist (`vit_t_em_organelles`)
`microsam-vit-t-em-organelles-encoder.onnx` and `microsam-vit-t-em-organelles-decoder.onnx` are
the image encoder and the prompt decoder of micro-sam's `vit_t_em_organelles` model.
- Model: "SAM EM Organelle Generalist (ViT-T)", BioImage.IO `greedy-whale` version 1.3,
https://hypha.aicell.io/bioimage-io/artifacts/greedy-whale/files/vit_t.pt
(sha256 `d8422c7a2d84ac338476ae59f4c5b56ee44860f7b9fae9269a1270131a496c10`).
## Attribution, licence and modifications
- Authors: Anwai Archit, Constantin Pape (University of Göttingen) and the micro-sam contributors.
- Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/), as stated in each model's
BioImage.IO manifest. Both models are fine-tuned from MobileSAM (Zhang et al. 2023, Apache-2.0),
itself distilled from Segment Anything (Kirillov et al. 2023, Apache-2.0).
- Cite: Archit, A. et al. Segment Anything for Microscopy. Nature Methods 22, 579-591 (2025).
https://doi.org/10.1038/s41592-024-02580-4
- Modifications (CC BY 4.0 section 3(a)(1)(B)): converted to ONNX with
`apps/microsam/validation/export_onnx.py` in github.com/neurodesk/webapps (torch 2.5.1,
MobileSAM), in the state `micro_sam.util.get_sam_model` returns the model. TinyViT's cached
attention biases (`Attention.ab`) are the zero cache MobileSAM's builder computes before the
checkpoint is loaded, and that cache is folded into the encoder, so the checkpoint's trained
attention biases (`attention_biases`) are not used; every other weight is the checkpoint's. The
decoder returns all four mask tokens.
- The encoder and decoder graphs are traced from MobileSAM and Segment Anything code, licensed
under the Apache License, Version 2.0; the full text is `LICENSE-APACHE-2.0` in this folder.
|