Important: To run the code in this repository you need access to a neuromorphic BrainScaleS-2 system and the corresponding software stack.
You can explore the examples provided here in a software-only mode by specifying the --software-only
option.
We have listed tested dependencies in requirements.txt
.
To allow Python to import the custom dependencies you have to set up the PYTHONPATH by executing:
export PYTHONPATH=$PWD/src/py:$PYTHONPATH
The two example scripts in this repository provide sensible defaults. To start a training run simulated in software:
cd experiments/mnist
python mnist.py --software-only --output my-results.h5
For more command line arguments, please refer to the experiment scripts.
To load a previously trained network and perform inference with it:
cd experiments/mnist
python mnist.py --software-only --load-weights my-results.h5 --epochs 0