Skip to main content

OMERO Annotate.AI

PyPI version install with bioconda Python versions CI/CD Documentation Pixi Badge License

Reproducible AI-assisted annotation of OMERO data, from image selection to training-ready datasets.

Pick images from an OMERO project, dataset, plate or screen. Annotate them in napari with micro-SAM or prepare them for Cellpose. The masks, ROIs and a tracking table go back to OMERO. Every run is described by one YAML file, so you can resume it, repeat it or share it.

micro-SAM segmentation of a Cell Painting field in napari micro-SAM (vit_b_lm) instance segmentation of nuclei in a Cell Painting field from the BioImage Archive (S-BIAD855), shown in napari.

How it works

flowchart LR
    A[OMERO<br/>project · dataset · plate · screen] --> B[Select images<br/>train / val / test split]
    B --> C[Annotate in napari<br/>micro-SAM or Cellpose]
    C --> D[Back to OMERO<br/>masks · ROIs · tracking table]
    D --> E[Training data<br/>micro-SAM · BiaPy · DL4MicEverywhere]
    D --> F[BioImage Archive<br/>MIFA export]
  • Jupyter widgets for connecting to OMERO and configuring a run step by step, no code needed.
  • Resumable: the tracking table records which images and patches are done, so an interrupted run continues where it stopped.
  • Flexible sampling: timepoints, z-slices, 3D volumes, random patches, and filtering plate wells on their key-value pairs.
  • Training-ready output: one folder layout for micro-SAM, BiaPy and DL4MicEverywhere, with images and labels paired by name.
  • FAIR by default: the config carries study and method metadata and exports to the BioImage Archive (MIFA).
  • Read-only mode for public servers such as the IDR.

Jupyter widgets

OMERO connection widget Choosing an OMERO container in the workflow widget
Connect to any OMERO server, here the public IDR. Choose a project, dataset, plate or screen.
Reviewing the generated YAML configuration
Set the parameters and review the YAML config the run will use.

Installation

# Recommended: pixi
pixi init myproject && cd myproject
pixi add micro_sam
pixi add --pypi omero-annotate-ai

# Or: conda + pip
conda install -c conda-forge micro_sam
pip install omero-annotate-ai

See the installation guide for details and troubleshooting.

Quick start

With widgets (in Jupyter):

from omero_annotate_ai import create_omero_connection_widget, create_workflow_widget, create_pipeline

conn_widget = create_omero_connection_widget()
conn_widget.display()
conn = conn_widget.get_connection()

workflow_widget = create_workflow_widget(connection=conn)
workflow_widget.display()

config = workflow_widget.get_config()
pipeline = create_pipeline(config, conn)
table_id, config = pipeline.run_full_micro_sam_workflow()

From a YAML config (scripts, batch runs, or repeating a run):

from omero_annotate_ai import load_config, create_pipeline

config = load_config("annotation_config.yaml")
pipeline = create_pipeline(config, conn)
table_id, config = pipeline.run_full_micro_sam_workflow()

The configuration guide lists every option.

Example notebooks

Jupyter marimo
Annotate with micro-SAM widget workflow annotation
Prepare for Cellpose cellpose cellpose
Run from YAML from YAML from YAML
Train micro-SAM · BiaPy · DL4MicEverywhere micro-SAM
Export to the BioImage Archive BIA export
Try it on public IDR data IDR demo

Documentation

Full documentation: https://leiden-cell-observatory.github.io/omero_annotate_ai/ (micro-SAM tutorial, API reference).

Contributing

git clone https://github.com/Leiden-Cell-Observatory/omero_annotate_ai.git
cd omero_annotate_ai
pixi install
pixi run -e dev pytest tests/

Issues and pull requests are welcome on GitHub.

Contact and acknowledgements

Maarten Paul, m.w.paul@lacdr.leidenuniv.nl

Developed at the Leiden Cell Observatory within the NL-BioImaging infrastructure, funded by NWO.

Metadata

Release files for omero-annotate-ai 0.4.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 omero-annotate-ai 0.4.0
File Size Uploaded Provenance Actions
omero_annotate_ai-0.4.0.tar.gz 169.7 kB With provenance Details for omero_annotate_ai-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for omero-annotate-ai 0.4.0
File Interpreter ABI Platform Actions
omero_annotate_ai-0.4.0-py3-none-any.whl Python 3 none any Details for omero_annotate_ai-0.4.0-py3-none-any.whl

Total release size: 289.7 kB

Release files / omero_annotate_ai-0.4.0.tar.gz

Download URL omero_annotate_ai-0.4.0.tar.gz
Size 169.7 kB
Tags Source
SHA-256 checksum
How to use checksums
4daa85f7de5fab68a936ed8eb1823762d9560058a4fcce8de6843cf571819743
BLAKE2b-256 checksum
How to use checksums
fd646ed75954dc78028755e76511129a886afcd585e375dd27c85a8606820845
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.

Transparency log

Release files / omero_annotate_ai-0.4.0-py3-none-any.whl

Download URL omero_annotate_ai-0.4.0-py3-none-any.whl
Size 120.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2cf7a2d8a4f4f22df9b298b41cd6a716c8080acd002e2b142654dd81cc2294d0
BLAKE2b-256 checksum
How to use checksums
ccdaad1e536185abdac73b8841cc60c4872076f6b64003c6e4fec080cfa6b8d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.

Transparency log

Security for omero-annotate-ai 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for omero_annotate_ai-0.4.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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