Segment anything with Meta AI's new SAM model!
Project description
Segment Anything Model (SAM) in Napari
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!
SAM's everything mode | Our click-based semantic 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.
Project details
Release history Release notifications | RSS feed
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
Hashes for napari_sam-0.1.16-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1194dfbfb47ec8eac6a71db2eb0a43379cb9e04a544f657b23e767b5755ba865 |
|
MD5 | eac2a37f1f031e6cd1e1c46764597bf2 |
|
BLAKE2b-256 | 3f177f7b584f0e1627277d96a650c7ea49793104b1ac944f0434606d9f31a3ac |