Closed sauravtii closed 2 years ago
I just fix this bug. Try to use git pull
to update SJ.
It worked and I got the following output. Is the SNN (spiking neural network) accuracy 94.1 % ? Because it didn't mention anything in front of "SNN accuracy".
Downloading SJ-cifar10-resnet18_model-sample.pth
Files already downloaded and verified
Files already downloaded and verified
ANN accuracy:
100%|██████████| 200/200 [00:02<00:00, 96.58it/s]
Validating Accuracy: 0.946
Converting...
100%|██████████| 500/500 [00:09<00:00, 52.04it/s]
SNN accuracy:
100%|██████████| 200/200 [05:27<00:00, 1.64s/it]
Validating Accuracy: 0.941
Is the SNN (spiking neural network) accuracy 94.1 % ?
Yes.
SNN accuracy:
100%|██████████| 200/200 [05:27<00:00, 1.64s/it]
Validating Accuracy: 0.941
Okay, thank you : ) I also wanted to try out other ResNet architectures like Resnet34, resnet50 and resnet 101. Could you please tell me how I can do that ? Do I need to just modify this script (https://github.com/fangwei123456/spikingjelly/blob/master/spikingjelly/activation_based/ann2snn/examples/resnet18_cifar10.py) from resnet18 to the required resnet architecture ?
Yes, you can modify resnet18_cifar10.py
to get other networks.
Okay, thanks!
I am trying out this python script (https://github.com/fangwei123456/spikingjelly/blob/master/spikingjelly/activation_based/ann2snn/examples/resnet18_cifar10.py). After calling the main function I am getting the follwoing error.