AI tools, scored for your job
Get paid to train AI
🤝 You're in the Free & Open Source library — community-built tools you can use without paying. A different concept from our scored AI directory.
Home › Free & Open Source › Medical › slideflow
✦ Free & open sourceMedical

slideflow

Deep learning library for digital pathology and whole-slide image analysis.

Slideflow: Deep Learning for Pathology

Open-source Python library for digital pathology, model development, and whole-slide image analysis.

Free forever · open source · Apache-2.0
✓ Needs IT✓ Browser-based✓ Real-time collaboration
7.1
ZEKAI
Essential deep learning pathology library
Free & open source · Medical
Ease of setup5
Usefulness9
Maintenance9.5
Community5
★ 376
GITHUB
Sep 2026
UPDATED
Apache-2.0
LICENSE
🛠 Don't want to self-host? We can set it up →
⚡ Quick answer

Slideflow is a deep learning library tailored for digital pathology, bridging advanced machine learning with clinical research needs. Medical researchers and data scientists use it to process whole-slide images and train predictive models.

Runs on
Cross-platform
Hosting
Self-host
Languages
Python
License
Apache-2.0

What it is

It provides customizable training pipelines, slide processing, and stain normalization tools that handle weakly and strongly-supervised labels. You can build models using multiple-instance learning, self-supervised learning, generative adversarial networks, and built-in foundation models.

Who it's for

It suits computational pathologists and medical AI researchers with Python experience who need end-to-end slide analysis workflows. It does not suit clinicians without programming skills or those looking for a turnkey medical viewing application without coding.

Key features

Slide Processing Toolkit

Extracts tiles from whole-slide images using cuCIM or Libvips with adjustable resolution and magnification.

Stain Normalization

Applies built-in stain normalization routines to standardize histology appearance across different scanners.

Multiple-Instance Learning

Supports MIL architectures like CLAM for slide-level prediction using patient annotations.

Explainability Maps

Generates heatmaps, mosaic maps, saliency maps, and synthetic histology via StyleGAN.

How to start

Up and running in 3 steps

1
Install the library via pip with cupy support or pull the pre-configured Docker image.
2
Create a project pointing to your patient-level CSV annotations and whole-slide image directory.
3
Extract tiles from your slides at the desired magnification before configuring and training model parameters.
Real talk

Our honest verdict

What's great

  • Supports both PyTorch and Tensorflow backends depending on your environment preference.
  • Includes extensive slide processing and tiling utilities with RAM disk buffering options.
  • Offers advanced explainability tools including heatmaps and layer activation analysis.
  • Integrates with popular pre-trained foundation models like UNI, HistoSSL, and GigaPath.

Where it falls short

  • Requires significant Python and machine learning expertise to set up and configure properly.
  • Demands high-performance hardware, specifically GPUs with CUDA support, to train models efficiently.
  • Some advanced add-on models like CLAM and StyleGAN require installing non-commercial packages.
  • Slide reading performance depends on properly configured external dependencies like cuCIM or Libvips.
Cost

Pricing & license

Free under the Apache-2.0 license, with optional non-commercial add-ons available. The only cost is running it yourself on your own GPU hardware.

Paid work

Open remote AI-training roles

874 open remote AI-training roles, updated November 15, 2026; most pay $20–$170 an hour. Zekai lists them free; the application goes to the employer’s platform.

See all open roles →
Compare

Alternatives

🎁 Free & open-source alternatives

These reviewed AI tools do the same job instantly — from our scored directory.

Get more

Use it, or have us set it up

📄 Free PDF: slideflow for Medical
A plain-language guide to getting your first result. Sent to your inbox.
🔔 64 people want a full video tutorial — add your vote
🛠 Don't want to set it up yourself?
We'll install, host & configure slideflow for you — and train your team.
Get it done for you ↗
Questions

FAQ

Which deep learning frameworks does Slideflow support?

Slideflow supports both PyTorch and Tensorflow, defaulting to PyTorch if both are available and configurable via the SF_BACKEND environment variable.

How are whole-slide images read?

It uses cuCIM by default for fast reading, with an optional Libvips backend to support formats like .scn, .mrxs, .ndpi, .vms, and .vmu.

Radar

Latest AI news

✉️ The weekly free toolkit
The best new free & open-source tools for Medical — one short email a week, in your language.
Free · 1 email/week · unsubscribe anytime
Get paid to train AI →

See Zekai first in Google