empanada-napari


Nameempanada-napari JSON
Version 1.1.1 PyPI version JSON
download
home_pagehttps://github.com/volume-em/empanada-napari
SummaryNapari plugin of algorithms for Panoptic Segmentation of organelles in EM
upload_time2024-07-29 19:20:26
maintainerNone
docs_urlNone
authorMadeline Barry, Abhishek Bhardwaj, Ryan Conrad
requires_python>=3.7
licenseBSD-3-Clause
keywords
VCS
bugtrack_url
requirements opencv-python opencv-python-headless napari scikit-image empanada-dl napari-plugin-engine imagecodecs numba
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # empanada-napari

> [!IMPORTANT]
> **New Version Announcement!**
> * New modules 
>   * Morph labels - applies morphological operations to labels
>   * Count labels - counts and lists the label IDs within the dataset
>   * Filter labels - removes small pixel/voxel area labels or labels touching the image boundaries
>   * Export and import a model - export or import locally saved model files to use within empanada-napari
> * Updated modules 
>   * Export segmentations - now allows 3D segmentations to be exported as a single .tiff image
>   * Pick and save finetune/training patches - now allows paired grayscale and label mask images to create training patches 
>   * Split label - now allows users to specify new label IDs 
> * Updated documentation
>   * Check out the updated documentation [here](https://empanada.readthedocs.io/en/latest/index.html)!

**The paper describing this work is now available [on Cell Systems](https://www.cell.com/cell-systems/fulltext/S2405-4712(22)00494-X).**

**Documentation for the plugin, including more detailed installation instructions, can be found [here](https://empanada.readthedocs.io/en/latest/empanada-napari.html).**

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](https://napari.org).
For help with this plugin please open an [issue](https://github.com/volume-em/empanada-napari/issues), for issues with napari specifically
raise an [issue here instead](https://github.com/napari/napari/issues).

## Implemented Models

  - *MitoNet*: A generalist mitochondrial instance segmentation model.

## Example Datasets

Volume EM datasets for benchmarking mitochondrial instance segmentation are available from
[EMPIAR-10982](https://www.ebi.ac.uk/empiar/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.9 or lower

It's recommended to have installed napari through [conda](https://docs.conda.io/en/latest/miniconda.html). Then to install this plugin:

```shell
pip install empanada-napari==1.1.1
```

Launch napari:

```shell
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.

```shell
pip uninstall empanada-napari
```

Then install the newest version:

```shell
pip install empanada-napari==1.1.1
```


![empanada](images/demo.gif)

## 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:

```shell
nvidia-smi
```

If this returns "command not found" then you need to [install the driver from NVIDIA](https://www.nvidia.com/download/index.aspx). 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:

```shell
pip uninstall torch
```

Then [install torch >= 1.10 using conda for your system](https://pytorch.org/get-started/locally/).
This command should work:

```shell
conda install pytorch cudatoolkit=11.3 -c pytorch
```

## Citing this work

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

```bibtex
@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}
}
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/volume-em/empanada-napari",
    "name": "empanada-napari",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": null,
    "author": "Madeline Barry, Abhishek Bhardwaj, Ryan Conrad",
    "author_email": "abhishek.bhardwaj@nih.gov",
    "download_url": "https://files.pythonhosted.org/packages/66/6c/d3631a248e45208f7fa8eccc079748a3feb539f0e81455e804aede5bed15/empanada_napari-1.1.1.tar.gz",
    "platform": null,
    "description": "# empanada-napari\n\n> [!IMPORTANT]\n> **New Version Announcement!**\n> * New modules \n>   * Morph labels - applies morphological operations to labels\n>   * Count labels - counts and lists the label IDs within the dataset\n>   * Filter labels - removes small pixel/voxel area labels or labels touching the image boundaries\n>   * Export and import a model - export or import locally saved model files to use within empanada-napari\n> * Updated modules \n>   * Export segmentations - now allows 3D segmentations to be exported as a single .tiff image\n>   * Pick and save finetune/training patches - now allows paired grayscale and label mask images to create training patches \n>   * Split label - now allows users to specify new label IDs \n> * Updated documentation\n>   * Check out the updated documentation [here](https://empanada.readthedocs.io/en/latest/index.html)!\n\n**The paper describing this work is now available [on Cell Systems](https://www.cell.com/cell-systems/fulltext/S2405-4712(22)00494-X).**\n\n**Documentation for the plugin, including more detailed installation instructions, can be found [here](https://empanada.readthedocs.io/en/latest/empanada-napari.html).**\n\nempanada is a tool for deep learning-based panoptic segmentation of 2D and 3D electron microscopy images of cells.\nThis plugin allows the running of panoptic segmentation models trained in empanada within [napari](https://napari.org).\nFor help with this plugin please open an [issue](https://github.com/volume-em/empanada-napari/issues), for issues with napari specifically\nraise an [issue here instead](https://github.com/napari/napari/issues).\n\n## Implemented Models\n\n  - *MitoNet*: A generalist mitochondrial instance segmentation model.\n\n## Example Datasets\n\nVolume EM datasets for benchmarking mitochondrial instance segmentation are available from\n[EMPIAR-10982](https://www.ebi.ac.uk/empiar/EMPIAR-10982/).\n\n## Installation\n\n### New Users\n\nIf you've previously installed and used conda, it's recommended (but optional) to create a new virtual \nenvironment in order to avoid dependency conflicts. \n\nempanada-napari works with python=3.9 or lower\n\nIt's recommended to have installed napari through [conda](https://docs.conda.io/en/latest/miniconda.html). Then to install this plugin:\n\n```shell\npip install empanada-napari==1.1.1\n```\n\nLaunch napari:\n\n```shell\nnapari\n```\n\nLook for empanada-napari under the \"Plugins\" menu.\n\n\n### Returning Users\n\nIf you installed napari into a virtual environment as suggested in the original release documentation, \nbe sure to activate it and uninstall the old empanada-napari.\n\n```shell\npip uninstall empanada-napari\n```\n\nThen install the newest version:\n\n```shell\npip install empanada-napari==1.1.1\n```\n\n\n![empanada](images/demo.gif)\n\n## GPU Support\n\n**Note: Mac doesn't support NVIDIA GPUS. This section only applies to Windows and Linux systems.**\n\nAs for any deep learning models, having a GPU installed on your system will significantly\nincrease model throughput (although we ship CPU optimized versions of all models with the plugin).\n\nThis plugin relies on torch for running models. If a GPU was found on your system, then you will see that the\n\"Use GPU\" checkbox is checked by default in the \"2D Inference\" and \"3D Inference\" plugin widgets. Or if when running\ninference you see a message that says \"Using CPU\" in the terminal that means a GPU is not being used.\n\nMake sure that GPU drivers are correctly installed. In terminal or command prompt:\n\n```shell\nnvidia-smi\n```\n\nIf this returns \"command not found\" then you need to [install the driver from NVIDIA](https://www.nvidia.com/download/index.aspx). Instead, if\nif the driver is installed correctly, you may need to switch to the GPU enabled version of torch.\n\nFirst, uninstall the current version of torch:\n\n```shell\npip uninstall torch\n```\n\nThen [install torch >= 1.10 using conda for your system](https://pytorch.org/get-started/locally/).\nThis command should work:\n\n```shell\nconda install pytorch cudatoolkit=11.3 -c pytorch\n```\n\n## Citing this work\n\nIf you use results generated by this plugin in a publication, please cite:\n\n```bibtex\n@article { Conrad2023,\n    author = {Conrad, Ryan and Narayan, Kedar},\n    title = {Instance segmentation of mitochondria in electron microscopy images with a generalist deep learning model trained on a diverse dataset},\n    journal = {Cell Systems},\n    year = {2023},\n    month = {Jan},\n    day = {18},\n    publisher = {Elsevier},\n    volume = {14},\n    number = {1},\n    pages = {58-71.e5},\n    issn = {2405-4712},\n    doi = {10.1016/j.cels.2022.12.006},\n    url = {https://doi.org/10.1016/j.cels.2022.12.006}\n}\n```\n",
    "bugtrack_url": null,
    "license": "BSD-3-Clause",
    "summary": "Napari plugin of algorithms for Panoptic Segmentation of organelles in EM",
    "version": "1.1.1",
    "project_urls": {
        "Bug Tracker": "https://github.com/volume-em/empanada-napari/issues",
        "Documentation": "https://github.com/volume-em/empanada-napari#README.md",
        "Homepage": "https://github.com/volume-em/empanada-napari",
        "Source Code": "https://github.com/volume-em/empanada-napari",
        "User Support": "https://github.com/volume-em/empanada-napari/issues"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c6a8c916f2d7f82020238a513007e8462ab967d42b876ce21f7f74337954d915",
                "md5": "0d054f01812f47cafe81bdbeb4b70883",
                "sha256": "889e35e4648cab187b25a40f154424ff8f219f358e0d853dea81b43d535986a3"
            },
            "downloads": -1,
            "filename": "empanada_napari-1.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "0d054f01812f47cafe81bdbeb4b70883",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 83686,
            "upload_time": "2024-07-29T19:19:06",
            "upload_time_iso_8601": "2024-07-29T19:19:06.929741Z",
            "url": "https://files.pythonhosted.org/packages/c6/a8/c916f2d7f82020238a513007e8462ab967d42b876ce21f7f74337954d915/empanada_napari-1.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "666cd3631a248e45208f7fa8eccc079748a3feb539f0e81455e804aede5bed15",
                "md5": "ff91337d8c63dd21c52c77229b55cd7d",
                "sha256": "fdd5f25d231734d6f4db080e7ea9199a9854875e6c3b5a6e0dacfa509f57c5eb"
            },
            "downloads": -1,
            "filename": "empanada_napari-1.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "ff91337d8c63dd21c52c77229b55cd7d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 8620935,
            "upload_time": "2024-07-29T19:20:26",
            "upload_time_iso_8601": "2024-07-29T19:20:26.849483Z",
            "url": "https://files.pythonhosted.org/packages/66/6c/d3631a248e45208f7fa8eccc079748a3feb539f0e81455e804aede5bed15/empanada_napari-1.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-29 19:20:26",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "volume-em",
    "github_project": "empanada-napari",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "opencv-python",
            "specs": [
                [
                    "==",
                    "4.9.0.80"
                ]
            ]
        },
        {
            "name": "opencv-python-headless",
            "specs": [
                [
                    "==",
                    "4.9.0.80"
                ]
            ]
        },
        {
            "name": "napari",
            "specs": [
                [
                    "==",
                    "0.4.18"
                ]
            ]
        },
        {
            "name": "scikit-image",
            "specs": [
                [
                    ">=",
                    "0.18"
                ]
            ]
        },
        {
            "name": "empanada-dl",
            "specs": [
                [
                    ">=",
                    "0.1.5"
                ]
            ]
        },
        {
            "name": "napari-plugin-engine",
            "specs": [
                [
                    ">=",
                    "0.1.4"
                ]
            ]
        },
        {
            "name": "imagecodecs",
            "specs": []
        },
        {
            "name": "numba",
            "specs": [
                [
                    "==",
                    "0.59.0"
                ]
            ]
        }
    ],
    "tox": true,
    "lcname": "empanada-napari"
}
        
Elapsed time: 0.72198s