notalain commited on
Commit
90b0a59
·
verified ·
1 Parent(s): 8929c79

DINOv2 ViT-B/14 and micro-sam ViT-T (ONNX) for the pixel classifier's network features

Browse files
README.md CHANGED
@@ -1,5 +1,7 @@
1
  ---
2
- license: apache-2.0
 
 
3
  library_name: onnx
4
  pipeline_tag: mask-generation
5
  tags:
@@ -15,12 +17,14 @@ tags:
15
  - dinov2
16
  - vgg16
17
  - cellpose
 
18
  base_model:
19
  - facebook/sam2.1-hiera-tiny
20
  - facebook/sam2.1-hiera-small
21
  - facebook/sam2.1-hiera-base-plus
22
  - facebook/sam2.1-hiera-large
23
  - facebook/dinov2-with-registers-small
 
24
  ---
25
 
26
  # Voxide segmentation models (ONNX)
@@ -33,8 +37,9 @@ Voxide ships the SAM 2.1 Tiny pair. It downloads the others on request from this
33
  pinned revision and checks every file against the SHA-256 in [`SHA256SUMS`](SHA256SUMS), so a file
34
  that does not match is never loaded.
35
 
36
- It also downloads three **network-feature** models for its pixel classifier (a DINOv2 ViT-S/14,
37
- the first two VGG16 blocks and the Cellpose cyto3 backbone), pinned and checked the same way: see
 
38
  [Network-feature models](#network-feature-models-pixel-classifier) for their files, provenance and
39
  licences.
40
 
@@ -72,9 +77,13 @@ and so are these exports.
72
  - **SAM 2.1** © Meta Platforms, Inc. — <https://github.com/facebookresearch/sam2>
73
  - **SAM-Med3D** © the SAM-Med3D authors — <https://github.com/uni-medical/SAM-Med3D>
74
 
75
- The network-feature models carry their own licences (Apache-2.0 and BSD-3-Clause): see
76
  [their section](#network-feature-models-pixel-classifier).
77
 
 
 
 
 
78
  If you use these models in published work, please cite the original papers:
79
 
80
  ```bibtex
@@ -104,9 +113,12 @@ by its exact file name, so keep the names as they are when importing them by han
104
  | DINOv2 ViT-S/14 with registers | `dinov2-with-registers-small.onnx` | 88 522 426 bytes (89 MB) | `815e440d222e60294bb5b165491c4760e7f08dc7ecd2488a5450e93d50887efe` | Apache-2.0 |
105
  | VGG16 blocks 1–2 | `vgg16-blocks12.onnx` | 1 042 858 bytes (1 MB) | `230fb1431be9f9b6088fc68c24d4ff8c4894e7ef8ae3b16e14e0116b351f1b45` | BSD-3-Clause |
106
  | Cellpose cyto3 backbone | `cellpose-cyto3-backbone.onnx` | 26 483 022 bytes (26 MB) | `e689706a9709ba7fcf70480019bdd1a6a4a94eff05277dfd64d024f2d015195d` | BSD-3-Clause |
 
 
107
 
108
  ```bash
109
  hf download voxide/voxide-models --include "dinov2-*" "vgg16-*" "cellpose-*" --local-dir voxide-models
 
110
  ```
111
 
112
  ### Provenance
@@ -116,6 +128,12 @@ hf download voxide/voxide-models --include "dinov2-*" "vgg16-*" "cellpose-*" --l
116
  `onnx/model.onnx` at revision `ec7abea1a8757ec4f9f7b26399d31234ffaa6e6a`), copied here unchanged
117
  under a new name. Input `pixel_values` `[N, 3, H, W]` (H and W multiples of 14), output
118
  `last_hidden_state`; opset 14.
 
 
 
 
 
 
119
  - **VGG16 blocks 1–2** — torchvision's ImageNet VGG16 (`VGG16_Weights.IMAGENET1K_V1`,
120
  `vgg16-397923af.pth`), cut after the second convolution block: the ReLU outputs of conv1_2 (64
121
  channels) and of conv2_2 (128 channels, upsampled ×2 inside the graph), concatenated to a
@@ -128,12 +146,23 @@ hf download voxide/voxide-models --include "dinov2-*" "vgg16-*" "cellpose-*" --l
128
  1st–99th-percentile-normalised plane, channel 1 the nuclei channel or zeros). Exported by
129
  `scripts/export_cellpose_onnx.py` in the Voxide repository (pinned cellpose 3.1, onnx 1.22;
130
  opset 17). The weights are unmodified.
 
 
 
 
 
 
 
 
131
 
132
  ### Licences and attribution
133
 
134
  - **DINOv2** © Meta Platforms, Inc., Apache License 2.0 (see [`LICENSE`](LICENSE)) —
135
  <https://github.com/facebookresearch/dinov2>, <https://huggingface.co/facebook/dinov2-with-registers-small>;
136
  ONNX export by onnx-community — <https://huggingface.co/onnx-community/dinov2-with-registers-small>.
 
 
 
137
  - **VGG16 weights** from torchvision — <https://github.com/pytorch/vision>, BSD-3-Clause
138
  (<https://github.com/pytorch/vision/blob/main/LICENSE>).
139
  - **Cellpose** © Howard Hughes Medical Institute (HHMI) / MouseLand — <https://github.com/MouseLand/cellpose>,
@@ -143,6 +172,17 @@ hf download voxide/voxide-models --include "dinov2-*" "vgg16-*" "cellpose-*" --l
143
  the datasets the built-in models were trained on include images under CC-BY-NC licences; check
144
  that your use fits those terms. Use of the built-in models in Voxide was confirmed with the
145
  Cellpose authors on 2026-10-24.
 
 
 
 
 
 
 
 
 
 
 
146
 
147
  If you use these models in published work, please cite the original papers:
148
 
@@ -183,4 +223,14 @@ If you use these models in published work, please cite the original papers:
183
  journal = {Nature Methods},
184
  year = {2025}
185
  }
 
 
 
 
 
 
 
 
 
 
186
  ```
 
1
  ---
2
+ license: other
3
+ license_name: per-file
4
+ license_link: https://huggingface.co/voxide/voxide-models#license-and-attribution
5
  library_name: onnx
6
  pipeline_tag: mask-generation
7
  tags:
 
17
  - dinov2
18
  - vgg16
19
  - cellpose
20
+ - micro-sam
21
  base_model:
22
  - facebook/sam2.1-hiera-tiny
23
  - facebook/sam2.1-hiera-small
24
  - facebook/sam2.1-hiera-base-plus
25
  - facebook/sam2.1-hiera-large
26
  - facebook/dinov2-with-registers-small
27
+ - facebook/dinov2-with-registers-base
28
  ---
29
 
30
  # Voxide segmentation models (ONNX)
 
37
  pinned revision and checks every file against the SHA-256 in [`SHA256SUMS`](SHA256SUMS), so a file
38
  that does not match is never loaded.
39
 
40
+ It also downloads five **network-feature** models for its pixel classifier (a DINOv2 ViT-S/14,
41
+ a DINOv2 ViT-B/14, the first two VGG16 blocks, the Cellpose cyto3 backbone and micro-sam's ViT-T
42
+ light-microscopy encoder), pinned and checked the same way: see
43
  [Network-feature models](#network-feature-models-pixel-classifier) for their files, provenance and
44
  licences.
45
 
 
77
  - **SAM 2.1** © Meta Platforms, Inc. — <https://github.com/facebookresearch/sam2>
78
  - **SAM-Med3D** © the SAM-Med3D authors — <https://github.com/uni-medical/SAM-Med3D>
79
 
80
+ The network-feature models carry their own licences (Apache-2.0, BSD-3-Clause and CC-BY-4.0): see
81
  [their section](#network-feature-models-pixel-classifier).
82
 
83
+ With micro-sam's ViT-T encoder (CC-BY-4.0) among them, this card's licence is per file
84
+ (`license: other`): Apache-2.0, BSD-3-Clause or CC-BY-4.0, as listed for each file, with the
85
+ attribution each licence requires under [Licences and attribution](#licences-and-attribution).
86
+
87
  If you use these models in published work, please cite the original papers:
88
 
89
  ```bibtex
 
113
  | DINOv2 ViT-S/14 with registers | `dinov2-with-registers-small.onnx` | 88 522 426 bytes (89 MB) | `815e440d222e60294bb5b165491c4760e7f08dc7ecd2488a5450e93d50887efe` | Apache-2.0 |
114
  | VGG16 blocks 1–2 | `vgg16-blocks12.onnx` | 1 042 858 bytes (1 MB) | `230fb1431be9f9b6088fc68c24d4ff8c4894e7ef8ae3b16e14e0116b351f1b45` | BSD-3-Clause |
115
  | Cellpose cyto3 backbone | `cellpose-cyto3-backbone.onnx` | 26 483 022 bytes (26 MB) | `e689706a9709ba7fcf70480019bdd1a6a4a94eff05277dfd64d024f2d015195d` | BSD-3-Clause |
116
+ | DINOv2 ViT-B/14 with registers | `dinov2-with-registers-base.onnx` | 346 622 747 bytes (347 MB) | `419f8937888b0d4cd607dccaed37b790b48d79cd1aad65a66bf96c7769e3b48b` | Apache-2.0 |
117
+ | micro-sam ViT-T (light microscopy) | `microsam-vit-t-lm-encoder.onnx` | 27 983 702 bytes (28 MB) | `f4ee03d6c4e5286ee2a4caf92212ce2cc90349f9f26b0d45c3490e989dc814b3` | CC-BY-4.0 |
118
 
119
  ```bash
120
  hf download voxide/voxide-models --include "dinov2-*" "vgg16-*" "cellpose-*" --local-dir voxide-models
121
+ hf download voxide/voxide-models --include "microsam-*" --local-dir voxide-models
122
  ```
123
 
124
  ### Provenance
 
128
  `onnx/model.onnx` at revision `ec7abea1a8757ec4f9f7b26399d31234ffaa6e6a`), copied here unchanged
129
  under a new name. Input `pixel_values` `[N, 3, H, W]` (H and W multiples of 14), output
130
  `last_hidden_state`; opset 14.
131
+ - **DINOv2 ViT-B/14 with registers** — Meta AI's `facebook/dinov2-with-registers-base`, in the
132
+ fp32 ONNX export by onnx-community (`onnx-community/dinov2-with-registers-base`, file
133
+ `onnx/model.onnx` at revision `fcd050203baf48e192055356f379b5949a111255`), copied here unchanged
134
+ under a new name. Input `pixel_values` `[N, 3, H, W]` (H and W multiples of 14), output
135
+ `last_hidden_state`; opset 14. Voxide reads 768 features per 14 × 14 patch (768 × 32 × 32 for a
136
+ 448 × 448 tile).
137
  - **VGG16 blocks 1–2** — torchvision's ImageNet VGG16 (`VGG16_Weights.IMAGENET1K_V1`,
138
  `vgg16-397923af.pth`), cut after the second convolution block: the ReLU outputs of conv1_2 (64
139
  channels) and of conv2_2 (128 channels, upsampled ×2 inside the graph), concatenated to a
 
146
  1st–99th-percentile-normalised plane, channel 1 the nuclei channel or zeros). Exported by
147
  `scripts/export_cellpose_onnx.py` in the Voxide repository (pinned cellpose 3.1, onnx 1.22;
148
  opset 17). The weights are unmodified.
149
+ - **micro-sam ViT-T (light microscopy)** — the image encoder of micro-sam's SAM LM Generalist
150
+ ViT-T (`vit_t_lm`), from the BioImage Model Zoo record `faithful-chicken` v1.1, file `vit_t.pt`
151
+ (SHA-256 `32b92ab64959088878a1cc3e52b9b64aaa0ba4b24c98e9959746d7390bec7b7a`). Exported by
152
+ `scripts/export_microsam_vit_t_onnx.py` in the Voxide repository (pinned torch 2.14, onnx 1.22;
153
+ opset 17): the image encoder alone (no prompt encoder or mask decoder), with a bilinear resize of
154
+ the 448 × 448 input to 1024 × 1024 baked in front of it and its attention biases set to zero, as
155
+ micro-sam's runtime has them. Input `pixel_values` `[1, 3, 448, 448]` (fixed; ImageNet-normalised
156
+ RGB), output `features` `[1, 256, 64, 64]`: one 256-vector per 7 × 7 input pixels.
157
 
158
  ### Licences and attribution
159
 
160
  - **DINOv2** © Meta Platforms, Inc., Apache License 2.0 (see [`LICENSE`](LICENSE)) —
161
  <https://github.com/facebookresearch/dinov2>, <https://huggingface.co/facebook/dinov2-with-registers-small>;
162
  ONNX export by onnx-community — <https://huggingface.co/onnx-community/dinov2-with-registers-small>.
163
+ - **DINOv2 ViT-B/14** © Meta Platforms, Inc., Apache License 2.0 (see [`LICENSE`](LICENSE)) —
164
+ <https://github.com/facebookresearch/dinov2>, <https://huggingface.co/facebook/dinov2-with-registers-base>;
165
+ ONNX export by onnx-community — <https://huggingface.co/onnx-community/dinov2-with-registers-base>.
166
  - **VGG16 weights** from torchvision — <https://github.com/pytorch/vision>, BSD-3-Clause
167
  (<https://github.com/pytorch/vision/blob/main/LICENSE>).
168
  - **Cellpose** © Howard Hughes Medical Institute (HHMI) / MouseLand — <https://github.com/MouseLand/cellpose>,
 
172
  the datasets the built-in models were trained on include images under CC-BY-NC licences; check
173
  that your use fits those terms. Use of the built-in models in Voxide was confirmed with the
174
  Cellpose authors on 2026-10-24.
175
+ - **micro-sam ViT-T** (CC-BY-4.0) — SAM LM Generalist (ViT-T) image encoder from micro-sam, by
176
+ Anwai Archit and Constantin Pape (University of Göttingen;
177
+ https://github.com/computational-cell-analytics/micro-sam), BioImage Model Zoo `faithful-chicken`
178
+ v1.1 (https://bioimage.io/#/?id=faithful-chicken), licensed under CC BY 4.0
179
+ (https://creativecommons.org/licenses/by/4.0/). Changed: the image encoder alone, converted to
180
+ ONNX, with a bilinear resize of a 448 × 448 input to 1024 × 1024 in front of it and its attention
181
+ biases set to zero as micro-sam's runtime has them. Provided as is, without warranties. Please
182
+ cite: Archit, A., Freckmann, L., Nair, S. et al. Segment Anything for Microscopy. Nat Methods 22,
183
+ 579–591 (2025). https://doi.org/10.1038/s41592-024-02580-4. Architecture: MobileSAM / TinyViT
184
+ (Apache-2.0, https://github.com/ChaoningZhang/MobileSAM), built on Segment Anything (© Meta,
185
+ Apache-2.0).
186
 
187
  If you use these models in published work, please cite the original papers:
188
 
 
223
  journal = {Nature Methods},
224
  year = {2025}
225
  }
226
+
227
+ @article{archit2025microsam,
228
+ title = {Segment Anything for Microscopy},
229
+ author = {Archit, Anwai and Freckmann, Luca and Nair, Sushmita and others},
230
+ journal = {Nature Methods},
231
+ volume = {22},
232
+ pages = {579--591},
233
+ year = {2025},
234
+ doi = {10.1038/s41592-024-02580-4}
235
+ }
236
  ```
SHA256SUMS CHANGED
@@ -1,5 +1,7 @@
1
  e689706a9709ba7fcf70480019bdd1a6a4a94eff05277dfd64d024f2d015195d cellpose-cyto3-backbone.onnx
 
2
  815e440d222e60294bb5b165491c4760e7f08dc7ecd2488a5450e93d50887efe dinov2-with-registers-small.onnx
 
3
  8415257a6befe697151007df917e2fcb79c3c940a643bc664b5e1c8bc67d58df sam2.1_hiera_base_plus_decoder.onnx
4
  ef9090be6ec304505ee16eebb2d6fba61570215d925b76d372e4b33f3f6ab404 sam2.1_hiera_base_plus_encoder.onnx
5
  d1b0b21c71d9bfa63e247a7dfb13c3ea977cf96869d94e65304595af9741e225 sam2.1_hiera_large_decoder.onnx
 
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
7
  d1b0b21c71d9bfa63e247a7dfb13c3ea977cf96869d94e65304595af9741e225 sam2.1_hiera_large_decoder.onnx
dinov2-with-registers-base.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:419f8937888b0d4cd607dccaed37b790b48d79cd1aad65a66bf96c7769e3b48b
3
+ size 346622747
microsam-vit-t-lm-encoder.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f4ee03d6c4e5286ee2a4caf92212ce2cc90349f9f26b0d45c3490e989dc814b3
3
+ size 27983702