fangwei123456 / spikingjelly

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

type object 'CIFAR10DVS' has no attribute 'downloadable' #69

Closed zhangxiann closed 3 years ago

zhangxiann commented 3 years ago

When I execute

from spikingjelly.datasets.cifar10_dvs import CIFAR10DVS
from spikingjelly.datasets.dvs128_gesture import DVS128Gesture

print('CIFAR10-DVS downloadable', CIFAR10DVS.downloadable())
print('resource, url, md5/n', CIFAR10DVS.resource_url_md5())

print('DVS128Gesture downloadable', DVS128Gesture.downloadable())
print('resource, url, md5/n', DVS128Gesture.resource_url_md5())

throws the following error:

E:\SoftWare\Anaconda3\lib\site-packages\torchaudio\extension\extension.py:14: UserWarning: torchaudio C++ extension is not available.
  warnings.warn('torchaudio C++ extension is not available.')
E:\SoftWare\Anaconda3\lib\site-packages\torchaudio\backend\utils.py:88: UserWarning: No audio backend is available.
  warnings.warn('No audio backend is available.')
Traceback (most recent call last):
  File "D:/Project/rpg_e2vid/test.py", line 4, in <module>
    print('CIFAR10-DVS downloadable', CIFAR10DVS.downloadable())
AttributeError: type object 'CIFAR10DVS' has no attribute 'downloadable'
fangwei123456 commented 3 years ago

Do you use an old version of SpikingJelly? If so, here is the old version of tutorial about neuromorphic datasets processing:

https://spikingjelly.readthedocs.io/zh_CN/0.0.0.0.4/clock_driven_en/13_neuromorphic_datasets.html

If you want to use the new version, you can use the following commands:

cd spikingjelly
git checkout master
git pull
python setup.py install