Skip to main content

A segmentation plugin to adapt Omnipose implementation to partial labelling.

Project description

napari-sketchpose

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

A plugin to adapt the Omnipose implementation to frugal labeling. It aims to facilitate the training from scratch or the use of transfer learning with little data, by not needing to draw entire cells, but a few squiggles instead (see GIF below).

If you use this plugin please cite the paper:

Clément Cazorla, Nathanaël Munier, Renaud Morin, Pierre Weiss. Sketchpose: Learning to Segment Cells with Partial Annotations. 2023. ffhal-04330824f

@unpublished{cazorla:hal-04330824,
      TITLE = {{Sketchpose: Learning to Segment Cells with Partial Annotations}},
      AUTHOR = {Cazorla, Cl{\'e}ment and Munier, Nathana{\"e}l and Morin, Renaud and Weiss, Pierre},
      URL = {https://hal.science/hal-04330824},
      NOTE = {working paper or preprint},
      YEAR = {2023},
      MONTH = Dec,
      KEYWORDS = {Cellpose -Segmentation -Frugal learning -Napari -Deep learning -Distance map},
      PDF = {https://hal.science/hal-04330824/file/sketchpose_hal.pdf},
      HAL_ID = {hal-04330824},
      HAL_VERSION = {v1},
    }

Image Credit: Eduard Muzhevskyi

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

Installation

First, we advise you to create a conda environment in Python 3.10, in which you will run Napari:

conda create -n sketchpose_env python=3.10
conda activate sketchpose_env
conda install pip
python -m pip install "napari[all]" --upgrade

You can install napari_sketchpose via pip:

pip install napari_sketchpose

WARNING:

For Windows users, CUDA version of PyTorch may not be installed properly. When the plugin starts for the first time, it checks whether CUDA version is installed. If not, it tries to install it using light-the-torch library. If this does not work, you should re-install CUDA torch and torchvision versions manually, otherwise the plugin will not work properly.

Tutorial

We strongly recommend reading the documentation to get the most out of the plugin. A step-by-step tutorial illustrated with GIFs will guide you through the various stages.

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 GNU GPL v3.0 license, "napari-sketchpose" 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-sketchpose-0.1.8.tar.gz (95.4 kB view details)

Uploaded Source

Built Distribution

napari_sketchpose-0.1.8-py3-none-any.whl (99.3 kB view details)

Uploaded Python 3

File details

Details for the file napari-sketchpose-0.1.8.tar.gz.

File metadata

  • Download URL: napari-sketchpose-0.1.8.tar.gz
  • Upload date:
  • Size: 95.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12

File hashes

Hashes for napari-sketchpose-0.1.8.tar.gz
Algorithm Hash digest
SHA256 a580a09ec499a340303ef6b6859d351032bded5efed218c743b62499f808c2b4
MD5 4369eec3d940d57326e058a0cb74e39e
BLAKE2b-256 707697b1b94c69b07c987637527848c333377336d666be0384216feca8872261

See more details on using hashes here.

File details

Details for the file napari_sketchpose-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: napari_sketchpose-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 99.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12

File hashes

Hashes for napari_sketchpose-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 f383fa2cc73d3c2721a81f28d69dbeba880726c0bdab8b1783d224d24827b8a5
MD5 d2db52e766567c4271753a96cb57f812
BLAKE2b-256 a5083547583f0c253f53b9030ce8bf70252106c8b686a5c8b72a00712eeaaab6

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