Hugging Face Digital Pathology
A curated catalog of digital-pathology models on Hugging Face. Image models only — pathology-report NER models (OpenMed et al.) are out of scope here.
For all models below, expect non-diagnostic licensing and use; benchmark before any clinical or downstream task. Most foundation models are gated (request access on the model card).
Foundation patch encoders
The current workhorses for tile-level feature extraction. Plug into MIL/aggregator heads for slide-level tasks.
Microsoft / Providence
Slide-level FM
Providence health network
~48k/mo
167
Tile + slide encoder; Nature 2024.
kaiko.ai (re-host)
ViT-S/B/L variants
kaiko.ai paper
~6k/mo
2
Community mirror.
(re-host)
Swin-T
CTransPath weights
~6k/mo
3
Older but widely cited baseline.
Pick guide
Best general embeddings today: UNI2-h, Virchow2, Phikon-v2, H-Optimus-1.
Open / non-gated: Phikon / Phikon-v2, Hibou, H0-mini, the
1aurentre-hosts.Need slide-level out of the box: Prov-GigaPath.
Most robust to the contributing centre: CONCH / CONCHv1.5, Virchow2, H0-mini. Least robust: Phikon, Phikon-v2, Hibou-L, Hibou-B.
Accuracy and robustness are different axes, and this list ranks only the first. Two independent 20-model studies find that every pathology foundation model encodes the contributing hospital — staining, scanner, sectioning — strongly enough to be exploited as a shortcut, and that the ordering by robustness barely resembles the ordering by benchmark accuracy. Phikon-v2 is the sharpest example: recommended above on general embedding quality, it sits near the bottom on robustness in both studies, and in one experiment a downstream model built on it called 94% of normal patches from one centre tumour. Before choosing an encoder for multi-centre material, read Towards robust foundation models for digital pathology and A distributional robustness margin for pathology foundation models, and measure it yourself with CRoMa.
Vision–language / multimodal
Use for: zero-shot tile/slide classification, retrieval (image↔report), captioning prototypes.
Slide-level aggregators (MIL heads)
Pretrained ABMIL / aggregator heads that pair with the foundation encoders above. Saves training a MIL head from scratch when an off-the-shelf task is enough.
MahmoodLab pan-cancer ABMIL (~108k slides, 24-task panel):
Slide-level retrieval / alignment:
MahmoodLab/madeleine,MahmoodLab/SEAL.Camelyon16 metastasis ABMIL (kaczmarj — one head per encoder backbone):
kaczmarj/metastasis-detection.camelyon16.abmil.unikaczmarj/metastasis-detection.camelyon16.abmil.virchowkaczmarj/metastasis-detection.camelyon16.abmil.phikonkaczmarj/metastasis-detection.camelyon16.abmil.hoptimus0(additional encoder pairings exist in the same collection)
Specialty: segmentation, cells, multiplex, organ-specific
Cell / nuclei segmentation
Owkin-Bioptimus/CytoSyn— synthetic-trained cell segmenter.owkin/histoplus— cell-level model.histai/cellvit-hibou-l— CellViT on Hibou-L backbone.Note: HoVer-Net and most classic nuclei-instance models live outside HF (GitHub / TIA Toolbox).
Tissue segmentation:
MahmoodLab/hest-tissue-seg.Multiplex / spatial proteomics:
MahmoodLab/KRONOS,MahmoodLab/KRONOSv2. Thin coverage on HF overall for IHC/multiplex.Organ-specific patch classifiers (Hibou-based):
Multi-task FM:
AI4Pathology/PathOrchestra.
Task-specific patch classifiers — WSInfer / kaczmarj family
Small, single-task CNNs designed to drop into the WSInfer WSI inference pipeline. Most are re-hosts of TIA Toolbox or organ-specific Penn/Stony Brook checkpoints.
kaczmarj/breast-tumor-resnet34.tcga-brca— most-used after the colorectal model (~1.4k DL).kaczmarj/colorectal-tiatoolbox-resnet50.kather100k— see detailed entry below.kaczmarj/colorectal-resnet34.pennkaczmarj/prostate-tumor-resnet34.tcga-pradkaczmarj/lung-tumor-resnet34.tcga-luadkaczmarj/pancreas-tumor-preactresnet34.tcga-paadkaczmarj/pancancer-lymphocytes-inceptionv4.tcgakaczmarj/lymphnodes-tiatoolbox-resnet50.patchcamelyon
kaczmarj/colorectal-tiatoolbox-resnet50.kather100k
URL: https://huggingface.co/kaczmarj/colorectal-tiatoolbox-resnet50.kather100k
Author: Jakub Kaczmarzyk (Stony Brook)
Created: 2023-06-21 · Last updated: 2023-08-03
License: CC-BY-4.0
Frameworks: PyTorch / safetensors / Transformers (
AutoModel)Pipeline tag:
image-classificationDownloads: ~673/month, ~11.8k all-time · Likes: 2
What it is ResNet50 patch classifier for colorectal H&E histology, re-hosted from the TIA Toolbox model zoo.
Training data Kather100K (Zenodo DOI 10.5281/zenodo.1214456): 100,000 non-overlapping H&E patches from CRC and normal tissue, 9 classes (ADI, BACK, DEB, LYM, MUC, MUS, NORM, STR, TUM) at ~0.5 µm/px, 224×224.
Practical notes
Re-host, not a re-train — accuracy follows the original TIA Toolbox checkpoint.
Card's "Reusing the model" section is still "Coming soon…"; no documented preprocessing on HF. Mirror TIA Toolbox's input pipeline (RGB, 224×224, ImageNet-style normalization) for valid predictions.
Belongs to the H&E Patch Classification collection, intended for use with WSInfer — cleanest deployment path for whole-slide inference.
No
model-index/ eval results, no inference provider, no examples — building block, not a turnkey clinical tool.
Use cases / caveats
Good baseline for CRC tile classification, stroma/tumor/lymphocyte mapping, TSR-like quantification.
Domain shift risk on non-Kather scanners/stains; benchmark before downstream use.
Not intended for diagnostic use.
Original / upstream sources
TIA Toolbox model zoo (University of Warwick — TIA Centre): actual training and weights. See
tiatoolbox.modelsand Pocock et al. 2022 (Communications Medicine).Kather100K dataset: Kather, Halama, Marx (2018), Zenodo
10.5281/zenodo.1214456.ResNet50 architecture: He et al. 2016.
Why the re-host exists Kaczmarzyk maintains WSInfer; the HF mirror packages TIA Toolbox checkpoints in a Transformers-friendly format (safetensors, AutoModel) so they can be pulled directly from the Hub without depending on TIA Toolbox's download paths. Same weights, different distribution channel.
For citation/benchmarking: credit TIA Toolbox / Pocock et al. for the model and Kather et al. for the data.
Quick takeaways
Embeddings / features → UNI2-h, Virchow2, Phikon-v2, H-Optimus-1 (most are gated; CC-BY-NC-SA common).
Vision–language search / captioning → CONCH (gated, open weights) or Prism (slide-level).
Slide-level out-of-the-box → Prov-GigaPath, or MahmoodLab pan-cancer ABMIL heads on top of UNI/CONCH.
Turnkey patch inference → WSInfer / kaczmarj family — same flavor as the colorectal entry above.
Gaps on HF: nuclei-instance segmentation (HoVer-Net etc. live mostly outside HF); IHC/multiplex thin (KRONOS is the main entry); few stain normalization or artifact-detection models.
Caveats across the catalog
Gating: foundation models from MahmoodLab, Paige, Bioptimus typically require a request form. Plan lead time.
Licenses: CC-BY-NC-SA dominates the FM space — commercial use is restricted. WSInfer family is permissive (CC-BY-4.0).
Preprocessing: each FM has its own normalization / resolution / tile size. Mismatched preprocessing silently degrades embeddings — read the model card before extracting features at scale.
Benchmarks: very few cards include
model-indexresults. Cross-compare via independent benchmarks (HEST, Patch-level Pathology Benchmark, BRACS, etc.) rather than card-reported numbers.
Pathology datasets on Hugging Face
Useful when you want to fine-tune, benchmark, or just probe an encoder without standing up your own data pipeline.
MahmoodLab
HEST-1k: paired ST + H&E slides, the de-facto FM benchmark for spatial transcriptomics tasks.
MahmoodLab
Multi-task pathology benchmark suite paired with the MahmoodLab FMs.
Many classical sets (TCGA WSIs, CAMELYON16/17, BRACS, MIDOG) still live on their original portals (GDC, grand-challenge.org) — HF only mirrors a subset.
Tooling and integration libraries
The HF model is rarely the whole story — these wrap weights into usable WSI pipelines:
WSInfer (Stony Brook) — runs the kaczmarj patch classifiers on whole slides; the natural deployment path for that family, but take it through the QuPath extension rather than the Python package, which has been dormant since July 2024 with its last two fixes unreleased — see WSInfer.
TIA Toolbox (Warwick) — original home of the colorectal/lymphnode ResNets; full WSI IO + inference + nuclei (HoVer-Net) stack.
Slideflow — end-to-end WSI training/inference; supports HF foundation encoders as backbones.
MONAI Pathology — Project MONAI's pathology module; HF integration is partial but improving.
HoneyBee /
huggingface_hub— for pulling weights/datasets programmatically; pair withsafetensors+transformers.AutoModelfor the WSInfer family.
Collections worth following
Hugging Face Collections aggregate related models — easier than tracking individual repos:
Last updated