acia.segm.processor.cellpose_sam#
Segmenter using CellposeSAM: https://doi.org/10.1101/2025.04.28.651001
- class acia.segm.processor.cellpose_sam.CellposeSAMSegmenter[source]#
Bases:
SegmentationProcessorCellposeSAMSegmenter using Cellpose SAM: https://doi.org/10.1101/2025.04.28.651001
- __init__(use_GPU=None, pretrained_model=None, autorelease=True)[source]#
Initialize the Cellpose-SAM segmenter.
- Parameters:
use_GPU – Force GPU on/off.
None(default) auto-detects viacellpose.core.use_gpu().pretrained_model – Which Cellpose model to load.
None(default) loads Cellpose’s built-in default model. Pass a model name or a path to weights to override it (forwarded tocellpose.models.CellposeModel). The actually loaded model is printed on first use.autorelease (bool) – Release the model after each call to free GPU memory.