Model Zoo#

This section provides an overview of models in LazySlide.

Important

Disclaimer: The usage of any model in LazySlide is subject to the terms and conditions of the respective model’s license. Please ensure you comply with the license terms before using any model. If you use a model in your research, please cite the original paper or repository as appropriate. LazySlide do not redistribute any source code that’s not compatible with LazySlide’s MIT license.

Get model names#

In most of the cases, you only need to pass the model name as string to the function, for example, to use the UNI model in feature extraction, you can do: zs.tl.feature_extraction(wsi, model="uni").

To get all available models, you can use the list_models function:

from lazyslide.models import list_models

models = list_models()

You can also filter models by type:

from lazyslide.models import list_models

vision_models = list_models("vision")  # for vision models only
multimodal_models = list_models("multimodal")  # for multimodal models only
segmentation_models = list_models("segmentation")  # for segmentation models only
tile_prediction_models = list_models("tile_prediction")  # for tile_prediction models only

For feature extraction, we also support all timm models with feature extraction head. You can list them with:

from timm import list_models

timm_models = list_models()

To retrive specific model class:

from lazyslide.models import MODEL_REGISTRY
model_module = MODEL_REGISTRY['instanseg']
model = model_module()  # Initiate the model

Get access to gated models#

indicates the model is publicly available. You can use it without a Hugging Face account or requesting access.

indicates the model is gated and requires permission. You must apply for access via the Hugging Face model card or the model’s repository.

To access gated models, follow these steps:

  1. Create a Hugging Face account: https://huggingface.co/

  2. Visit the model card page and request access. You can also use the Hugging Face button provided for each model below.

  3. In your account settings, go to Access Tokens and create a new token with the required permissions (read access is sufficient). This token will grant access to any new models you gain permission for in the future.

  4. Log in using your token to access gated models. Run the following command:

    hf auth login --token YOUR_TOKEN
    

Below is a list of available models categorized by their type:

Models#

list_models

List all available models.

Vision models#

CHIEF

GitHub Paper Params: 27.5M 768 features AGPL-3.0 [Wang et al., 2024] Clinical Histopathology Imaging Evaluation Foundation (CHIEF)

CONCHVision

🤗Hugging Face GitHub Paper Params: 395.2M 512 features CC-BY-NC-ND-4.0 [Lu et al., 2024] CONtrastive learning from Captions for Histopathology (CONCH)

CTransPath

GitHub Paper Params: 27.5M 768 features GPL-3.0 [Wang et al., 2022] Transformer-based unsupervised contrastive learning for histopathological image classification

GigaPath

🤗Hugging Face GitHub Paper Params: 1.13B 1536 features Apache 2.0 with conditions [Xu et al., 2024] A whole-slide foundation model for digital pathology

H0Mini

🤗Hugging Face GitHub Paper Params: 85.7M 1536 features CC-BY-NC-ND-4.0 [Filiot et al., 2025] A distilled version of H-optimus-0

HOptimus0

🤗Hugging Face GitHub Params: 1.13B 1536 features Apache 2.0 [Saillard et al., 2024] Vision foundation model

HOptimus1

🤗Hugging Face GitHub Params: 1.13B 1536 features CC-BY-NC-ND-4.0 [Bioptimus, 2025] Vision foundation model

HibouB

🤗Hugging Face GitHub Paper Params: 85.7M 768 features Apache 2.0 [Nechaev et al., 2024] A family of foundational vision transformers for pathology

HibouL

🤗Hugging Face GitHub Paper Params: 303.7M 1024 features Apache 2.0 [Nechaev et al., 2024] A family of foundational vision transformers for pathology

Midnight

🤗Hugging Face GitHub Paper Params: 1.14B 3072 features MIT [Karasikov et al., 2025] Training state-of-the-art pathology foundation models with orders of magnitude less data

PLIPVision

🤗Hugging Face GitHub Paper Params: 87.8M 512 features Non-commercial [Huang et al., 2023] Pathology Language-Image Pretraining (PLIP)

Phikon

🤗Hugging Face GitHub Paper Params: 85.8M 768 features Owkin non-commercial license [Filiot et al., 2023] Scaling self-Supervised Learning for histopathology with Masked Image Modeling

PhikonV2

🤗Hugging Face GitHub Paper Params: 303.4M 1024 features Owkin non-commercial license [Filiot et al., 2024] A large and public feature extractor for biomarker prediction

UNI

🤗Hugging Face GitHub Paper Params: 303.4M 1024 features CC-BY-NC-ND-4.0 [Chen et al., 2024] General-purpose self-supervised model for pathology

UNI2

🤗Hugging Face GitHub Paper Params: 681.4M 1536 features CC-BY-NC-ND-4.0 [Chen et al., 2024] An improved version of UNI

Virchow

🤗Hugging Face Paper Params: 631.2M 2560 features Apache 2.0 [Vorontsov et al., 2024] A foundation model for clinical-grade computational pathology and rare cancers detection

Virchow2

🤗Hugging Face Paper Params: 631.2M 2560 features CC-BY-NC-ND-4.0 [Zimmermann et al., 2024] Scaling self-supervised mixed magnification models in pathology

Multimodal models#

CONCH

🤗Hugging Face GitHub Paper Params: 395.2M 512 features CC-BY-NC-ND-4.0 [Lu et al., 2024] CONtrastive learning from Captions for Histopathology (CONCH)

MUSK

🤗Hugging Face GitHub Paper Params: 675.2M 1024 features CC-BY-NC-ND-4.0 [Xiang et al., 2025] A Vision-Language Foundation Model for Precision Oncology

OmiCLIP

🤗Hugging Face GitHub Paper Params: 638.5M BSD-3-Clause [Chen et al., 2025] A visual-omics foundation model to bridge histopathology with spatial transcriptomics

PLIP

🤗Hugging Face GitHub Paper Params: 87.8M 512 features Non-commercial [Huang et al., 2023] Pathology Language-Image Pretraining (PLIP)

Prism

🤗Hugging Face Paper Params: 557.7M CC-BY-NC-ND-4.0 [Shaikovski et al., 2024] A multi-modal generative foundation model for slide-level histopathology, the Prism models encode slide-level embeddings from Virchow.

Titan

🤗Hugging Face GitHub Paper Params: 158.9M 768 features CC-BY-NC-ND-4.0 [Ding et al., 2024] Multimodal whole slide foundation model for pathology

Segmentation models#

Cellpose

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

GrandQCArtifact

GitHub Paper Params: 6.3M CC-BY-NC-SA-4.0 [Weng et al., 2024] Artifact segmentation model from GrandQC

GrandQCTissue

GitHub Paper Params: 6.6M CC-BY-NC-SA-4.0 [Weng et al., 2024] Tissue segmentation model from GrandQC

HESTTissueSegmentation

🤗Hugging Face Params: 39.6M CC-BY-NC-SA-4.0 DeepLabV3 model finetuned on HEST-1k and Acrobat for IHC/H&E tissue segmentation.

HistoPLUS

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

Instanseg

GitHub Paper Params: 3.8M Apache 2.0 [Goldsborough et al., 2024] An embedding-based instance segmentation algorithm optimized for accurate, efficient and portable cell segmentation.

NuLite

GitHub Paper Params: 47.9M Apache 2.0; CC-BY-NC-SA-4.0 [Tommasino et al., 2024] Nuclei instance segmentation and classification

PathProfilerTissueSegmentation

GitHub Paper Params: 50.3M GPL-3.0 [Haghighat et al., 2022] Tissue segmentation model from PathProfiler

SAM

GitHub Paper Apache 2.0 SAM model for image segmentation

SMPBase

This is a base class for any models from segmentation models pytorch

Tile prediction models#

FocusLiteNN

GitHub Paper Params: 299 Prosperity Public License 3.0.0 [Wang et al., 2020] High efficiency Focus Quality Assessment for digital pathology

PathProfilerQC

GitHub Paper Params: 11.2M GPL-3.0 [Haghighat et al., 2022] Quality assessment of histology images

SpiderBreast

🤗Hugging Face Params: 303.9M CC BY-NC 4.0 Tile classification for breast

SpiderColorectal

🤗Hugging Face Params: 303.9M CC BY-NC 4.0 Tile classification for colorectal

SpiderSkin

🤗Hugging Face Params: 303.9M CC BY-NC 4.0 Tile classification for skin

SpiderThorax

🤗Hugging Face Params: 303.9M CC BY-NC 4.0 Tile classification for thorax

Slide encoder models#

multimodal.Prism

🤗Hugging Face Paper Params: 557.7M CC-BY-NC-ND-4.0 [Shaikovski et al., 2024] A multi-modal generative foundation model for slide-level histopathology, the Prism models encode slide-level embeddings from Virchow.

multimodal.Titan

🤗Hugging Face GitHub Paper Params: 158.9M 768 features CC-BY-NC-ND-4.0 [Ding et al., 2024] Multimodal whole slide foundation model for pathology

vision.CHIEFSlideEncoder

GitHub Paper Params: 1.2M AGPL-3.0 [Wang et al., 2024] Clinical Histopathology Imaging Evaluation Foundation (CHIEF)

vision.GigaPathSlideEncoder

🤗Hugging Face GitHub Paper Apache 2.0 with conditions [Xu et al., 2024] A whole-slide foundation model for digital pathology

vision.MadeleineSlideEncoder

🤗Hugging Face GitHub Paper Params: 3.2M CC BY-NC-ND 4.0 [Jaume et al., 2024] Multistain Pretraining for Slide Representation Learning in Pathology

Computer vision features#

Style transfer models#

ROSIE

GitHub Paper Params: 50M CC-BY-NC-4.0 [Wu et al., 2025] AI generation of multiplex immunofluorescence staining from histopathology images

Base model class#

Use model in offline environment#

For huggingface gated models, to run in an environment without internet access. The model must be download first, for example, run the model initiation code on a HPC login node.

from lazyslide.models import MODEL_REGISTRY

# This will cache the model
model = MODEL_REGISTRY['uni']()

When you submit a job to compute node without internet connection. Please set the environment variable HF_HUB_OFFLINE=1 so huggingface will not make any HTTP request. Alternatively, You can set it at the start of your python session

import os
os.environ['HF_HUB_OFFLINE'] = 1