Skip to main content

A plugin that integrates the ROXAS AI analysis methods for quantitative wood anatomy in the napari platform

Project description

napari-roxas-ai

License GNU GPL v3.0 PyPI Python Version tests codecov napari hub

A plugin that integrates the ROXAS AI analysis methods for quantitative wood anatomy in the napari platform


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

Installation

Environment setup

It's recommended to create a dedicated Python environment for napari-roxas-ai:

  1. Install Miniconda if you don't have it already: Miniconda Installation Guide

  2. Create a new environment:

conda create -n roxas-ai python=3.12
conda activate roxas-ai

Installation

Install napari-roxas-ai via pip:

pip install napari-roxas-ai

Launching the plugin

Once installed, you can launch napari with the roxas-ai plugin:

napari

Verifying installation

To check if the plugin is working correctly:

  1. Go to File > Open Sample > ROXAS AI in the napari interface.
  2. The first time you open a sample, it may take some time as sample data and model weights are being downloaded. Progress will be logged in the terminal.
  3. After the downloads, a sample made of three layers should open in the viewer

GPU Support

If you want to use GPU acceleration for model inference:

  1. Ensure you have the proper GPU drivers and CUDA installed for your system:

  2. Enable GPU support in the napari-roxas-ai settings within the napari interface.

  3. You may need to reinstall PyTorch with CUDA support for your specific hardware: Visit the PyTorch Installation Guide to find the appropriate installation command for your setup.

Contributing

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

Contributor Installation

In order to contribute to the development of the plugin the installation can be done as follows:

  1. Create an environment
conda create -n roxas-ai python=3.12
conda activate roxas-ai
  1. In the cloned / forked plugin directory, install the plugin dependencies
pip install -e .
  1. Install the testing dependencies, as well as the napari plugin engine
pip install -e ".[testing]"
pip install npe2
  1. Install pre-commit for quality checks
pip install pre-commit
pre-commit install

Documentation: Plugin Template and Development

You can find more information on the plugin template on the napari-plugin-template repository. You can find more information on plugin contributions and how to create plugins on the plugins section of the napari documentation.

License

Distributed under the terms of the GNU GPL v3.0 license, "napari-roxas-ai" is free and open source software

Issues

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

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_roxas_ai-0.1.1.tar.gz (112.0 kB view details)

Uploaded Source

Built Distribution

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

napari_roxas_ai-0.1.1-py3-none-any.whl (121.4 kB view details)

Uploaded Python 3

File details

Details for the file napari_roxas_ai-0.1.1.tar.gz.

File metadata

  • Download URL: napari_roxas_ai-0.1.1.tar.gz
  • Upload date:
  • Size: 112.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for napari_roxas_ai-0.1.1.tar.gz
Algorithm Hash digest
SHA256 2321f732d9fa37aef8937321e8117a755e384fcc3dc4a24e19b05c4e5edf6ce9
MD5 545b4bf1308661699388342919ea044a
BLAKE2b-256 878a93c6bb0ac3e0012400bcc8733f7f23aa0fb280429302a259efc9be4bdbca

See more details on using hashes here.

File details

Details for the file napari_roxas_ai-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for napari_roxas_ai-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e5d17558382ccec557411dcde3f0b6f1a25e4b7d34c16101cddf09c9eac3cdd8
MD5 fa3f64a1ee0c0fa363896d9d8c0d32fb
BLAKE2b-256 232ba17f4b3d61807d8aa156f0870e57b55c3f60c37423c676510dfbd1e3d5b6

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