notalain commited on
Commit
2c67f8d
·
verified ·
1 Parent(s): 4f24032

Add micro-sam ViT-T EM organelle encoder (network feature)

Browse files

microsam-vit-t-em-encoder.onnx (27 983 702 B, sha256 6479517c...b1ad9): micro-sam vit_t_em_organelles image encoder (BioImage Model Zoo greedy-whale 1.3, CC-BY-4.0), exported by Voxide's scripts/export_microsam_vit_t_onnx.py --model em. SHA256SUMS and README updated.

Files changed (3) hide show
  1. README.md +18 -2
  2. SHA256SUMS +1 -0
  3. microsam-vit-t-em-encoder.onnx +3 -0
README.md CHANGED
@@ -41,9 +41,9 @@ Voxide ships the SAM 2.1 Tiny pair. It downloads the others on request from this
41
  pinned revision and checks every file against the SHA-256 in [`SHA256SUMS`](SHA256SUMS), so a file
42
  that does not match is never loaded.
43
 
44
- It also downloads five **network-feature** models for its pixel classifier (a DINOv2 ViT-S/14,
45
  a DINOv2 ViT-B/14, the first two VGG16 blocks, the Cellpose cyto3 backbone and micro-sam's ViT-T
46
- light-microscopy encoder), pinned and checked the same way: see
47
  [Network-feature models](#network-feature-models-pixel-classifier) for their files, provenance and
48
  licences.
49
 
@@ -128,6 +128,7 @@ by its exact file name, so keep the names as they are when importing them by han
128
  | Cellpose cyto3 backbone | `cellpose-cyto3-backbone.onnx` | 26 483 022 bytes (26 MB) | `e689706a9709ba7fcf70480019bdd1a6a4a94eff05277dfd64d024f2d015195d` | BSD-3-Clause |
129
  | DINOv2 ViT-B/14 with registers | `dinov2-with-registers-base.onnx` | 346 622 747 bytes (347 MB) | `419f8937888b0d4cd607dccaed37b790b48d79cd1aad65a66bf96c7769e3b48b` | Apache-2.0 |
130
  | micro-sam ViT-T (light microscopy) | `microsam-vit-t-lm-encoder.onnx` | 27 983 702 bytes (28 MB) | `f4ee03d6c4e5286ee2a4caf92212ce2cc90349f9f26b0d45c3490e989dc814b3` | CC-BY-4.0 |
 
131
 
132
  ```bash
133
  hf download voxide/voxide-models --include "dinov2-*" "vgg16-*" "cellpose-*" --local-dir voxide-models
@@ -167,6 +168,12 @@ hf download voxide/voxide-models --include "microsam-*" --local-dir voxide-model
167
  the 448 × 448 input to 1024 × 1024 baked in front of it and its attention biases set to zero, as
168
  micro-sam's runtime has them. Input `pixel_values` `[1, 3, 448, 448]` (fixed; ImageNet-normalised
169
  RGB), output `features` `[1, 256, 64, 64]`: one 256-vector per 7 × 7 input pixels.
 
 
 
 
 
 
170
 
171
  ### Licences and attribution
172
 
@@ -196,6 +203,15 @@ hf download voxide/voxide-models --include "microsam-*" --local-dir voxide-model
196
  579–591 (2025). https://doi.org/10.1038/s41592-024-02580-4. Architecture: MobileSAM / TinyViT
197
  (Apache-2.0, https://github.com/ChaoningZhang/MobileSAM), built on Segment Anything (© Meta,
198
  Apache-2.0).
 
 
 
 
 
 
 
 
 
199
 
200
  If you use these models in published work, please cite the original papers:
201
 
 
41
  pinned revision and checks every file against the SHA-256 in [`SHA256SUMS`](SHA256SUMS), so a file
42
  that does not match is never loaded.
43
 
44
+ It also downloads six **network-feature** models for its pixel classifier (a DINOv2 ViT-S/14,
45
  a DINOv2 ViT-B/14, the first two VGG16 blocks, the Cellpose cyto3 backbone and micro-sam's ViT-T
46
+ light-microscopy and electron-microscopy encoders), pinned and checked the same way: see
47
  [Network-feature models](#network-feature-models-pixel-classifier) for their files, provenance and
48
  licences.
49
 
 
128
  | Cellpose cyto3 backbone | `cellpose-cyto3-backbone.onnx` | 26 483 022 bytes (26 MB) | `e689706a9709ba7fcf70480019bdd1a6a4a94eff05277dfd64d024f2d015195d` | BSD-3-Clause |
129
  | DINOv2 ViT-B/14 with registers | `dinov2-with-registers-base.onnx` | 346 622 747 bytes (347 MB) | `419f8937888b0d4cd607dccaed37b790b48d79cd1aad65a66bf96c7769e3b48b` | Apache-2.0 |
130
  | micro-sam ViT-T (light microscopy) | `microsam-vit-t-lm-encoder.onnx` | 27 983 702 bytes (28 MB) | `f4ee03d6c4e5286ee2a4caf92212ce2cc90349f9f26b0d45c3490e989dc814b3` | CC-BY-4.0 |
131
+ | micro-sam ViT-T (electron microscopy) | `microsam-vit-t-em-encoder.onnx` | 27 983 702 bytes (28 MB) | `6479517ccbfe9e5174e00c2235d28ce0f33405698cfdc0764256cbdfe81b1ad9` | CC-BY-4.0 |
132
 
133
  ```bash
134
  hf download voxide/voxide-models --include "dinov2-*" "vgg16-*" "cellpose-*" --local-dir voxide-models
 
168
  the 448 × 448 input to 1024 × 1024 baked in front of it and its attention biases set to zero, as
169
  micro-sam's runtime has them. Input `pixel_values` `[1, 3, 448, 448]` (fixed; ImageNet-normalised
170
  RGB), output `features` `[1, 256, 64, 64]`: one 256-vector per 7 × 7 input pixels.
171
+ - **micro-sam ViT-T (electron microscopy)** — the image encoder of micro-sam's SAM EM Organelle
172
+ Generalist ViT-T (`vit_t_em_organelles`), from the BioImage Model Zoo record `greedy-whale` v1.3,
173
+ file `vit_t.pt` (SHA-256 `d8422c7a2d84ac338476ae59f4c5b56ee44860f7b9fae9269a1270131a496c10`; its
174
+ `model_state`). Exported by the same script (`--model em`) into the same graph as the
175
+ light-microscopy encoder, with the trained attention biases kept, as the Zoo record's own test
176
+ embedding was computed. Same input and output.
177
 
178
  ### Licences and attribution
179
 
 
203
  579–591 (2025). https://doi.org/10.1038/s41592-024-02580-4. Architecture: MobileSAM / TinyViT
204
  (Apache-2.0, https://github.com/ChaoningZhang/MobileSAM), built on Segment Anything (© Meta,
205
  Apache-2.0).
206
+ - **micro-sam ViT-T EM** (CC-BY-4.0) — SAM EM Organelle Generalist (ViT-T) image encoder from
207
+ micro-sam, by Anwai Archit and Constantin Pape (University of Göttingen;
208
+ https://github.com/computational-cell-analytics/micro-sam), BioImage Model Zoo `greedy-whale`
209
+ v1.3 (https://bioimage.io/#/?id=greedy-whale), licensed under CC BY 4.0
210
+ (https://creativecommons.org/licenses/by/4.0/). Changed: the image encoder alone, converted to
211
+ ONNX, with a bilinear resize of a 448 × 448 input to 1024 × 1024 in front of it. Provided as is,
212
+ without warranties. Please cite: Archit, A., Freckmann, L., Nair, S. et al. Segment Anything for
213
+ Microscopy. Nat Methods 22, 579–591 (2025). https://doi.org/10.1038/s41592-024-02580-4.
214
+ Architecture: MobileSAM / TinyViT (Apache-2.0), built on Segment Anything (© Meta, Apache-2.0).
215
 
216
  If you use these models in published work, please cite the original papers:
217
 
SHA256SUMS CHANGED
@@ -1,6 +1,7 @@
1
  e689706a9709ba7fcf70480019bdd1a6a4a94eff05277dfd64d024f2d015195d cellpose-cyto3-backbone.onnx
2
  419f8937888b0d4cd607dccaed37b790b48d79cd1aad65a66bf96c7769e3b48b dinov2-with-registers-base.onnx
3
  815e440d222e60294bb5b165491c4760e7f08dc7ecd2488a5450e93d50887efe dinov2-with-registers-small.onnx
 
4
  f4ee03d6c4e5286ee2a4caf92212ce2cc90349f9f26b0d45c3490e989dc814b3 microsam-vit-t-lm-encoder.onnx
5
  8415257a6befe697151007df917e2fcb79c3c940a643bc664b5e1c8bc67d58df sam2.1_hiera_base_plus_decoder.onnx
6
  ef9090be6ec304505ee16eebb2d6fba61570215d925b76d372e4b33f3f6ab404 sam2.1_hiera_base_plus_encoder.onnx
 
1
  e689706a9709ba7fcf70480019bdd1a6a4a94eff05277dfd64d024f2d015195d cellpose-cyto3-backbone.onnx
2
  419f8937888b0d4cd607dccaed37b790b48d79cd1aad65a66bf96c7769e3b48b dinov2-with-registers-base.onnx
3
  815e440d222e60294bb5b165491c4760e7f08dc7ecd2488a5450e93d50887efe dinov2-with-registers-small.onnx
4
+ 6479517ccbfe9e5174e00c2235d28ce0f33405698cfdc0764256cbdfe81b1ad9 microsam-vit-t-em-encoder.onnx
5
  f4ee03d6c4e5286ee2a4caf92212ce2cc90349f9f26b0d45c3490e989dc814b3 microsam-vit-t-lm-encoder.onnx
6
  8415257a6befe697151007df917e2fcb79c3c940a643bc664b5e1c8bc67d58df sam2.1_hiera_base_plus_decoder.onnx
7
  ef9090be6ec304505ee16eebb2d6fba61570215d925b76d372e4b33f3f6ab404 sam2.1_hiera_base_plus_encoder.onnx
microsam-vit-t-em-encoder.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6479517ccbfe9e5174e00c2235d28ce0f33405698cfdc0764256cbdfe81b1ad9
3
+ size 27983702