SAVRN
Search Contact SAVRN

Open-weight model · Image segmentation

toxoplasma-plaque-segmentation-cpsam-r5

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

toxoplasma-plaque-segmentation-cpsam-r5 is an open-weight model for image segmentation from Einar Olafsson, released under Creative Commons Attribution 4.0. Its published files total 1.2 GB.

Segments Toxoplasma gondii plaques in crystal-violet plaque assays. Round 5 is the first model trained across all four domains at once: whole-well microscope scans (two fixations), wells cropped from published figures, and phone-camera wells.

Parameters
Context
Weights1.2 GB
Licensecc-by-4.0
AccessOpen weights
Monthly Downloads

Model Card

By Einar Olafsson, published under cc-by-4.0, revision db136baa455f.

Segments Toxoplasma gondii plaques in crystal-violet plaque assays. Round 5 is the first model trained across all four domains at once: whole-well microscope scans (two fixations), wells cropped from published figures, and phone-camera wells. Built for 488 curated fields, 27,582 plaques, deduplicated by pixel content. Split by FIGURE (literature) and by PLATE (microscope) so no figure or plate straddles; malnio's own held-out 20 are forced into test. Read the incumbent columns with care. r3 and r4 trained on every microscope well and on most of the literature, so their scores there measure memorisation. qc/summary.json also reports every model on the subset neither incumbent ever trained on…

Read Einar Olafsson's full model card

Toxoplasma plaque segmentation — round 5 (Cellpose-SAM)

Segments Toxoplasma gondii plaques in crystal-violet plaque assays. Round 5 is the first model trained across all four domains at once: whole-well microscope scans (two fixations), wells cropped from published figures, and phone-camera wells. Built for spaCR.

Data — einarolafsson/toxoplasma-plaque-dataset

488 curated fields, 27,582 plaques, deduplicated by pixel content. Split by FIGURE (literature) and by PLATE (microscope) so no figure or plate straddles; malnio's own held-out 20 are forced into test.

set fields plaques
train 332 18,532
valid 75 4,756
test 81 4,294

Results — test set, F1 at IoU 0.5

domain train valid test r3 r4 r5
literature 208 45 45 0.8197 0.8188 0.8185
malnio 62 14 20 0.2494 0.2167 0.4148
patrick 47 10 10 0.8361 0.822 0.8076
bigbean 15 6 6 0.8718 0.8806 0.8755
all 332 75 81 0.6818 0.6745 0.7106

Read the incumbent columns with care. r3 and r4 trained on every microscope well and on most of the literature, so their scores there measure memorisation. qc/summary.json also reports every model on the subset neither incumbent ever trained on (malnio plus the literature curated after round 4), which is the only fair comparison; qc/*_test_perimage.csv flags each field with incumbent_trained_on.

Round 5 gains -0.0012 literature F1 over round 3 on the shared test set, which does NOT clear the bar of 0.02 fixed before the run, so round 3 REMAINS production.

Empty wells carry no F1 (undefined on empty truth); objects predicted on them are counted as hallucinations in qc/summary.json.

Contents

  • weights/cpsam_plaque_r5 — final weights
  • training/epoch_history.csv — per-epoch loss, pixel accuracy, precision, recall, Dice, IoU, MCC
  • training/loss_history.csv, splits.csv, manifest.csv, test_by_domain.csv, run.json
  • qc/ — per-image metrics for r5, r3 and r4, summary.json, comparison.csv

Environment

cellpose 4.2.1.1
torch 2.10.0+cu128
GPU NVIDIA GeForce RTX 3090 Ti
base weights cpsam_v2
recipe 100 epochs, lr 1e-5, scale_range 0.5, min_train_masks 0

Use with spaCR

from huggingface_hub import hf_hub_download
from spacr.core import preprocess_generate_masks
w = hf_hub_download("einarolafsson/toxoplasma-plaque-segmentation-cpsam-r5", "weights/cpsam_plaque_r5")
preprocess_generate_masks({"src": "/path/to/plate", "custom_model": w})

spaCR · PyPI · conda-forge

Identity and Version

Repository
einarolafsson/toxoplasma-plaque-segmentation-cpsam-r5
Publisher
Einar Olafsson
Task
Image segmentation
Modality
Image
Library
Not stated by the source
Parameters
Not stated by the source
Languages
Not stated by the source
Revision
db136baa455fa2d5a3baf65fe033cd6e787d84a1
First published
2026-09-20
Last updated
2026-09-20

Files and Weights

14 files, 1.2 GB in total.

Configuration2 files · 5.2 KB
Documentation1 file · 3.1 KB
Other10 files · 1.2 GB
Repository1 file · 1.6 KB
Every file
FileTypeSizeSHA-256
qc/summary.jsonConfiguration5.1 KB
training/run.jsonConfiguration148 B
README.mdDocumentation3.1 KB
qc/comparison.csvOther1.1 KB
qc/r3_production_test_perimage.csvOther7.2 KB
qc/r4_test_perimage.csvOther7.2 KB
qc/r5_test_perimage.csvOther7.2 KB
training/epoch_history.csvOther44.3 KB
training/loss_history.csvOther7.5 KB
training/manifest.csvOther92.5 KB
training/splits.csvOther43.5 KB
training/test_by_domain.csvOther903 B
weights/cpsam_plaque_r5Other1.2 GB 0927023a745a
.gitattributesRepository1.6 KB

License and Download

License
cc-by-4.0
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-r5

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

Yes. toxoplasma-plaque-segmentation-cpsam-r5 is released under Creative Commons Attribution 4.0. CC BY 4.0 permits sharing and adapting the work, including commercially, provided the creator is credited and changes are indicated.

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