Skip to main content

Napari plugin for segment anything version 2 model from meta. Plugin primarily useful for segmenting 3d volumetric data or 3d time series data.

Project description

napari-SAMV2

Napari plugin to use segment anything version 2 models from Meta.

Plugin primarily made for segmenting 3d volumetric data or 3d time series data.


Installation

You can install napari-SAMV2 via pip:

pip install napari-SAMV2

Pre-requisite of samv2 installation needed:

git clone https://github.com/facebookresearch/segment-anything-2.git
cd segment-anything-2
pip install -e .

The plugin and installation tested with python 3.10 in conda environment with pytorch-cuda=12.1

If you are installing samv2 in a separate environment, you can follow the below tested env,

conda create -n samv2_env python=3.10
conda activate samv2_env
conda install pytorch torchvision torchaudio pytorch-cuda=12.1 -c pytorch -c nvidia
python -m pip install "napari[all]"

git clone https://github.com/facebookresearch/segment-anything-2.git
cd segment-anything-2
pip install -e .

pip install napari-SAMV2    

To install latest development version :

pip install git+https://github.com/Krishvraman/napari-SAMV2.git

Usage

Middle mouse click - positive point

Ctrl + Middle mouse click - negative point

Example Data from :

Cell tracking challenge - https://celltrackingchallenge.net/

FlyEM project - https://www.janelia.org/project-team/flyem/hemibrain

Time Series Segmentation :

https://github.com/user-attachments/assets/610ce965-bb97-453f-8fff-c5de5f14162c

Volume Segmentation :

https://github.com/user-attachments/assets/adb409be-c3ba-4f03-ac0a-ceb2da0c0c83

License

Distributed under the terms of the BSD-3 license, "napari-SAMV2" is free and open source software

Issues

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

napari_samv2-0.0.2.tar.gz (15.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

napari_SAMV2-0.0.2-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

Details for the file napari_samv2-0.0.2.tar.gz.

File metadata

  • Download URL: napari_samv2-0.0.2.tar.gz
  • Upload date:
  • Size: 15.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for napari_samv2-0.0.2.tar.gz
Algorithm Hash digest
SHA256 190f8b4c52400bf7a236bf545ce2c40dea1cd72eb4bacf57f9f802b92f265d1c
MD5 04db46c993e33086f758026e670e65df
BLAKE2b-256 a4a5baea8fe3274dae6c7a9b373f8d1888fddc4428873a3d9c4eeb2252808dc4

See more details on using hashes here.

File details

Details for the file napari_SAMV2-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: napari_SAMV2-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 12.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for napari_SAMV2-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9c1a9ef9b1ebf4f3d3dbdd8c67f1821e982e5233c50fa2b3377d02fa2071c3bb
MD5 070f24ec81d509a8c52a906623851fbd
BLAKE2b-256 a7a6919c6815dde660f585b2c5dc09d2c353bf4eb4cd16f28453096fe35811d0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page