lazyslide.models.segmentation.HistoPLUS

lazyslide.models.segmentation.HistoPLUS#

class HistoPLUS(tile_size=840, magnification='20x', model_path=None, token=None)#

Bases: SegmentationModel

🤗Hugging Face GitHub Paper Params: 47.9M FLOPs: 3.81T CC-BY-NC-ND-4.0 [Adjadj et al., 2025] Towards Comprehensive Cellular Characterisation of H&E slides

The output classes are:

  • 0: Background

  • 1: Cancer cell

  • 2: Lymphocytes

  • 3: Fibroblasts

  • 4: Plasmocytes

  • 5: Eosinophils

  • 6: Neutrophils

  • 7: Macrophages

  • 8: Muscle Cell

  • 9: Endothelial Cell

  • 10: Red blood cell

  • 11: Epithelial

  • 12: Apoptotic Body

  • 13: Mitotic Figures

  • 14: Minor Stromal Cell

classmethod check_input_tile(tile_spec)#

A helper function to check if the input tile size is valid.

Return True if the input tile size is valid. And the model will be executed. Add a warning here if the input is not optimal but still can be executed.