Skip to main content

Napari-Hydra

A napari plugin for single-shot nested instance segmentation of biomedical objects using HydraStarDist — a branched deep learning architecture built on StarDist.

Napari-Hydra enables GUI-based detection, segmentation, and quantification of spatially correlated, star-convex objects (e.g. viral plaques nested within tissue culture wells) directly from digital photographs — no microscopy required.

How to Cite Us

If you use this plugin or the underlying methods in your research, please cite the following:

De, T., Thangamani, S., Urbański, A., & Yakimovich, A. (2025). A digital photography dataset for Vaccinia Virus plaque quantification using Deep Learning. Scientific Data, 12, 719. https://doi.org/10.1038/s41597-025-05030-8

De, T., Urbanski, A., & Yakimovich, A. (2025). Single-shot Star-convex Polygon-based Instance Segmentation for Spatially-correlated Biomedical Objects. arXiv preprint arXiv:2504.12078. https://doi.org/10.48550/arXiv.2504.12078

Overview

Traditional virological plaque assays rely on manual counting — a process that is laborious, subjective, and error-prone. Napari-Hydra addresses this by providing an end-to-end deep learning pipeline accessible through napari's graphical interface.

What is HydraStarDist?

HydraStarDist (HSD) extends the StarDist architecture with a joint encoder and branched decoders, enabling simultaneous detection of two categories of nested objects in a single forward pass. This is in contrast to conventional approaches that require independent models for each object type (e.g. one for wells, one for plaques).

The shared encoder implicitly captures spatial correlations between nested objects (e.g. plaques can only appear within wells), resulting in more meaningful representations and improved joint detection accuracy.

Key Features

  • Single-shot prediction — detect and segment both wells and plaques simultaneously
  • Interactive thresholding — tune probability and NMS thresholds per object class
  • Per-well plaque counting — automatic quantification with per-well breakdown
  • Model fine-tuning — adapt pre-trained models to your own data directly from the GUI
  • Stack support — process time-lapse image stacks with frame-by-frame results
  • Export — save prediction summaries including plaque counts and morphometrics

Installation

pip install napari-hydra

Or install in development mode:

git clone https://github.com/plaque2/napari-hydra.git
cd napari-hydra
pip install -e ".[test]"

Usage

Launch napari with the plugin:

napari -w napari-hydra
  1. Load an image — drag and drop or use File > Open to load a plaque assay photograph.
  2. Run Prediction — select the image layer and model, then click Run Prediction. Wells and plaques are detected simultaneously and displayed as label overlays.
  3. Count — click Count to compute per-well plaque counts.
  4. Tune — fine-tune the model on your own annotated data using the Tune Model button. Fine-tuned models are saved as new timestamped copies, preserving the original.
  5. Export — save a prediction summary with plaque counts and areas.

License

BSD-3-Clause

Metadata

Release files for napari-hydra 0.0.8

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

Source distribution (sdist)

Source distribution for napari-hydra 0.0.8
File Size Uploaded
napari_hydra-0.0.8.tar.gz 284.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for napari-hydra 0.0.8
File Interpreter ABI Platform
napari_hydra-0.0.8-py3-none-any.whl Python 3 none any Details

Total release size: 572.2 kB

Release files / napari_hydra-0.0.8.tar.gz

Download URL napari_hydra-0.0.8.tar.gz
Size 284.2 kB
Tags Source
SHA-256 checksum
How to use checksums
a59cefac321e9c974cfe276ad60a7fa8cdb254cc1829d1c0f14f46d1f0b82d22
BLAKE2b-256 checksum
How to use checksums
1fc1327f2720a01e1cd235e362ea31e6f071188f17783cacf3e65d6814b83da0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / napari_hydra-0.0.8-py3-none-any.whl

Download URL napari_hydra-0.0.8-py3-none-any.whl
Size 288.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a91fe7dc0364aad866b7b4f60616dcb7148a5a79222c8259a218ee9f182dc542
BLAKE2b-256 checksum
How to use checksums
8970628bada67fd7f7e6c0fc2431acfa8d41159d061f91914afad44718040a55
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release history Release notifications | RSS feed

This release

0.0.8 This release

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

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