Skip to main content

napari-easy-augment-batch-dl

License BSD-3 PyPI Python Version tests codecov napari hub

See full documentation

A plugin to perform deep learning on small to medium sized image sets with UNETs, Cellpose, Stardist, SAM and friends. In particular this plugin is useful for performing deep learning with a small number of labels and augmentation, and experimenting with different deep learning frameworks.

Important note on dependencies: This plugin is designed to work with different permutations of dependencies. For example it should work if one of Pytorch, Cellpose, SAM and/or Stardist is installed but does not require all. Thus we don't specify all the dependencies and leave it up to the user to install the permutation of DL related dependencies they would like to use. More detailed instructions are below.

If you have any questions about dependencies splease post on the Image.sc forum.


This napari plugin was generated with Cookiecutter using @napari's cookiecutter-napari-plugin template.

Installation

To install latest development version :

pip install git+https://github.com/bnorthan/napari-easy-augment-batch-dl.git

You will also need to install the latest development version of tnia-python:

pip install git+https://github.com/True-North-Intelligent-Algorithms/tnia-python.git

You will need to install napari and for augmentation you will need albumentations library. Also explicitly install numpy 1.26. (We have not tested with numpy 2.0 so it is a good idea to explicitly install numpy 1.26 to avoid another dependency installing numpy 2.x)

    pip install numpy==1.26
    pip install napari[all]
    pip install albumentations
    pip install matplotlib

You will also need one or more of stardist, cellpose, segment-everything or Yolo

Stardist

Windows

    conda install -c conda-forge cudatoolkit=11.2 cudnn=8.1.0
    pip install "tensorflow<2.11"
    pip install stardist==0.8.5
    pip install gputools
    pip install edt

Linux

    pip install tensorflow[and-cuda]
    pip install stardist
    pip install gputools
    pip install edt

Pytorch (for unet segmentation)

    pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
    pip install pytorch-lightning
    pip install monai
    pip install scipy
    pip install tifffile

Cellpose

    pip install cellpose

SAM (Segment Anything)

    pip install segment-everything

You can install napari-easy-augment-batch-dl via pip:

pip install napari-easy-augment-batch-dl

Contributing

Contributions are very welcome. Tests can be run with tox, please ensure the coverage at least stays the same before you submit a pull request.

License

Distributed under the terms of the BSD-3 license, "napari-easy-augment-batch-dl" is free and open source software

Issues

If you encounter any problems, please file an issue along with a detailed description.

Metadata

Release files for napari-easy-augment-batch-dl 0.0.6

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-easy-augment-batch-dl 0.0.6
File Size Uploaded
napari_easy_augment_batch_dl-0.0.6.tar.gz 43.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for napari-easy-augment-batch-dl 0.0.6
File Interpreter ABI Platform
napari_easy_augment_batch_dl-0.0.6-py3-none-any.whl Python 3 none any Details

Total release size: 94.1 kB

Release files / napari_easy_augment_batch_dl-0.0.6.tar.gz

Download URL napari_easy_augment_batch_dl-0.0.6.tar.gz
Size 43.9 kB
Tags Source
SHA-256 checksum
How to use checksums
4641c8c889ace8f0bdec4d2de01f9cee97c9fc5a75c84209d59dac7f96e624bf
BLAKE2b-256 checksum
How to use checksums
65dbad97d01c8f11cae819a3eed9d2107d282f960c1a63ff8dada94a168d9054
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.4

Release files / napari_easy_augment_batch_dl-0.0.6-py3-none-any.whl

Download URL napari_easy_augment_batch_dl-0.0.6-py3-none-any.whl
Size 50.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3f387bd7abf9ff332731daab94b33885efafb2c9d079757703b9c07b4d547b9d
BLAKE2b-256 checksum
How to use checksums
5cd525288d7b68e66bcc09b078d2bbee45b0737912a3ad0e26e2ac314acb4843
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.4

Release history Release notifications | RSS feed

This release

0.0.6 This release

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

0.0.1

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