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