{
  "name": "napari-segment-anything",
  "display_name": "Segment Anything",
  "visibility": "public",
  "icon": "",
  "categories": [],
  "schema_version": "0.2.1",
  "on_activate": null,
  "on_deactivate": null,
  "contributions": {
    "commands": [
      {
        "id": "napari-segment-anything.samwidget",
        "title": "Segment Anything",
        "python_name": "napari_segment_anything._widget:SAMWidget",
        "short_title": null,
        "category": null,
        "icon": null,
        "enablement": null
      }
    ],
    "readers": null,
    "writers": null,
    "widgets": [
      {
        "command": "napari-segment-anything.samwidget",
        "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-segment-anything",
    "version": "0.1.4",
    "dynamic": null,
    "platform": null,
    "supported_platform": null,
    "summary": "Napari plugin of Segment Anything Model (SAM)",
    "description": "# napari-segment-anything\n\n[![License Apache Software License 2.0](https://img.shields.io/pypi/l/napari-segment-anything.svg?color=green)](https://github.com/jookuma/napari-segment-anything/raw/main/LICENSE)\n[![PyPI](https://img.shields.io/pypi/v/napari-segment-anything.svg?color=green)](https://pypi.org/project/napari-segment-anything)\n[![Python Version](https://img.shields.io/pypi/pyversions/napari-segment-anything.svg?color=green)](https://python.org)\n[![tests](https://github.com/jookuma/napari-segment-anything/workflows/tests/badge.svg)](https://github.com/jookuma/napari-segment-anything/actions)\n[![codecov](https://codecov.io/gh/jookuma/napari-segment-anything/branch/main/graph/badge.svg)](https://codecov.io/gh/jookuma/napari-segment-anything)\n[![napari hub](https://img.shields.io/endpoint?url=https://api.napari-hub.org/shields/napari-segment-anything)](https://napari-hub.org/plugins/napari-segment-anything)\n\nNapari plugin of [Segment Anything Model (SAM)](https://github.com/facebookresearch/segment-anything)\n\nDownload the network weights [here](https://github.com/facebookresearch/segment-anything#model-checkpoints)\n\n\nhttps://user-images.githubusercontent.com/21022743/230456433-2fa7bc40-a735-4d73-8d87-ecf776bbe2be.mp4\n\n\n----------------------------------\n\nThis [napari] plugin was generated with [Cookiecutter] using [@napari]'s [cookiecutter-napari-plugin] template.\n\n## Installation\n\nYou can install `napari-segment-anything` via [pip]:\n\n```bash\npip install napari-segment-anything\n```\n\nWe recommend installing the latest development version because this package is being developed:\n\n```bash\npip install git+https://github.com/jookuma/napari-segment-anything.git\n```\n\n**IMPORTANT**: `napari` won't work if you don't have `pyqt5` or `pyside2` installed.\n\n## Instructions\n\n### Opening napari-segment-anything\n\nThis software is napari plugin, so once you have napari installed you can open it using the command line:\n\n```bash\nnapari <your image path> -w napari-segment-anything 'Segment Anything'\n```\n\nI noticed that sometimes napari fails to load the plugin widget from the command line, go to step 2 from below to load it.\n\nIf you prefer the user interface you need to:\n\n1) Drag and drop your image into napari to load it;\n2) Go to the \"Plugins\" file menu in the upper right corner and select the \"Segment Anything\" plugin.\n3) Follow the instructions below for usage.\n\n**IMPORTANT**: If you get an error make sure you have `pyqt5` or `pyside2` installed.\n\n### Usage\n\n- Interactions are done on the \"SAM points\" and \"SAM box\" layers using the existing functionalities of napari. Only rectangle shapes trigger the network prediction.\n- For points supervision, left clicks are positive cues (object) and right clicks are negative (background).\n- Press the \"Confirm Annot.\" button (or the \"C\" key) to propagate the current segmentation mask to the label image.\n- Use the napari labels layer features to delete or edit already confirmed labels.\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-segment-anything\" is a 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/jookuma/napari-segment-anything/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": "https://github.com/jookuma/napari-segment-anything",
    "download_url": null,
    "author": "Jordao Bragantini",
    "author_email": "jordao.bragantini@czbiohub.org",
    "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",
      "torch",
      "torchvision",
      "segment-anything",
      "qtpy",
      "magicgui",
      "napari",
      "tox ; extra == 'testing'",
      "pytest ; extra == 'testing'",
      "pytest-cov ; extra == 'testing'",
      "pytest-qt ; extra == 'testing'",
      "pyqt5 ; extra == 'testing'"
    ],
    "requires_python": ">=3.8",
    "requires_external": null,
    "project_url": [
      "Bug Tracker, https://github.com/jookuma/napari-segment-anything/issues",
      "Documentation, https://github.com/jookuma/napari-segment-anything#README.md",
      "Source Code, https://github.com/jookuma/napari-segment-anything",
      "User Support, https://github.com/jookuma/napari-segment-anything/issues"
    ],
    "provides_extra": [
      "testing"
    ],
    "provides_dist": null,
    "obsoletes_dist": null
  },
  "npe1_shim": false
}