Skip to main content

Napari plugin of algorithms for Panoptic Segmentation of organelles in EM

Project description

empanada-napari

The preprint describing this work is now available on bioRxiv.

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

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.

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=11.3 -c pytorch

Citing this work

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

@article {Conrad2022.03.17.484806,
	author = {Conrad, Ryan and Narayan, Kedar},
	title = {Instance segmentation of mitochondria in electron microscopy images with a generalist deep learning model},
	elocation-id = {2022.03.17.484806},
	year = {2022},
	doi = {10.1101/2022.03.17.484806},
	publisher = {Cold Spring Harbor Laboratory},
	URL = {https://www.biorxiv.org/content/early/2022/03/18/2022.03.17.484806},
	eprint = {https://www.biorxiv.org/content/early/2022/03/18/2022.03.17.484806.full.pdf},
	journal = {bioRxiv}
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

empanada-napari-0.2.2.tar.gz (8.6 MB view details)

Uploaded Source

Built Distribution

empanada_napari-0.2.2-py3-none-any.whl (71.6 kB view details)

Uploaded Python 3

File details

Details for the file empanada-napari-0.2.2.tar.gz.

File metadata

  • Download URL: empanada-napari-0.2.2.tar.gz
  • Upload date:
  • Size: 8.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for empanada-napari-0.2.2.tar.gz
Algorithm Hash digest
SHA256 31c3b363cfb4d6f91549fe4a8fc1c081b7abe4d5a7d8a610ffa26e1e5b9b62ee
MD5 87198132f9de6e6075f3b66f651d8e8f
BLAKE2b-256 0e6442bfe2a705ef41f38bc8afa793ba57418bccee3b094b700ffc7abd2ead72

See more details on using hashes here.

File details

Details for the file empanada_napari-0.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for empanada_napari-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0f5ad0e2453c77925cc6b8af76fcab57f93211e526cc29e8846b981b8a04ec7f
MD5 e02eecc6aad881b27b4b438c5e8e4f06
BLAKE2b-256 2ce7ef05c6b5e0f55deb67a2050b988029872ef3bc9294e1b8bb6c9b6991b5e3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page