Mask Generation
ONNX
sam2
segment-anything
sam-med3d
microscopy
medical-imaging
interactive-segmentation
feature-extraction
pixel-classification
dinov2
vgg16
cellpose
micro-sam
spotiflow
spot-detection
stardist
instanseg
nucleus-segmentation
Instructions to use voxide/voxide-models with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sam2
How to use voxide/voxide-models with sam2:
# Use SAM2 with images import torch from sam2.sam2_image_predictor import SAM2ImagePredictor predictor = SAM2ImagePredictor.from_pretrained("voxide/voxide-models") with torch.inference_mode(), torch.autocast("cuda", dtype=torch.bfloat16): predictor.set_image(<your_image>) masks, _, _ = predictor.predict(<input_prompts>)# Use SAM2 with videos import torch from sam2.sam2_video_predictor import SAM2VideoPredictor predictor = SAM2VideoPredictor.from_pretrained("voxide/voxide-models") with torch.inference_mode(), torch.autocast("cuda", dtype=torch.bfloat16): state = predictor.init_state(<your_video>) # add new prompts and instantly get the output on the same frame frame_idx, object_ids, masks = predictor.add_new_points(state, <your_prompts>) # propagate the prompts to get masklets throughout the video for frame_idx, object_ids, masks in predictor.propagate_in_video(state): ... - Notebooks
- Google Colab
- Kaggle
Spotiflow hybiss (ONNX) for Voxide's Find dots (BSD-3-Clause)
Browse files- README.md +57 -4
- SHA256SUMS +1 -0
- spotiflow-hybiss.onnx +3 -0
README.md
CHANGED
|
@@ -18,6 +18,8 @@ tags:
|
|
| 18 |
- vgg16
|
| 19 |
- cellpose
|
| 20 |
- micro-sam
|
|
|
|
|
|
|
| 21 |
base_model:
|
| 22 |
- facebook/sam2.1-hiera-tiny
|
| 23 |
- facebook/sam2.1-hiera-small
|
|
@@ -43,6 +45,9 @@ 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 |
|
|
|
|
|
|
|
|
|
|
| 46 |
## Files
|
| 47 |
|
| 48 |
| Model | Encoder | Decoder | Use in Voxide |
|
|
@@ -77,10 +82,12 @@ and so are these exports.
|
|
| 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, so this card's
|
| 81 |
-
(`license: other`): Apache-2.0, BSD-3-Clause or CC-BY-4.0 (micro-sam's ViT-T
|
| 82 |
-
each file in [their section](#network-feature-models-pixel-classifier)
|
| 83 |
-
|
|
|
|
|
|
|
| 84 |
|
| 85 |
If you use these models in published work, please cite the original papers:
|
| 86 |
|
|
@@ -232,3 +239,49 @@ If you use these models in published work, please cite the original papers:
|
|
| 232 |
doi = {10.1038/s41592-024-02580-4}
|
| 233 |
}
|
| 234 |
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
- vgg16
|
| 19 |
- cellpose
|
| 20 |
- micro-sam
|
| 21 |
+
- spotiflow
|
| 22 |
+
- spot-detection
|
| 23 |
base_model:
|
| 24 |
- facebook/sam2.1-hiera-tiny
|
| 25 |
- facebook/sam2.1-hiera-small
|
|
|
|
| 45 |
[Network-feature models](#network-feature-models-pixel-classifier) for their files, provenance and
|
| 46 |
licences.
|
| 47 |
|
| 48 |
+
And it downloads one **spot-detection** model for finding dots: Spotiflow's `hybiss` model, see
|
| 49 |
+
[Spot-detection model](#spot-detection-model-dots).
|
| 50 |
+
|
| 51 |
## Files
|
| 52 |
|
| 53 |
| Model | Encoder | Decoder | Use in Voxide |
|
|
|
|
| 82 |
- **SAM 2.1** © Meta Platforms, Inc. — <https://github.com/facebookresearch/sam2>
|
| 83 |
- **SAM-Med3D** © the SAM-Med3D authors — <https://github.com/uni-medical/SAM-Med3D>
|
| 84 |
|
| 85 |
+
The network-feature models and the spot-detection model carry their own licences, so this card's
|
| 86 |
+
licence is per file (`license: other`): Apache-2.0, BSD-3-Clause or CC-BY-4.0 (micro-sam's ViT-T
|
| 87 |
+
encoder), as listed for each file in [their section](#network-feature-models-pixel-classifier) and
|
| 88 |
+
in [the spot-detection section](#spot-detection-model-dots), with the attribution each licence
|
| 89 |
+
requires under [Licences and attribution](#licences-and-attribution) and
|
| 90 |
+
[Spotiflow's licence](#spotiflows-licence-and-attribution).
|
| 91 |
|
| 92 |
If you use these models in published work, please cite the original papers:
|
| 93 |
|
|
|
|
| 239 |
doi = {10.1038/s41592-024-02580-4}
|
| 240 |
}
|
| 241 |
```
|
| 242 |
+
|
| 243 |
+
## Spot-detection model (dots)
|
| 244 |
+
|
| 245 |
+
Voxide's **Find dots** can use Spotiflow instead of its built-in method, per channel, on single
|
| 246 |
+
planes. One file, run with ONNX Runtime on the CPU or, in a build with CUDA, on the graphics card;
|
| 247 |
+
Voxide finds it by its exact file name.
|
| 248 |
+
|
| 249 |
+
| Model | File | Size | SHA-256 | Licence |
|
| 250 |
+
|---|---|---|---|---|
|
| 251 |
+
| Spotiflow `hybiss` (2D) | `spotiflow-hybiss.onnx` | 37 903 970 bytes (38 MB) | `90d6eabdd7eb00c2564af54d83e1e237cb132f9f564a405d18dbe2bb54663689` | BSD-3-Clause |
|
| 252 |
+
|
| 253 |
+
```bash
|
| 254 |
+
hf download voxide/voxide-models --include "spotiflow-*" --local-dir voxide-models
|
| 255 |
+
```
|
| 256 |
+
|
| 257 |
+
### Provenance
|
| 258 |
+
|
| 259 |
+
Spotiflow's pretrained `hybiss` model (trained on HybISS images), from the `spotiflow-models`
|
| 260 |
+
release 0.6.0 (`hybiss.zip`, MD5 `254afa97c137d0bd74fd9c1827f0e323`, checkpoint `best.pt`, SHA-256
|
| 261 |
+
`fa5d5cb313bcfd75527f3d0962ccc3654bc7aa33359097d16f3b0835b0103bd1`). Exported by
|
| 262 |
+
`scripts/export_spotiflow_onnx.py` in the Voxide repository (pinned spotiflow 0.6.5, torch 2.15.0
|
| 263 |
+
CPU, onnx 1.23.2; opset 17): the network alone, unmodified weights. Input `image` `[1, 1, H, W]`
|
| 264 |
+
(the plane scaled by its 1st and 99.8th percentiles, as Spotiflow does; H and W multiples of 16),
|
| 265 |
+
outputs `prob` `[1, 1, H, W]` (the spot probability) and `flow` `[1, 3, H, W]` (the stereographic
|
| 266 |
+
flow Voxide refines positions with). The export matches PyTorch within 1e-4, and Voxide's peak
|
| 267 |
+
finding and refinement reproduce `Spotiflow.predict`'s points.
|
| 268 |
+
|
| 269 |
+
### Spotiflow's licence and attribution
|
| 270 |
+
|
| 271 |
+
- **Spotiflow** (code) © 2023, Albert Dominguez Mantes, Martin Weigert, BSD-3-Clause —
|
| 272 |
+
<https://github.com/weigertlab/spotiflow>.
|
| 273 |
+
- **Spotiflow pretrained models** (weights) © 2025, weigertlab, BSD-3-Clause —
|
| 274 |
+
<https://github.com/weigertlab/spotiflow-models>.
|
| 275 |
+
|
| 276 |
+
Redistribution of the weights in ONNX form keeps the BSD-3-Clause notice above; the licence text is
|
| 277 |
+
in the Spotiflow repositories linked. Please cite:
|
| 278 |
+
|
| 279 |
+
```bibtex
|
| 280 |
+
@article{dominguezmantes2025spotiflow,
|
| 281 |
+
title = {Spotiflow: accurate and efficient spot detection for fluorescence microscopy with deep stereographic flow regression},
|
| 282 |
+
author = {Dominguez Mantes, Albert and Herrera, Antonio and Khven, Irina and Schlaeppi, Anjalie and Kyriacou, Eftychia and Tsissios, Georgios and Skoufa, Evangelia and Santangeli, Luca and Buglakova, Elena and Durmus, Emine Berna and Manley, Suliana and Kreshuk, Anna and Arendt, Detlev and Aztekin, Can and Lingner, Joachim and La Manno, Gioele and Weigert, Martin},
|
| 283 |
+
journal = {Nature Methods},
|
| 284 |
+
year = {2025},
|
| 285 |
+
doi = {10.1038/s41592-025-02662-x}
|
| 286 |
+
}
|
| 287 |
+
```
|
SHA256SUMS
CHANGED
|
@@ -12,4 +12,5 @@ d1b0b21c71d9bfa63e247a7dfb13c3ea977cf96869d94e65304595af9741e225 sam2.1_hiera_l
|
|
| 12 |
ac335045c272ef63a74488da140fe4cf2e8ddd5db2e65c4ad29949964ac81720 sam2.1_hiera_tiny_encoder.onnx
|
| 13 |
4924ac906714544178072b4307d427a1e519758e15de9529d8fe0a0b21f7cff8 sammed3d_turbo_decoder.onnx
|
| 14 |
2316e6d570d129a9787c2f46e534d087e4d3ba364234d15959e95932c543ad4d sammed3d_turbo_encoder.onnx
|
|
|
|
| 15 |
230fb1431be9f9b6088fc68c24d4ff8c4894e7ef8ae3b16e14e0116b351f1b45 vgg16-blocks12.onnx
|
|
|
|
| 12 |
ac335045c272ef63a74488da140fe4cf2e8ddd5db2e65c4ad29949964ac81720 sam2.1_hiera_tiny_encoder.onnx
|
| 13 |
4924ac906714544178072b4307d427a1e519758e15de9529d8fe0a0b21f7cff8 sammed3d_turbo_decoder.onnx
|
| 14 |
2316e6d570d129a9787c2f46e534d087e4d3ba364234d15959e95932c543ad4d sammed3d_turbo_encoder.onnx
|
| 15 |
+
90d6eabdd7eb00c2564af54d83e1e237cb132f9f564a405d18dbe2bb54663689 spotiflow-hybiss.onnx
|
| 16 |
230fb1431be9f9b6088fc68c24d4ff8c4894e7ef8ae3b16e14e0116b351f1b45 vgg16-blocks12.onnx
|
spotiflow-hybiss.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:90d6eabdd7eb00c2564af54d83e1e237cb132f9f564a405d18dbe2bb54663689
|
| 3 |
+
size 37903970
|