Napari plugin of Segment Anything Model (SAM)
Project description
napari-segment-anything
Napari plugin of Segment Anything Model (SAM)
Download the network weights here
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 napari-segment-anything
We recommend installing the latest development version because this package is being developed:
pip install git+https://github.com/jookuma/napari-segment-anything.git
IMPORTANT: napari
won't work if you don't have pyqt5
or pyside2
installed.
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
Built Distribution
File details
Details for the file napari-segment-anything-0.1.2.tar.gz
.
File metadata
- Download URL: napari-segment-anything-0.1.2.tar.gz
- Upload date:
- Size: 12.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8324b7a35d8a07f586805996c8924bbdf3bf474044aa2c9272a8f79e3bd93d41 |
|
MD5 | d4c88822a05980f9e6a1c9bb928471b4 |
|
BLAKE2b-256 | b9f53e930dd7e4e212fa09dcd71a20d659c41fb05391da0e7038ca2c316b221d |
File details
Details for the file napari_segment_anything-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: napari_segment_anything-0.1.2-py3-none-any.whl
- Upload date:
- Size: 12.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96a828219bd0dff257e32bf7bcd46eb585fd6a5245f4d6c8b5e2d7bd8c241ea3 |
|
MD5 | 023e7d7e95c8d16a143eb9b6fdccaad3 |
|
BLAKE2b-256 | a08a029c28c059a1fde27d978cd9096051a7149c1b3bb93c473f463ace680609 |