fangwei123456 / spikingjelly

SpikingJelly is an open-source deep learning framework for Spiking Neural Network (SNN) based on PyTorch.
https://spikingjelly.readthedocs.io
Other
1.34k stars 239 forks source link

Question about STDP learning #320

Open aheiluxi opened 1 year ago

aheiluxi commented 1 year ago

How to apply MSTDPLearner in MNIST trainning, for example, https://github.com/fangwei123456/spikingjelly/blob/master/spikingjelly/activation_based/examples/lif_fc_mnist.py, a FC SNN?

fangwei123456 commented 1 year ago

Hi, you can refer to this tutorial about how to combine STDP with BP:

https://spikingjelly.readthedocs.io/zh_CN/latest/activation_based_en/stdp.html#combine-stdp-learning-with-gradient-descent