• Stars
    star
    189
  • Rank 203,479 (Top 5 %)
  • Language
    Python
  • License
    Apache License 2.0
  • Created over 1 year ago
  • Updated 11 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Segment Anything Model (SAM) native Qt UI

napari-segment-anything

License Apache Software License 2.0 PyPI Python Version tests codecov napari hub

Napari plugin of Segment Anything Model (SAM)

Download the network weights here

napari-segment-anything-small.mp4

This napari plugin was generated with Cookiecutter using @napari's cookiecutter-napari-plugin template.

Installation

You can install napari-segment-anything via pip:

pip install napari-segment-anything

We recommend installing the latest development version because this package is being developed:

pip install git+https://github.com/jookuma/napari-segment-anything.git

IMPORTANT: napari won't work if you don't have pyqt5 or pyside2 installed.

Instructions

Opening napari-segment-anything

This software is napari plugin, so once you have napari installed you can open it using the command line:

napari <your image path> -w napari-segment-anything 'Segment Anything'

I noticed that sometimes napari fails to load the plugin widget from the command line, go to step 2 from below to load it.

If you prefer the user interface you need to:

  1. Drag and drop your image into napari to load it;
  2. Go to the "Plugins" file menu in the upper right corner and select the "Segment Anything" plugin.
  3. Follow the instructions below for usage.

IMPORTANT: If you get an error make sure you have pyqt5 or pyside2 installed.

Usage

  • Interactions are done on the "SAM points" and "SAM box" layers using the existing functionalities of napari. Only rectangle shapes trigger the network prediction.
  • For points supervision, left clicks are positive cues (object) and right clicks are negative (background).
  • Press the "Confirm Annot." button (or the "C" key) to propagate the current segmentation mask to the label image.
  • Use the napari labels layer features to delete or edit already confirmed labels.

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-segment-anything" is a free and open source software

Issues

If you encounter any problems, please file an issue along with a detailed description.

More Repositories

1

napari-chatgpt

A napari plugin to process and analyse images with chatGPT!
CSS
230
star
2

aydin

Aydin β€” User-friendly, Fast, Self-Supervised Image Denoising for All.
Python
144
star
3

ultrack

Cell tracking and segmentation software
Python
75
star
4

cytoself

Self-supervised models for encoding protein localization patterns from microscopy images
Python
73
star
5

dexp

Dataset EXploration & Processing
Python
29
star
6

ssi-code

Image Deconvolution via Noise-Tolerant Self-Supervised Inversion
Python
28
star
7

daxi

High-Resolution, Large Field-of-View, and Multi-ViewSingle Objective Light-Sheet Microscopy
Python
24
star
8

pipython

PIPython is a collection of Python modules to access a PI device and process GCS data.
Python
14
star
9

slurmkit

Simple SLURM python API
Python
6
star
10

in-silico-fate-mapping

Python
5
star
11

zebrahub-paper-umap-3d

Generate 3D UMAPs of zebrafish
Python
4
star
12

arbol

arbol - Arborescent Printouts in Python
Python
4
star
13

ZAF

ZAF(Zebrafish Automated Feeder): Software needed for automated fish feeding system of our fish facility
Python
4
star
14

napari-umap

Python
2
star
15

czpeedy

A tool for experimentally determining the best tensorstore spec for a given machine and dataset.
Python
2
star
16

ultrack-i2k2023

Ultrack https://github.com/royerlab/ultrack from Images to Knowledge - 2023 workshop
Jupyter Notebook
1
star
17

opensimview

New ClearControl + Dorado +.... combined repo
Java
1
star
18

zebrahub-protocols

1
star
19

dmp40j

Wrapper around Thorlabs DMP40 deformable mirror API
Java
1
star
20

dexpv2

Python
1
star
21

easyscopy

Fiji plugin for microscope control scripting
Java
1
star
22

aptj

APTJ - Java bindings for Thorlabs' APT library
Java
1
star
23

napari-aydin

Python
1
star
24

pysimbryo

Python bindings for Simbryo
Java
1
star
25

zebrahub-napari-animation

Zebrahub's napari-animation demo
Python
1
star