Skip to main content

A Napari plugin to use DeBCR framework for light microscopy data enhancement via deep learning

Project description

napari-debcr

DeBCR is a Python-based framework for light microscopy data enhancement, including denoising and deconvolution.

napari-debcr is add-on plugin, created to provide a graphical interface for DeBCR in Napari viewer.

This plugin was initialized with copier using the napari-plugin-template.

License

This is an open-source project and is licensed under MIT license.

Contact

For any questions or bur-reports related to:

Installation

As for the core package debcr, there are two hardware-based installation options for napari-debcr:

  • napari-debcr[tf-gpu] - for a GPU-based trainig and prediction (recommended);
  • napari-debcr[tf-cpu] - for a CPU-only execution (note: training on CPUs might be quite slow!).

GPU prerequisites

For a GPU version you need:

  • a GPU device with at least 12Gb of VRAM;
  • a compatible CUDA Toolkit (recommemded: CUDA-11.7);
  • a compatible cuDNN library (recommemded: v8.4.0 for CUDA-11.x from cuDNN archive).

For more info on GPU dependencies please check our GPU-advice page on DeBCR GitHub.

Create a package environment (optional)

For a clean isolated installation, we advice using one of Python package environment managers, for example:

Create an environment for napari-debcr using

micromamba env create -n napari-debcr python=3.9 -y

and activate it for further installation or usage by

micromamba activate napari-debcr

Install napari

Make sure you have napari installed. To install it via pip use:

pip install napari[all]

Install napari-debcr

Install one of the napari-debcr versions:

  • GPU (recommended; backend: TensorFlow-GPU-v2.11):
    pip install 'napari-debcr[tf-gpu]'
    
  • CPU (limited; backend: TensorFlow-CPU-v2.11)
    pip install 'napari-debcr[tf-cpu]'
    

Test GPU visibility

For a GPU version installation, it is recommended to check if your GPU device is recognised by TensorFlow using

python -c "import tensorflow as tf; print(tf.config.list_physical_devices('GPU'))"

which for a single GPU device should produce a similar output as below:

[PhysicalDevice(name='/physical_device:GPU:0', device_type='GPU')]

If your GPU device list is empty, please check our GPU-advice page on DeBCR GitHub.

Usage

To start using napari-debcr,

  1. activate napari-debcr environment, if was inactive, by
micromamba activate napari-debcr
  1. start Napari by typing
napari
  1. in Napari window, open napari-debcr plugin by clicking in the main menu

PluginsDeBCR (DeBCR)

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

napari_debcr-0.1.0.tar.gz (15.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

napari_debcr-0.1.0-py3-none-any.whl (20.9 kB view details)

Uploaded Python 3

File details

Details for the file napari_debcr-0.1.0.tar.gz.

File metadata

  • Download URL: napari_debcr-0.1.0.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.9.5 Linux/5.15.0-139-generic

File hashes

Hashes for napari_debcr-0.1.0.tar.gz
Algorithm Hash digest
SHA256 14bcaf130a27228370251fb825935d90254f8d00bb1a4906454e6d40a726ae3f
MD5 d6a8a47f8d4e0036c00445aa80f8d895
BLAKE2b-256 3b123d42e8d6ac6f242fb36f588b7d2b44bdfc3bba0795360b6b580afb5f3427

See more details on using hashes here.

File details

Details for the file napari_debcr-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: napari_debcr-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 20.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.9.5 Linux/5.15.0-139-generic

File hashes

Hashes for napari_debcr-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1c8e5db82a503f8ea4f7b474584bb469315dff9d252cb8b3d0ab4c1bd3cf60ea
MD5 e61e725486d90a633df89107706a3afb
BLAKE2b-256 a779d776961fc5c00269b2266b769ef98141c8a1dbb2323ab8aa060c362569dc

See more details on using hashes here.

Supported by

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