{"id":29227296,"url":"https://github.com/royerlab/napari-segment-anything","last_synced_at":"2025-07-03T09:10:23.749Z","repository":{"id":151393176,"uuid":"624161149","full_name":"royerlab/napari-segment-anything","owner":"royerlab","description":"Segment Anything Model (SAM) native Qt UI","archived":false,"fork":false,"pushed_at":"2024-08-29T13:36:31.000Z","size":41,"stargazers_count":196,"open_issues_count":17,"forks_count":18,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-03-21T09:36:00.532Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/royerlab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-04-05T21:54:18.000Z","updated_at":"2025-03-09T10:43:43.000Z","dependencies_parsed_at":"2023-11-30T03:20:57.657Z","dependency_job_id":"450e9028-4755-4779-a415-bbc2b7026021","html_url":"https://github.com/royerlab/napari-segment-anything","commit_stats":null,"previous_names":["jookuma/napari-segment-anything"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/royerlab/napari-segment-anything","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/royerlab%2Fnapari-segment-anything","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/royerlab%2Fnapari-segment-anything/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/royerlab%2Fnapari-segment-anything/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/royerlab%2Fnapari-segment-anything/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/royerlab","download_url":"https://codeload.github.com/royerlab/napari-segment-anything/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/royerlab%2Fnapari-segment-anything/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263296638,"owners_count":23444499,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-07-03T09:10:23.017Z","updated_at":"2025-07-03T09:10:23.736Z","avatar_url":"https://github.com/royerlab.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 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 \u003cyour image path\u003e -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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froyerlab%2Fnapari-segment-anything","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froyerlab%2Fnapari-segment-anything","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froyerlab%2Fnapari-segment-anything/lists"}