MCPcopy Index your code
hub / github.com/Intelligent-Computing-Lab-Panda/NDA_SNN

github.com/Intelligent-Computing-Lab-Panda/NDA_SNN @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
44 symbols 104 edges 6 files 6 documented · 14%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

NDA_SNN

Pytorch implementation of Neuromorphic Data Augmentation for SNN, Accepted to ECCV 2022. Paper link: Neuromorphic Data Augmentation for Training Spiking Neural Networks.

Dataset Preparation

For CIFAR10-DVS dataset, please refer the Google Drive link below:

For N-Caltech 101, we suggest using SpikingJelly package to pre-process the data. Specifically, initialize the NCaltech101 in SpikingJelly as:

from spikingjelly.datasets.n_caltech101 import NCaltech101
dataset = NCaltech101(root='data', data_type='frame', frames_number=10, split_by='time')

If you can initialize this class, then you will be able to use our provided dataloader in functions/data_loaders.py

Run Experiments

To run a VGG-11 without NDA on CIFAR10-DVS:

python main.py --dset dc10 --amp

Here, --amp use FP16 training which can accelerate the training stage. Use --dset nc101 to change the dataset to NCaltech 101.

To enable NDA training:

python main.py --dset dc10 --amp --nda

Reference

If you find our work is interesting, please consider cite us:

@article{li2022neuromorphic,
  title={Neuromorphic Data Augmentation for Training Spiking Neural Networks},
  author={Li, Yuhang and Kim, Youngeun and Park, Hyoungseob and Geller, Tamar and Panda, Priyadarshini},
  journal={arXiv preprint arXiv:2203.06145},
  year={2022}
}

Core symbols most depended-on inside this repo

backward
called by 3
models/layers.py
train
called by 1
main.py
test
called by 1
main.py
seed_all
called by 1
functions/functions.py
build_ncaltech
called by 1
functions/data_loaders.py
build_dvscifar
called by 1
functions/data_loaders.py
rand_bbox
called by 1
functions/data_loaders.py
fire_function
called by 1
models/layers.py

Shape

Method 20
Function 15
Class 9

Languages

Python100%

Modules by API surface

models/layers.py17 symbols
functions/data_loaders.py16 symbols
models/VGG_models.py7 symbols
main.py2 symbols
functions/functions.py2 symbols

For agents

$ claude mcp add NDA_SNN \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact