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

DINOv2 ViT-S/14, VGG16 blocks 1–2 and the Cellpose cyto3 backbone (ONNX) for the pixel classifier's network features

Browse files
README.md CHANGED
@@ -10,11 +10,17 @@ tags:
10
  - microscopy
11
  - medical-imaging
12
  - interactive-segmentation
 
 
 
 
 
13
  base_model:
14
  - facebook/sam2.1-hiera-tiny
15
  - facebook/sam2.1-hiera-small
16
  - facebook/sam2.1-hiera-base-plus
17
  - facebook/sam2.1-hiera-large
 
18
  ---
19
 
20
  # Voxide segmentation models (ONNX)
@@ -27,6 +33,11 @@ Voxide ships the SAM 2.1 Tiny pair. It downloads the others on request from this
27
  pinned revision and checks every file against the SHA-256 in [`SHA256SUMS`](SHA256SUMS), so a file
28
  that does not match is never loaded.
29
 
 
 
 
 
 
30
  ## Files
31
 
32
  | Model | Encoder | Decoder | Use in Voxide |
@@ -61,6 +72,9 @@ and so are these exports.
61
  - **SAM 2.1** © Meta Platforms, Inc. — <https://github.com/facebookresearch/sam2>
62
  - **SAM-Med3D** © the SAM-Med3D authors — <https://github.com/uni-medical/SAM-Med3D>
63
 
 
 
 
64
  If you use these models in published work, please cite the original papers:
65
 
66
  ```bibtex
@@ -78,3 +92,95 @@ If you use these models in published work, please cite the original papers:
78
  year = {2023}
79
  }
80
  ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  - microscopy
11
  - medical-imaging
12
  - interactive-segmentation
13
+ - feature-extraction
14
+ - pixel-classification
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
  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
+
41
  ## Files
42
 
43
  | Model | Encoder | Decoder | Use in Voxide |
 
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
 
92
  year = {2023}
93
  }
94
  ```
95
+
96
+ ## Network-feature models (pixel classifier)
97
+
98
+ Feature extractors for Voxide's pixel classifier: each turns an image tile into a per-pixel feature
99
+ map that the classifier trains on. Single files, run on the CPU with ONNX Runtime; Voxide finds each
100
+ by its exact file name, so keep the names as they are when importing them by hand.
101
+
102
+ | Model | File | Size | SHA-256 | Licence |
103
+ |---|---|---|---|---|
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
113
+
114
+ - **DINOv2 ViT-S/14 with registers** — Meta AI's `facebook/dinov2-with-registers-small`, in the
115
+ fp32 ONNX export by onnx-community (`onnx-community/dinov2-with-registers-small`, file
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
122
+ 192-channel stride-1 map. Exported by
123
+ `scripts/export_vgg16_onnx.py` in the Voxide repository (pinned
124
+ torch 2.9, torchvision 0.24, onnx 1.22; opset 17). The weights are unmodified.
125
+ - **Cellpose cyto3 backbone** — Cellpose 3's built-in `cyto3` model (cellpose 3.1.1), the U-Net's
126
+ 32-channel stride-1 decoder output before the final 1×1 output convolution (no flows or cell
127
+ probability). Input `pixel_values` `[1, 2, H, W]` (H and W multiples of 16; channel 0 the
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>,
140
+ BSD-3-Clause (<https://github.com/MouseLand/cellpose/blob/main/LICENSE>). The same cyto3 weights
141
+ are redistributed by the BioImage Model Zoo as `famous-fish` ("CellPose(cyto3)",
142
+ <https://bioimage.io/#/?id=famous-fish>) under BSD-3-Clause. **Note:** per the Cellpose README,
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
+
149
+ ```bibtex
150
+ @article{oquab2023dinov2,
151
+ title = {DINOv2: Learning Robust Visual Features without Supervision},
152
+ author = {Oquab, Maxime and others},
153
+ journal = {arXiv preprint arXiv:2304.07193},
154
+ year = {2023}
155
+ }
156
+
157
+ @article{darcet2023registers,
158
+ title = {Vision Transformers Need Registers},
159
+ author = {Darcet, Timoth{\'e}e and Oquab, Maxime and Mairal, Julien and Bojanowski, Piotr},
160
+ journal = {arXiv preprint arXiv:2309.16588},
161
+ year = {2023}
162
+ }
163
+
164
+ @article{simonyan2014vgg,
165
+ title = {Very Deep Convolutional Networks for Large-Scale Image Recognition},
166
+ author = {Simonyan, Karen and Zisserman, Andrew},
167
+ journal = {arXiv preprint arXiv:1409.1556},
168
+ year = {2014}
169
+ }
170
+
171
+ @article{stringer2021cellpose,
172
+ title = {Cellpose: a generalist algorithm for cellular segmentation},
173
+ author = {Stringer, Carsen and Wang, Tim and Michaelos, Michalis and Pachitariu, Marius},
174
+ journal = {Nature Methods},
175
+ volume = {18},
176
+ pages = {100--106},
177
+ year = {2021}
178
+ }
179
+
180
+ @article{stringer2025cellpose3,
181
+ title = {Cellpose3: one-click image restoration for improved cellular segmentation},
182
+ author = {Stringer, Carsen and Pachitariu, Marius},
183
+ journal = {Nature Methods},
184
+ year = {2025}
185
+ }
186
+ ```
SHA256SUMS CHANGED
@@ -1,3 +1,5 @@
 
 
1
  8415257a6befe697151007df917e2fcb79c3c940a643bc664b5e1c8bc67d58df sam2.1_hiera_base_plus_decoder.onnx
2
  ef9090be6ec304505ee16eebb2d6fba61570215d925b76d372e4b33f3f6ab404 sam2.1_hiera_base_plus_encoder.onnx
3
  d1b0b21c71d9bfa63e247a7dfb13c3ea977cf96869d94e65304595af9741e225 sam2.1_hiera_large_decoder.onnx
@@ -8,3 +10,4 @@ d1b0b21c71d9bfa63e247a7dfb13c3ea977cf96869d94e65304595af9741e225 sam2.1_hiera_l
8
  ac335045c272ef63a74488da140fe4cf2e8ddd5db2e65c4ad29949964ac81720 sam2.1_hiera_tiny_encoder.onnx
9
  4924ac906714544178072b4307d427a1e519758e15de9529d8fe0a0b21f7cff8 sammed3d_turbo_decoder.onnx
10
  2316e6d570d129a9787c2f46e534d087e4d3ba364234d15959e95932c543ad4d sammed3d_turbo_encoder.onnx
 
 
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
 
10
  ac335045c272ef63a74488da140fe4cf2e8ddd5db2e65c4ad29949964ac81720 sam2.1_hiera_tiny_encoder.onnx
11
  4924ac906714544178072b4307d427a1e519758e15de9529d8fe0a0b21f7cff8 sammed3d_turbo_decoder.onnx
12
  2316e6d570d129a9787c2f46e534d087e4d3ba364234d15959e95932c543ad4d sammed3d_turbo_encoder.onnx
13
+ 230fb1431be9f9b6088fc68c24d4ff8c4894e7ef8ae3b16e14e0116b351f1b45 vgg16-blocks12.onnx
cellpose-cyto3-backbone.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e689706a9709ba7fcf70480019bdd1a6a4a94eff05277dfd64d024f2d015195d
3
+ size 26483022
dinov2-with-registers-small.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:815e440d222e60294bb5b165491c4760e7f08dc7ecd2488a5450e93d50887efe
3
+ size 88522426
vgg16-blocks12.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:230fb1431be9f9b6088fc68c24d4ff8c4894e7ef8ae3b16e14e0116b351f1b45
3
+ size 1042858