Attention-SNN icon indicating copy to clipboard operation
Attention-SNN copied to clipboard

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

Open Helloworld-Le opened this issue 2 years ago • 3 comments

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'

Helloworld-Le avatar Dec 21 '23 07:12 Helloworld-Le

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

yangynan avatar Jan 17 '24 05:01 yangynan

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.

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

BICLab avatar Feb 05 '24 08:02 BICLab

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

Mouseminar avatar Apr 11 '24 04:04 Mouseminar