Skip to content

AIoD Napari Plugin (aiod_napari)

To easily visualise your data, and select the different models, parameters, and other options within AIoD, we have developed a Napari plugin.

Installation

  1. Create a virtual environment. We recommend uv, though venv, conda, or pixi all work:

    uv venv aiod-env # (a)
    source aiod-env/bin/activate # (b)
    
    1. Creates an isolated Python environment in a new aiod-env folder inside whatever directory your terminal is currently in.
    2. Activates the environment, so that everything you install next goes into this environment. You need to do this again in every new terminal. On Windows (PowerShell) use aiod-env\Scripts\activate instead.
  2. Install Napari: Official guide

  3. In your environment, install our plugin.

For the latest published version:

uv pip install aiod_napari

or you can install through the Napari interface directly.

An AIoD app is already available on OnDemand for you to use.

If you would like to create your own environment so that you can install other plugins, please create a "NEMO Desktop" session, and follow the local install instructions.

To use the Napari plugin, you must be able to run Napari on your institute's HPC, through something like Open OnDemand or some other service that provides a visual server/interface.

If this is not possible, you can skip the GUI entirely. Your First Segmentation (Command Line) walks through running the pipeline from the terminal. Otherwise, contact your HPC about setting this up!

If this is possible, then the local installation instructions should work for you. If not, contact your HPC team or see our contact page where we may be able to help.

Tutorial

For a step-by-step walkthrough that takes you from nothing installed to a set of masks, see Your First Segmentation (Napari).

Using the Plugin

The plugin itself is structured into several main widgets that you'll see in the dropdown:

  • Evaluation: Simple options for calculating different metrics (in isolation, or when comparing different annotation sets)
  • Inference: Primary interface for running the models on data!
  • Postprocess: Useful functions for filtering, merging, and morphing masks

For a detailed guide on using each plugin, please click the relevant widget above.