{"name":"napari-sam","display_name":"Segment Anything","visibility":"public","icon":"","categories":[],"schema_version":"0.2.0","on_activate":null,"on_deactivate":null,"contributions":{"commands":[{"id":"napari-sam.make_qwidget","title":"Segment Anything","python_name":"napari_sam._widget:SamWidget","short_title":null,"category":null,"icon":null,"enablement":null}],"readers":null,"writers":null,"widgets":[{"command":"napari-sam.make_qwidget","display_name":"Segment Anything","autogenerate":false}],"sample_data":null,"themes":null,"menus":{},"submenus":null,"keybindings":null,"configuration":[]},"package_metadata":{"metadata_version":"2.1","name":"napari-sam","version":"0.4.13","dynamic":null,"platform":null,"supported_platform":null,"summary":"Segment anything with Meta AI's new SAM model!","description":"# Segment Anything Model (SAM) in Napari\n\n[![License Apache Software License 2.0](https://img.shields.io/pypi/l/napari-sam.svg?color=green)](https://github.com/MIC-DKFZ/napari-sam/raw/main/LICENSE)\n[![PyPI](https://img.shields.io/pypi/v/napari-sam.svg?color=green)](https://pypi.org/project/napari-sam)\n[![Python Version](https://img.shields.io/pypi/pyversions/napari-sam.svg?color=green)](https://python.org)\n[![tests](https://github.com/MIC-DKFZ/napari-sam/workflows/tests/badge.svg)](https://github.com/MIC-DKFZ/napari-sam/actions)\n[![codecov](https://codecov.io/gh/MIC-DKFZ/napari-sam/branch/main/graph/badge.svg)](https://codecov.io/gh/MIC-DKFZ/napari-sam)\n[![napari hub](https://img.shields.io/endpoint?url=https://api.napari-hub.org/shields/napari-sam)](https://napari-hub.org/plugins/napari-sam)\n\nSegment anything with our **Napari** integration of Meta AI's new **Segment Anything Model (SAM)**!\n\nSAM 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.\n\nWe have already **extended** SAM's click-based foreground separation to full **click-based semantic segmentation and instance segmentation**!\n\nAt last, our SAM integration supports both **2D and 3D images**!\n\n----------------------------------\n\nEverything mode | Click-based semantic segmentation mode | Click-based instance segmentation mode\n:-------------------------:|:-------------------------:|:-------------------------:\n![](https://github.com/MIC-DKFZ/napari-sam/raw/main/cats_everything.png) | ![](https://github.com/MIC-DKFZ/napari-sam/raw/main/cats_semantic.png) | ![](https://github.com/MIC-DKFZ/napari-sam/raw/main/cats_instance.png)\n\n\n----------------------------------\n

SAM in Napari demo

\n
\n\nhttps://user-images.githubusercontent.com/3471895/236152620-0de983db-954b-4480-97b9-901ee82f8edd.mp4\n\n
\n\n----------------------------------\n\n## Installation\n\nThe 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.\n\nInstall Napari via [pip]:\n \n pip install napari[all]\n\nYou can install `napari-sam` via [pip]:\n\n pip install git+https://github.com/facebookresearch/segment-anything.git\n pip install napari-sam\n\n\n\nTo install latest development version :\n\n pip install git+https://github.com/MIC-DKFZ/napari-sam.git\n\n## Usage\n\nStart Napari from the console with:\n\n napari\n\nThen navigate to `Plugins -> Segment Anything (napari-sam)` and drag & drop an image into Napari. At last create, a labels layer that will be used for the SAM predictions, by clicking in the layer list on the third button.\n\nYou can then auto-download one of the available SAM models (this can take 1-2 minutes), activate one of the annotations & segmentation modes, and you are ready to go!\n\n\n## Contributing\n\nContributions are very welcome. Tests can be run with [tox], please ensure\nthe coverage at least stays the same before you submit a pull request.\n\n## License\n\nDistributed under the terms of the [Apache Software License 2.0] license,\n\"napari-sam\" is free and open source software\n\n## Issues\n\nIf you encounter any problems, please [file an issue] along with a detailed description.\n\n[napari]: https://github.com/napari/napari\n[Cookiecutter]: https://github.com/audreyr/cookiecutter\n[@napari]: https://github.com/napari\n[MIT]: http://opensource.org/licenses/MIT\n[BSD-3]: http://opensource.org/licenses/BSD-3-Clause\n[GNU GPL v3.0]: http://www.gnu.org/licenses/gpl-3.0.txt\n[GNU LGPL v3.0]: http://www.gnu.org/licenses/lgpl-3.0.txt\n[Apache Software License 2.0]: http://www.apache.org/licenses/LICENSE-2.0\n[Mozilla Public License 2.0]: https://www.mozilla.org/media/MPL/2.0/index.txt\n[cookiecutter-napari-plugin]: https://github.com/napari/cookiecutter-napari-plugin\n\n[file an issue]: https://github.com/MIC-DKFZ/napari-sam/issues\n\n[napari]: https://github.com/napari/napari\n[tox]: https://tox.readthedocs.io/en/latest/\n[pip]: https://pypi.org/project/pip/\n[PyPI]: https://pypi.org/\n\n# Acknowledgements\n\n\n\n\nnapari-sam is developed and maintained by the Applied Computer Vision Lab (ACVL) of [Helmholtz Imaging](http://helmholtz-imaging.de) \nand the [Division of Medical Image Computing](https://www.dkfz.de/en/mic/index.php) at the \n[German Cancer Research Center (DKFZ)](https://www.dkfz.de/en/index.html).\n","description_content_type":"text/markdown","keywords":null,"home_page":"https://github.com/MIC-DKFZ/napari-sam","download_url":null,"author":"Karol Gotkowski","author_email":"karol.gotkowski@dkfz.de","maintainer":null,"maintainer_email":null,"license":"Apache-2.0","classifier":["Development Status :: 2 - Pre-Alpha","Framework :: napari","Intended Audience :: Developers","License :: OSI Approved :: Apache Software License","Operating System :: OS Independent","Programming Language :: Python","Programming Language :: Python :: 3","Programming Language :: Python :: 3 :: Only","Programming Language :: Python :: 3.8","Programming Language :: Python :: 3.9","Programming Language :: Python :: 3.10","Topic :: Scientific/Engineering :: Image Processing"],"requires_dist":["numpy","magicgui","qtpy","napari","vispy","tqdm","napari-nifti","superqt","tox ; extra == 'testing'","pytest ; extra == 'testing'","pytest-cov ; extra == 'testing'","pytest-qt ; extra == 'testing'","napari ; extra == 'testing'","pyqt5 ; extra == 'testing'"],"requires_python":">=3.8","requires_external":null,"project_url":["Bug Tracker, https://github.com/MIC-DKFZ/napari-sam/issues","Documentation, https://github.com/MIC-DKFZ/napari-sam#README.md","Source Code, https://github.com/MIC-DKFZ/napari-sam","User Support, https://github.com/MIC-DKFZ/napari-sam/issues"],"provides_extra":["testing"],"provides_dist":null,"obsoletes_dist":null},"npe1_shim":false}