{"name":"napari-samv2","display_name":"napari-SAMV2","visibility":"public","icon":"","categories":["Annotation","Segmentation"],"schema_version":"0.2.1","on_activate":null,"on_deactivate":null,"contributions":{"commands":[{"id":"napari-samv2.make_qwidget","title":"SAM V2 plugin","python_name":"napari_samv2:SAMV2_min","short_title":null,"category":null,"icon":null,"enablement":null}],"readers":null,"writers":null,"widgets":[{"command":"napari-samv2.make_qwidget","display_name":"SAMV2","autogenerate":false}],"sample_data":null,"themes":null,"menus":{},"submenus":null,"keybindings":null,"configuration":[]},"package_metadata":{"metadata_version":"2.4","name":"napari-samv2","version":"0.1.3","dynamic":["license-file"],"platform":null,"supported_platform":null,"summary":"Napari plugin for segment anything version 2 model from meta. Plugin primarily useful for segmenting 3d volumetric data or 3d time series data. ","description":"# napari-SAMV2\n\nNapari plugin to use segment anything version 2.1 models from Meta.\n\nPlugin made for segmenting 3d volumetric data or 3d time series data.\n\n----------------------------------\n\n## Installation\n\nThe plugin requires the following pre-requisite to be installed :\n\n1. Python and pytorch versions\n\npython>=3.10,torch>=2.5.1 and torchvision>=0.20.1 required\n\nTo install pytorch with your respective OS please visit - https://pytorch.org/get-started/locally/\n\n2. SAM v2 installation from meta\n\nPlease refer https://github.com/facebookresearch/sam2\n\n3. Install napari\n\npython -m pip install \"napari[all]\"\n\nFollowing is a sample conda environment installation with the above pre-req \n\n    conda create -n samv2_env python=3.10\n    conda activate samv2_env\n    pip3 install torch torchvision\n\n    git clone https://github.com/facebookresearch/sam2.git && cd sam2\n    pip install -e .\n\n    python -m pip install \"napari[all]\"\n\n    pip install napari-SAMV2\n\n\n## Usage\n\nMiddle mouse click - positive point or keyboard shortcut \"a\"\n\nCtrl + Middle mouse click - negative point or keyboard shortcut \"n\"\n\nTime Series Segmentation :\n\n![samv2_time_series_demo](https://github.com/user-attachments/assets/078ca2bb-3016-4257-ac7c-c3cde8f9d125)\n\n\n\nVolume Segmentation :\n\n![samv2_volume_segmentation](https://github.com/user-attachments/assets/af05fcc4-a60d-44e8-ae05-70764d96e828)\n\n\n\nReference :\n\nExample Data in the demo videos are from,\n\nCell tracking challenge - https://celltrackingchallenge.net/ \n\nand\n\nFlyEM project - https://www.janelia.org/project-team/flyem/hemibrain\n\n\n## License\n\nDistributed under the terms of the [BSD-3] license,\n\"napari-SAMV2\" is free and open source software\n\n\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/Krishvraman/napari-SAMV2/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","description_content_type":"text/markdown","keywords":null,"home_page":null,"download_url":null,"author":"Krishnan Venkataraman","author_email":"krishvraman95@gmail.com","maintainer":null,"maintainer_email":null,"license":"Copyright (c) 2024, Krishnan Venkataraman\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright notice, this\n  list of conditions and the following disclaimer.\n\n* Redistributions in binary form must reproduce the above copyright notice,\n  this list of conditions and the following disclaimer in the documentation\n  and/or other materials provided with the distribution.\n\n* Neither the name of copyright holder nor the names of its\n  contributors may be used to endorse or promote products derived from\n  this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\nAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\nFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\nDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\nSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\nCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\nOR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n","classifier":["Development Status :: 2 - Pre-Alpha","Framework :: napari","Intended Audience :: Developers","License :: OSI Approved :: BSD License","Operating System :: OS Independent","Programming Language :: Python","Programming Language :: Python :: 3","Programming Language :: Python :: 3 :: Only","Programming Language :: Python :: 3.9","Programming Language :: Python :: 3.10","Programming Language :: Python :: 3.11","Programming Language :: Python :: 3.12","Topic :: Scientific/Engineering :: Image Processing"],"requires_dist":["numpy","magicgui","qtpy","scikit-image","tox; extra == \"testing\"","pytest; extra == \"testing\"","pytest-cov; extra == \"testing\"","pytest-qt; extra == \"testing\"","napari; extra == \"testing\"","pyqt5; extra == \"testing\"","numpy; extra == \"testing\""],"requires_python":">=3.9","requires_external":null,"project_url":["Bug Tracker, https://github.com/Krishvraman/napari-SAMV2/issues","Documentation, https://github.com/Krishvraman/napari-SAMV2#README.md","Source Code, https://github.com/Krishvraman/napari-SAMV2","User Support, https://github.com/Krishvraman/napari-SAMV2/issues"],"provides_extra":["testing"],"provides_dist":null,"obsoletes_dist":null},"npe1_shim":false}