BICLab / Attention-SNN

Offical implementation of "Attention Spiking Neural Networks" (IEEE T-PAMI2023)
https://ieeexplore.ieee.org/abstract/document/10032591
MIT License
53 stars 7 forks source link

AttributeError: 'DVSGestureDataset' object has no attribute 'files_train' #2

Open Helloworld-Le opened 8 months ago

Helloworld-Le commented 8 months ago

Traceback (most recent call last): File "/content/Attention-SNN/MA_SNN/DVSGestures/Att_SNN_CNN.py", line 45, in main() File "/content/Attention-SNN/MA_SNN/DVSGestures/Att_SNN_CNN.py", line 41, in main Att_SNN.main() File "/content/Attention-SNN/MA_SNN/DVSGestures/CNN/Att_SNN.py", line 32, in main create_data(config=config) File "/content/Attention-SNN/MA_SNN/DVSGestures/DVS_Gesture_utils/dataset.py", line 8, in create_data config.train_dataset = create_datasets( File "/content/Attention-SNN/MA_SNN/DVSGestures/DVS_gesture_data_process/DVS_Gesture_dataloders.py", line 246, in create_datasets train_d = DVSGestureDataset(root, File "/content/Attention-SNN/MA_SNN/DVSGestures/DVS_gesture_data_process/DVS_Gesture_dataloders.py", line 57, in init self.n = len(self.files_train) AttributeError: 'DVSGestureDataset' object has no attribute 'files_train'

yangynan commented 7 months ago

请问你解决了吗,我也是这个问题

BICLab commented 7 months ago

This may be because the program did not find the dataset at the given path, i.e., os.walk(root_train) in the following code returned an empty list.

roottrain = os.path.join(self.root, 'train') for , _, self.files_train in os.walk(root_train): pass

Mouseminar commented 5 months ago

我也遇到这个问题了,原来是我没有运行/MA_SNN/DVSGestures/data/DVS_Gesture.py这个代码,导致数据集没有划分