Skip to main content

Segment Anything Model (SAM) in Napari

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

Segment anything with Meta AI's new SAM model with thi Napari plugin!

SAM is the new segmentation system from Meta AI capable of one-click segmentation of any object and now our plugin neatly integrates this into Napari.

We already extended SAMs click-based foreground separation to full click-based semantic segmentation & instance segmentation will soon follow!


Everything mode Click-based semantic segmentation mode Click-based instance segmentation mode

SAM in Napari demo

Click to play the video


Installation

The plugin requires python>=3.8, as well as pytorch>=1.7 and torchvision>=0.8. Please follow the instructions here to install both PyTorch and TorchVision dependencies. Installing both PyTorch and TorchVision with CUDA support is strongly recommended.

You can install napari-sam via pip:

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

To install latest development version :

pip install git+https://github.com/MIC-DKFZ/napari-sam.git

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-sam" is free and open source software

Issues

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

napari-sam-0.2.1.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

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

napari_sam-0.2.1-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

Details for the file napari-sam-0.2.1.tar.gz.

File metadata

  • Download URL: napari-sam-0.2.1.tar.gz
  • Upload date:
  • Size: 15.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for napari-sam-0.2.1.tar.gz
Algorithm Hash digest
SHA256 37374685c5822d1d90e26260a3c8ec5f85cf010355dab8fc9d523f1b9dddc827
MD5 0dd26c158ea915bc758bdec3031ed4d2
BLAKE2b-256 449cd14f6fcb3803af844e144806be0f83268542e139af542351f82c1a4eb9ae

See more details on using hashes here.

File details

Details for the file napari_sam-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: napari_sam-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 14.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for napari_sam-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 efa1d2ad8d2a1a697fa4e313c3f87f7183d05227280f4f6f18ee878d94e13ee4
MD5 92a0441edcc85f24e69a8e2299520262
BLAKE2b-256 386882660c6cba7454d61d4529a0947b52733d22691ee1e115f4b9408f210096

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 Sentry Error logging StatusPage Status page