Skip to content

Histology & ML model plugins

Histology workflows and deep-learning model plugins are distributed as optional companion wheels so core lucem stays small and pyproject.toml projects using uv only pull what they need:

Terminal window
uv add "lucem[hist,stardist]"
# or all model plugins + browser app:
uv add "lucem[web,hist,ml]"

Discover installed model plugins and check lucem.hist

import lucem
for p in lucem.ml.plugins():
print(f"{p['name']} {p['version']} ({p['program']})")
for m in p["models"]:
print(f" - {m['id']}: {m['name']}")

The whole script is playground/06_histology_and_ml/01_stardist_and_hist.py. Run it with uv run python playground/06_histology_and_ml/01_stardist_and_hist.py.