Skip to main content

Installation

System Requirements

RequirementMinimumRecommended
Python3.93.11+
PyTorch2.02.2+
CUDA-- (CPU works)11.8+ with a GPU
RAM8 GB16 GB+
OSLinux, macOSLinux with NVIDIA GPU

Install from Source

git clone https://github.com/type1compute/SPIKESEG--Spiking-Neural-Network-for-Event-Based-Space-Domain-Awareness.git
cd SPIKESEG--Spiking-Neural-Network-for-Event-Based-Space-Domain-Awareness
pip install -e .

This installs SpikeSEG in editable mode together with all core dependencies.

Core Dependencies

Installed automatically by pip install -e .:

PackageVersionPurpose
torch≥2.0Tensor operations, spiking layers
numpy≥1.24Array manipulation
scipy≥1.10Signal processing, sparse ops
h5py≥3.8HDF5 dataset I/O
opencv-python≥4.7Image processing utilities
matplotlib≥3.7Visualization and plotting
pyyaml≥6.0YAML configuration parsing
tqdm≥4.65Progress bars
scikit-learn≥1.2Clustering, metrics

Optional Extras

# Development tools (pytest, black, ruff, mypy)
pip install -e ".[dev]"

# Visualization extras (TensorBoard, Plotly, Seaborn)
pip install -e ".[vis]"

# Everything
pip install -e ".[all]"

Verify the Installation

python -c "import spikeseg; print(spikeseg.__version__)"
# Expected output: 0.1.0

To confirm PyTorch sees your GPU:

python -c "import torch; print(torch.cuda.is_available(), torch.cuda.get_device_name(0) if torch.cuda.is_available() else 'CPU')"

Running the Tests

pytest tests/ -v

Skip GPU-only tests on a CPU machine:

pytest tests/ -v -m "not cuda"