Skip to main content

empanada-napari

The paper describing this work is now available on Cell Systems.

Documentation for the plugin, including more detailed installation instructions, can be found here.

empanada is a tool for deep learning-based panoptic segmentation of 2D and 3D electron microscopy images of cells. This plugin allows the running of panoptic segmentation models trained in empanada within napari. For help with this plugin please open an issue, for issues with napari specifically raise an issue here instead.

Implemented Models

  • MitoNet: A generalist mitochondrial instance segmentation model.

Example Datasets

Volume EM datasets for benchmarking mitochondrial instance segmentation are available from EMPIAR-10982.

Installation

New Users

If you've previously installed and used conda, it's recommended (but optional) to create a new virtual environment in order to avoid dependency conflicts.

empanada-napari works with python=3.10 to 3.13, and napari<=0.6.6

It's recommended to have installed napari through conda. Then to install this plugin:

pip install empanada-napari

Launch napari:

napari

Look for empanada-napari under the "Plugins" menu.

Returning Users

If you installed napari into a virtual environment as suggested in the original release documentation, be sure to activate it and uninstall the old empanada-napari.

pip uninstall empanada-napari

Then install the newest version:

pip install empanada-napari

empanada

GPU Support

Note: Mac doesn't support NVIDIA GPUS. This section only applies to Windows and Linux systems.

As for any deep learning models, having a GPU installed on your system will significantly increase model throughput (although we ship CPU optimized versions of all models with the plugin).

This plugin relies on torch for running models. If a GPU was found on your system, then you will see that the "Use GPU" checkbox is checked by default in the "2D Inference" and "3D Inference" plugin widgets. Or if when running inference you see a message that says "Using CPU" in the terminal that means a GPU is not being used.

Make sure that GPU drivers are correctly installed. In terminal or command prompt:

nvidia-smi

If this returns "command not found" then you need to install the driver from NVIDIA. Instead, if if the driver is installed correctly, you may need to switch to the GPU enabled version of torch.

First, uninstall the current version of torch:

pip uninstall torch

Then install torch >= 1.10 using conda for your system. This command should work:

conda install pytorch cudatoolkit -c pytorch

Citing this work

If you use results generated by this plugin in a publication, please cite:

@article { Conrad2023,
    author = {Conrad, Ryan and Narayan, Kedar},
    title = {Instance segmentation of mitochondria in electron microscopy images with a generalist deep learning model trained on a diverse dataset},
    journal = {Cell Systems},
    year = {2023},
    month = {Jan},
    day = {18},
    publisher = {Elsevier},
    volume = {14},
    number = {1},
    pages = {58-71.e5},
    issn = {2405-4712},
    doi = {10.1016/j.cels.2022.12.006},
    url = {https://doi.org/10.1016/j.cels.2022.12.006}
}

Release files for empanada-napari 1.2.4

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

Source distribution (sdist)

Source distribution for empanada-napari 1.2.4
File Size Uploaded
empanada_napari-1.2.4.tar.gz 8.7 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for empanada-napari 1.2.4
File Interpreter ABI Platform
empanada_napari-1.2.4-py3-none-any.whl Python 3 none any Details

Total release size: 8.9 MB

Release files / empanada_napari-1.2.4.tar.gz

Download URL empanada_napari-1.2.4.tar.gz
Size 8.7 MB
Tags Source
SHA-256 checksum
How to use checksums
d817b562a990495dcd4a992c871049e0e8fc54b50f8c5f379c2633b2e1aeffa5
BLAKE2b-256 checksum
How to use checksums
56eec46f3153f8d5ad0bf472afdc7c6289d706e701f8b478581ce1712f724882
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.6

Release files / empanada_napari-1.2.4-py3-none-any.whl

Download URL empanada_napari-1.2.4-py3-none-any.whl
Size 194.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cc0dfe5e65069271f7cf578981f57ee305362d92a27706d8bcf0f92fe1edcef1
BLAKE2b-256 checksum
How to use checksums
72c8815fa56a56d7a287ecb15f9d7cf159329b8a574b6d663a58952280776ae7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.6

Release history Release notifications | RSS feed

This release

1.2.4 This release

2 release files

1.2.3

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

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