Skip to main content

Neuro-SAM: Foundation Model for Dendrite and Dendritic Spine Segmentation

Project description

Neuro-SAM

Foundation Model from Dendrite and Dendritic Spine Segmentation

Neuro-SAM enables you to:

  • Trace individual dendrite in a 3D stack
  • Segment traced dendrites using fine-tuned SAMv2
  • Tubular View Analysis of the dendrites
  • Segment Dendritic Spines using our custom model

Neuro-SAM works across different imaging modalities including two-photon, confocal and STED microscopy.

🚀 Installation

Neuro-SAM requires Python 3.10+ installed on your machine. It is recommended to use Conda/Miniconda for environment management. You can also use CUDA for GPU based accelerations. Our model are also optimised to use MPS on Apple Silicon (M series chips).

To install Neuro-SAM:

pip install neuro-sam

Downloading models and sample dataset

neuro-sam-download

📊 Usage

# base usage with benchmark dataset
neuro-sam

# using with your own dataset
neuro-sam --image-path /path/to/your/image.tif

🔬 Workflow

1. Configure Voxel Spacing

Set accurate X, Y, Z voxel spacing in the "Path Tracing" tab for proper scaling:

2. Trace Dendritic Paths

  • Click waypoints along dendrite structures
  • Algorithm automatically finds optimal brightest paths

3. Segment Dendrites

  • Load pre-trained SAMv2 dendrite model
  • Segment individual path with SAMv2

4. Segment Spines

  • Segment Dendritic Spines with our fine tuned model

📬 Contact

Made with ♥️ at Anki Lab 🧠✨

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

neuro_sam-0.1.17.tar.gz (190.2 kB view details)

Uploaded Source

Built Distribution

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

neuro_sam-0.1.17-py3-none-any.whl (250.8 kB view details)

Uploaded Python 3

File details

Details for the file neuro_sam-0.1.17.tar.gz.

File metadata

  • Download URL: neuro_sam-0.1.17.tar.gz
  • Upload date:
  • Size: 190.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for neuro_sam-0.1.17.tar.gz
Algorithm Hash digest
SHA256 fce6481ee1f7378b702951d63d1b95dcb00f01f097f76fe86547c055feb078b3
MD5 2a6ca8fc18451926dffe3c29c498486e
BLAKE2b-256 cfb52b9471bf0969e95e41f8f4d3b96d11b66d3e5bf7ac80daf222ac5423b67b

See more details on using hashes here.

File details

Details for the file neuro_sam-0.1.17-py3-none-any.whl.

File metadata

  • Download URL: neuro_sam-0.1.17-py3-none-any.whl
  • Upload date:
  • Size: 250.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for neuro_sam-0.1.17-py3-none-any.whl
Algorithm Hash digest
SHA256 14d2e68b4c4c698c06db05497c61468e117123f7e00bc77db64f1526410ef441
MD5 3075e360a9effe7ef43130aa7543a135
BLAKE2b-256 0e0faf7c6c1b9efacdaf766014bc9cfb4c3c5e9df9bc21029a5df34dedb1cbf1

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