lazyslide.models.segmentation.Cellpose

Contents

lazyslide.models.segmentation.Cellpose#

class Cellpose(diam_mean=None, model_path=None, **eval_kwargs)#

Bases: SegmentationModel

🤗Hugging Face GitHub Paper BSD-3-Clause [Stringer et al., 2021] Cell segmentation model

Only supports cellpose>=4.0.0

If you want to fine-tune the cellpose model, please take a look at the following resources:

To run a fine-tuned model, pass the model_path argument pointing to the fine-tuned weights.

>>> zs.seg.cells(wsi, model="cellpose", model_path="fine-tuned-checkpoint.pth")