lyh983012 / ES-imagenet-master

code for generating data set ES-ImageNet with corresponding training code
http://lyh983012.github.io/
29 stars 2 forks source link
dataset dataset-generation deep-learning python pytorch snn

es-imagenet-master

Latest News: Now you can use SpikingJelly to process ES-ImageNet!

API reference: ES-imageNet API

checkpoints download: google driver

image

code for generating data set ES-ImageNet with corresponding training code

dataset generator

dataset usage

note: To select LIF mode, change the config files under /LIAFnet : self.actFun= torch.nn.LeakyReLU(0.2, inplace=False) #nexttest:selu to self.actFun= LIAF.LIFactFun.apply

baseline / Benchmark

Network layer Type Test Acc/% # of Para FP32+/GFLOPs FP32x/GFLOPs
ResNet18 2D-CNN 41.030 11.68M 1.575 1.770
ResNet18 3D-CNN 38.050 28.56M 12.082 12.493
ResNet18 LIF 39.894 11.69M 12.668 0.269
ResNet18 LIAF 42.544 11.69M 12.668 14.159
ResNet34 2D-CNN 42.736 21.79M 3.211 3.611
ResNet34 3D-CNN 39.410 48.22M 20.671 21.411
ResNet34 LIF 43.424 21.80M 25.783 0.288
ResNet18+imagenet-pretrain (a) LIF 43.74 11.69M 12.668 0.269
ConvECLIF2D-A ECLIF 44.25 17.99M - -
Surrogate Module LIF 44.76 - - -
ResNet34 LIAF 47.466 21.80M 25.783 28.901
ResNet18+self-pretrain LIAF 50.54 11.69M 12.668 14.159
ResNet18+imagenet-pretrain (b) LIAF 52.25 11.69M 12.668 14.159
ResNet34+imagenet-pretrain (c) LIAF 51.83 21.80M 25.783 28.901

Note: model (a), (b) and (c) are stored in ./pretrained_model Some problems related to model loading can be referred to the issue. If you want to test 2D-CNN with reconstructed gray set, you can use this notebook

Download

Citation

If you find this code useful in your research, please consider citing and here is an example BibTeX entry:

@ARTICLE{ES_ImageNet2021,
AUTHOR={Lin, Yihan and Ding, Wei and Qiang, Shaohua and Deng, Lei and Li, Guoqi},   
TITLE={ES-ImageNet: A Million Event-Stream Classification Dataset for Spiking Neural Networks},      
JOURNAL={Frontiers in Neuroscience},      
VOLUME={15},      
PAGES={1546},     
YEAR={2021},          
URL={https://www.frontiersin.org/article/10.3389/fnins.2021.726582},        
DOI={10.3389/fnins.2021.726582},      
ISSN={1662-453X},   
}