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.16.tar.gz (189.9 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.16-py3-none-any.whl (250.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: neuro_sam-0.1.16.tar.gz
  • Upload date:
  • Size: 189.9 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.16.tar.gz
Algorithm Hash digest
SHA256 3522342569f0bdabb6f206163477a19a768ffd5f3d5dbe685a199b1a45df1f8b
MD5 8727221df0a5d2c67a01ef6bce1f14ee
BLAKE2b-256 819cac8ade65e0ad1187a1c323b02a19872965dbeb2b7a1f25b1432b97bbf1d3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neuro_sam-0.1.16-py3-none-any.whl
  • Upload date:
  • Size: 250.5 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.16-py3-none-any.whl
Algorithm Hash digest
SHA256 5e9251cb15ac2e61bf75a8552d9d992ae1ac15e0c2f5eb3dc31e4b86ca0252d7
MD5 1d82e3d9d18e672c6f6d3e6bbaff260c
BLAKE2b-256 b4c60b7a9b36cc9f5b349e560293e5d36270b2ec5f203a5b42fbe54cdf8ed7f9

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