Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Helloworld-Le opened this issue Dec 21, 2023 · 3 comments

Comments

@Helloworld-Le
Copy link

Helloworld-Le commented Dec 21, 2023

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
Copy link

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

@BICLab
Copy link
Owner

BICLab commented Feb 5, 2024

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

@Mouseminar
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants