genn-team / ml_genn

A library for deep learning with Spiking Neural Networks (SNN).
https://ml-genn.readthedocs.io
GNU Lesser General Public License v2.1
24 stars 7 forks source link

SHD augmentation example and bug fix #78

Closed neworderofjamie closed 1 year ago

neworderofjamie commented 1 year ago

The whole tonic disk cache thing really didn't seem to work well for us so I've created an example of how you might cache tonic a dataset in memory (tonic datasets are stored about as efficiently as possible) and apply augmentations every epoch. @tnowotny if you want to tweak the augmentation I've implemented here to better match the best augmentations you've found, feel free! With models that train as quickly as this one does, augmentation does add quite a large overhead but I don't there's much way around this while everything's done in Python.

Also, I found a subtle bug that meant training epoch-by-epoch learnt very poorly - optimiser step was being reset to zero each epoch meaning that Adam made too large steps