This repository contains code from our paper titled "Efficient and Accurate Conversion of Spiking Neural Network with Burst Spikes" published in IJCAI, 2022.
CIFAR100_VGG16.py: train an ANNconverted_CIFAR100_vgg.py: converted the trained ANN. Including getting the max activation values, fusing theConvandBNlayers, doing weight normalization.utils.py: some tricks for data augmentation.
- numpy
- tqdm
- copy
- pytorch >= 1.10.0
- torchvision
Firstly, train an ANN
python CIFAR100_VGG16.pyThen, modify the model path in converted_CIFAR100_vgg.py and run
python converted_CIFAR100_vgg.pyIf you use this code in your work, please cite the following paper, please cite it using
@article{li2022efficient,
title={Efficient and Accurate Conversion of Spiking Neural Network with Burst Spikes},
author={Yang Li and Yi Zeng},
journal={arXiv preprint arXiv:2204.13271},
year={2022},
}
