Skip to main content

Napari plugin of Segment Anything Model (SAM)

Project description

napari-segment-anything

License Apache Software License 2.0 PyPI Python Version tests codecov napari hub

Napari plugin of Segment Anything Model (SAM)

Download the network weights here

https://user-images.githubusercontent.com/21022743/230456433-2fa7bc40-a735-4d73-8d87-ecf776bbe2be.mp4


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

Installation

You can install napari-segment-anything via pip:

pip install git+https://github.com/facebookresearch/segment-anything.git
pip install napari-segment-anything

To install the latest development version :

pip install git+https://github.com/facebookresearch/segment-anything.git
pip install git+https://github.com/jookuma/napari-segment-anything.git

Instructions

  • Interactions are done on the "SAM points" and "SAM box" layers using the existing functionalities of napari. Only rectangle shapes trigger the network prediction.
  • For points supervision, left clicks are positive cues (object) and right clicks are negative (background).
  • Press the "Confirm Annot." button (or the "C" key) to propagate the current segmentation mask to the label image.
  • Use the napari labels layer features to delete or edit already confirmed labels.

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 Apache Software License 2.0 license, "napari-segment-anything" is a 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-segment-anything-0.1.0.tar.gz (11.9 kB view details)

Uploaded Source

Built Distribution

napari_segment_anything-0.1.0-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file napari-segment-anything-0.1.0.tar.gz.

File metadata

File hashes

Hashes for napari-segment-anything-0.1.0.tar.gz
Algorithm Hash digest
SHA256 213956c8aea31ebf0f555606695c38711f60f49097a8ea46a893640df07659b2
MD5 3ea957575f59ed0044bbb4ea0576d9c4
BLAKE2b-256 ece36ae413e80bd5abed87a052252fe30fc36836ff9cf850acde240c9865a7d4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for napari_segment_anything-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 714cfbc14a3cd6221bd0a0392a34fcab4954128c8ad3a000cf312008505830ce
MD5 a09c208220c9952d5c54f381b326322f
BLAKE2b-256 cedbedb653cf02961eace37e9a6d5d8d10d6003b746342c2201edaccb65b89f7

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