SAVRN
Search Contact SAVRN

Open-weight model · Image segmentation

toxoplasma-plaque-segmentation-cpsam

by Einar Olafsson einarolafsson/toxoplasma-plaque-segmentation-cpsam

Segments Toxoplasma gondii plaques in crystal violet plaque assays. Round 3. Use it through spaCR's plaque module. This model is distributed through the spaCR Model Zoo.

Parameters
Context
Weights1.2 GB
Licensemit
AccessOpen weights
Monthly Downloads

Model Card

By Einar Olafsson, published under mit, revision fd01c646b795.

Segments Toxoplasma gondii plaques in crystal violet plaque assays. Round 3. Use it through spaCR's plaque module. This model is distributed through the spaCR Model Zoo. spaCR is an open-source package for spatial phenotype analysis of CRISPR screens and microscopy images. Launch the GUI and open the Model Zoo: Find Toxoplasma Plaque v1 in the model list and press Download. The Model Zoo verifies the checkpoint's SHA-256 after download, so a truncated or substituted file is rejected rather than silently used. This is a plaque-assay model and is driven by spaCR's plaque module rather than In the GUI the same thing is under Make masks in the plaque workflow.…

Read Einar Olafsson's full model card

Toxoplasma Plaque v1

Segments Toxoplasma gondii plaques in crystal violet plaque assays. Round 3. Use it through spaCR's plaque module.

  • Architecture: Cellpose-SAM (cpsam)
  • Model Zoo key: toxoplasma_plaque_v1
  • Checkpoint: cpsam_plaque_r3
  • Trained by: einarolafsson

Use it in spaCR

This model is distributed through the spaCR Model Zoo. spaCR is an open-source package for spatial phenotype analysis of CRISPR screens and microscopy images.

pip install spacr

Model Zoo (GUI)

Launch the GUI and open the Model Zoo:

spacr

Find Toxoplasma Plaque v1 in the model list and press Download. The Model Zoo verifies the checkpoint's SHA-256 after download, so a truncated or substituted file is rejected rather than silently used.

Model Zoo (Python)

from spacr import model_zoo

entry = next(e for e in model_zoo.catalogue() if e.key == "toxoplasma_plaque_v1")
path  = model_zoo.install(entry, dest="~/spacr_models")
print(path)   # verified local checkpoint

Mask generation

This is a plaque-assay model and is driven by spaCR's plaque module rather than the general cell/nucleus mask pipeline:

from spacr import plaque

plaque.analyze_plaques(src="/path/to/plate_images", model=str(path))

In the GUI the same thing is under Make masks in the plaque workflow.

API: :mod:spacr.plaque, :func:spacr.core.preprocess_generate_masks

Performance

3-fold cross-validated.

set F1
in-domain (in-house) 0.856
literature generalisation set 0.806 (SD 0.020)
round 1, for reference 0.718

Round 3 trades precision (0.939 down to 0.858) for recall (0.631 up to 0.811) on the literature set, which is the right direction for a counting assay.

Training data

184 wells from 3 datasets — 95 in-house and 89 from the literature — of crystal violet Toxoplasma plaque assays.

Files in this repository

path what
cpsam_plaque_r3 the checkpoint
final_metrics.csv the checkpoint
metadata.txt the checkpoint
model.db the checkpoint
model_report.pdf the checkpoint

Limitations

  • Segments plaques, not wells — pair it with the Toxoplasma Plaque Well Detector to locate wells first.
  • Tuned toward recall, which suits counting more than precise plaque morphometry.

Links

  • spaCR on GitHub: https://github.com/EinarOlafsson/spacr
  • Model Zoo API: spacr.model_zoocatalogue(), install(), fetch(), verify()
  • Mask generation API: spacr.core.preprocess_generate_masks, plaque API: spacr.plaque
  • Issues and questions: https://github.com/EinarOlafsson/spacr/issues

Identity and Version

Repository
einarolafsson/toxoplasma-plaque-segmentation-cpsam
Publisher
Einar Olafsson
Task
Image segmentation
Modality
Image
Library
spacr
Parameters
Not stated by the source
Languages
Not stated by the source
Revision
fd01c646b795e95df6ac3bbba5c967df88148190
First published
2026-08-31
Last updated
2026-09-18

Files and Weights

7 files, 1.2 GB in total.

Documentation1 file · 2.9 KB
Other5 files · 1.2 GB
Repository1 file · 1.6 KB
Every file
FileTypeSizeSHA-256
README.mdDocumentation2.9 KB
cpsam_plaque_r3Other1.2 GB eeecd2d6cd5c
final_metrics.csvOther338 B
metadata.txtOther4.5 KB
model.dbOther32.8 KB
model_report.pdfOther50.6 KB
.gitattributesRepository1.6 KB

License and Download

License
mit
Access
Open weights, no gate
Download from Einar Olafsson

Released by Einar Olafsson through its official repository on Hugging Face. Read the license.

Questions About toxoplasma-plaque-segmentation-cpsam

Can I use toxoplasma-plaque-segmentation-cpsam commercially?

Yes. toxoplasma-plaque-segmentation-cpsam is released under MIT License. The MIT License is a short permissive license. It permits commercial use, modification and redistribution, provided the copyright notice and permission notice are included.

Similar Models

Model · Image segmentation

segformer-b2-finetuned-ade-512-512

NVIDIA

SegFormer model fine-tuned on ADE20k at resolution 512x512. It was introduced in the paper SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformers by Xie et al. and first released in this repository. Disclaimer: The team releasing SegFormer did not write a model card for this model so this model card has been written by the Hugging Face team. SegFormer consists of a hierarchical Transformer encoder and a lightweight all-MLP decode head to achieve great results on semantic segmentation benchmarks such as ADE20K and Cityscapes. The hierarchical Transformer is first pre-trained on ImageNet-1k, after which a decode head is added and fine-tuned altogether on a…

Open weights other transformers

Model · Image segmentation

segformer-b3-finetuned-ade-512-512

NVIDIA

SegFormer model fine-tuned on ADE20k at resolution 512x512. It was introduced in the paper SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformers by Xie et al. and first released in this repository. Disclaimer: The team releasing SegFormer did not write a model card for this model so this model card has been written by the Hugging Face team. SegFormer consists of a hierarchical Transformer encoder and a lightweight all-MLP decode head to achieve great results on semantic segmentation benchmarks such as ADE20K and Cityscapes. The hierarchical Transformer is first pre-trained on ImageNet-1k, after which a decode head is added and fine-tuned altogether on a…

Open weights other transformers

Model · Image segmentation

oneformer_ade20k_swin_large

SHI Labs

OneFormer model trained on the ADE20k dataset (large-sized version, Swin backbone). It was introduced in the paper OneFormer: One Transformer to Rule Universal Image Segmentation by Jain et al. and first released in this repository. OneFormer is the first multi-task universal image segmentation framework. It needs to be trained only once with a single universal architecture, a single model, and on a single dataset, to outperform existing specialized models across semantic, instance, and panoptic segmentation tasks. OneFormer uses a task token to condition the model on the task in focus, making the architecture task-guided for training, and task-dynamic for inference, all with a single…

Open weights mit transformers

Model · Image segmentation

segformer-b1-finetuned-ade-512-512

NVIDIA

SegFormer model fine-tuned on ADE20k at resolution 512x512. It was introduced in the paper SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformers by Xie et al. and first released in this repository. Disclaimer: The team releasing SegFormer did not write a model card for this model so this model card has been written by the Hugging Face team. SegFormer consists of a hierarchical Transformer encoder and a lightweight all-MLP decode head to achieve great results on semantic segmentation benchmarks such as ADE20K and Cityscapes. The hierarchical Transformer is first pre-trained on ImageNet-1k, after which a decode head is added and fine-tuned altogether on a…

Open weights other transformers

Model · Image segmentation

segformer-b0-finetuned-ade-512-512

Joshua

https://huggingface.co/nvidia/segformer-b0-finetuned-ade-512-512 with ONNX weights to be compatible with Transformers.js. If you haven't already, you can install the Transformers.js JavaScript library from NPM using: Example: Image segmentation with Xenova/segformer-b0-finetuned-ade-512-512. You can visualize the outputs with: Note: Having a separate repo for ONNX weights is intended to be a temporary solution until WebML gains more traction. If you would like to make your models web-ready, we recommend converting to ONNX using Optimum and structuring your repo like this one (with ONNX weights located in a subfolder named onnx).

Open weights transformers.js

Model · Image segmentation

DelineateAnything

Mykola Lavreniuk

Delineate Anything v2 extends Delineate Anything into a globally representative, resolution-agnostic foundation model that scales agricultural field boundary detection to a planetary level from any imagery source. Trained on FBIS-73M, a massive 73-million-instance dataset spanning 61 countries with diverse imagery sources ranging from 0.25m to 10m resolution, built through a resolution-specific curation pipeline that solves the parcel-versus-field mismatch, Delineate Anything v2 sets a new state-of-the-art in global zero-shot delineation. It delivers a +103.3% relative gain in [email protected] over Delineate Anything while maintaining extreme efficiency, mapping all of Ukraine (603,000 km²) in 5.4…

Open weights agpl-3.0 ultralytics