Skip to main content

LazySlide models

The model zoo for LazySlide, the accessible whole slide image analysis framework

Documentation Status pypi version conda version PyPI - License

lazyslide-models contains all the models consumed by LazySlide. LazySlide itself contains no model code, it is an inference and orchestration layer that discovers models through the MODEL_REGISTRY. Any registered model can be used by name with zero configuration.

Model types

The zoo spans different task types: vision encoders, multimodal (image-text) models, segmentation, slide encoders, tile prediction, classical hand-crafted features, feature prediction, style transfer (HE to spatial omics or IHC stainings), image generation and chat models. Every timm model is also available for feature extraction (e.g. resnet50).

The complete per-task model list, with licenses, gated-access badges and citation keys, is maintained in the Model Zoo Website.

Usage

from lazyslide_models import MODEL_REGISTRY, list_models

list_models("segmentation")          # ['cellpose', 'classpose', 'sam', ...]
model = MODEL_REGISTRY["instanseg"]()  # instantiate (weights download on first use)

In LazySlide, pass the registered name to any function:

zs.tl.feature_extraction(wsi, model="conch")  # any vision or multimodal key
zs.seg.cells(wsi, model="instanseg")

Exported models

Models that cannot be loaded directly from Hugging Face are exported to RendeiroLab/LazySlide-models (permissive and non-commercial licenses) and RendeiroLab/LazySlide-models-gpl (GPL). Reproduction scripts: scripts/export_models.

Contributing a new model

  1. Open an issue with the [New Model] label to confirm the model fits the zoo.
  2. Follow the integration guide.
  3. Open a pull request against main. The CI will test the models in your PR.

Licenses

Some models are non-commercial or gated, and licenses vary. Check each model's registry entry before use, and please cite the original paper.

Metadata

Release files for lazyslide-models 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lazyslide-models 0.1.0
File Size Uploaded
lazyslide_models-0.1.0.tar.gz 394.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for lazyslide-models 0.1.0
File Interpreter ABI Platform
lazyslide_models-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 527.3 kB

Release files / lazyslide_models-0.1.0.tar.gz

Download URL lazyslide_models-0.1.0.tar.gz
Size 394.4 kB
Tags Source
SHA-256 checksum
How to use checksums
9858fb596cad11d58461f052c5c18edefafd777177cf4093569872319d2e3447
BLAKE2b-256 checksum
How to use checksums
f4c9da376f4a6d00a0c7c42b2453b1374a53d572581b264aaf06724249067656
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.21 {"installer":{"name":"uv","version":"0.12.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / lazyslide_models-0.1.0-py3-none-any.whl

Download URL lazyslide_models-0.1.0-py3-none-any.whl
Size 132.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4a4f88c04c6502b7336171822263d617c235bffa49b0b67432ef3da603f0fc2d
BLAKE2b-256 checksum
How to use checksums
3c4d171898e503d48920f3074dc209abae79d8fea0f0fb8da478e090a2378ff1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.21 {"installer":{"name":"uv","version":"0.12.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page