fangwei123456 / spikingjelly

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

stdp_trace.py TypeError #327

Open Redamancy-520 opened 1 year ago

Redamancy-520 commented 1 year ago

您好,在最近我尝试运行了stdp_trace.py文件,但是出现报错: Traceback (most recent call last): File "spikingjelly\spikingjelly\activation_based\examples\stdp_trace.py", line 30, in learner = learning.STDPLearner(step_mode='s', synapse=net[0], sn=net[1], TypeError: STDPLearner.init() got an unexpected keyword argument 'w_min' 我看到手册中的源码并没有加上w_min,w_max这一参数。如果这个是新添加的参数想请问这个报错如何修改呢,谢谢!

fangwei123456 commented 1 year ago

之前更新模块的时候忘了更新样例代码,稍后更新

顺便可以参考这个issue,介绍了为何这样设计 https://github.com/fangwei123456/spikingjelly/issues/326

fangwei123456 commented 1 year ago

最新的提交修复了这个bug,尝试git pull更新代码

fangwei123456 commented 1 year ago

如果想用带参数的权重函数,参考 https://github.com/fangwei123456/spikingjelly/issues/326#issuecomment-1359316416

Redamancy-520 commented 1 year ago

谢谢您,我想问一下使用git pull出现链接超时的话如何处理呢,使用vpn也不行

fangwei123456 commented 1 year ago

从openi重新git clone,openi在国内非常稳定