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

module 'dataset' has no attribute 'get_dataloaders' #2

Open
muyinjiangxue opened this issue Jun 5, 2020 · 7 comments
Open

module 'dataset' has no attribute 'get_dataloaders' #2

muyinjiangxue opened this issue Jun 5, 2020 · 7 comments

Comments

@muyinjiangxue
Copy link

dataloaders = dataset.get_dataloaders(opt)

The data loading method here is not seen in dataset.

@nanguoshun
Copy link

@bbrattoli dear Biagio, I am suffering the same issue. Would you please help to fix it?

Is it get_datasets() instead of get_dataloaders() @muyinjiangxue

Thanks a lot!

@KP1-cmd
Copy link

KP1-cmd commented Jun 9, 2020

hello @nanguoshun I am suffering the same issue.
datasets = dataset.get_datasets(opt) or dataloaders = dataset.get_datasets(opt)

can you tell me which one is correct ?
i tried both but still get the error

Total batch size: 22
UCF101: total number of videos 13320, classes 101
HMDB51: total number of videos 6766, classes 51
Traceback (most recent call last):
File "main.py", line 65, in
datasets = dataset.get_datasets(opt)
File "/home/hermes/Downloads/ZeroShotVideoClassification-master/dataset.py", line 14, in get_datasets
get_datasets = get_both_datasets(opt)
File "/home/hermes/Downloads/ZeroShotVideoClassification-master/dataset.py", line 107, in get_both_datasets
train_fnames, train_labels, train_classes = get_kinetics(opt.dataset)
File "/home/hermes/Downloads/ZeroShotVideoClassification-master/auxiliary/auxiliary_dataset.py", line 46, in get_kinetics
with open('/home/hermes/Downloads/ZeroShotVideoClassification-master/assets/kinetics%s.txt' % n_classes, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/hermes/Downloads/ZeroShotVideoClassification-master/assets/kinetics400.txt'

@nanguoshun
Copy link

hi @KP1-cmd , I have no idea for the issues. I suggest we send emails to authors for the issues.

Thanks a lot!

@KP1-cmd
Copy link

KP1-cmd commented Jun 9, 2020

hi @KP1-cmd , I have no idea for the issues. I suggest we send emails to authors for the issues.

Thanks a lot!

Ok thank you

@KP1-cmd
Copy link

KP1-cmd commented Jun 9, 2020

@muyinjiangxue did you fix the error ?

@bbrattoli
Copy link
Owner

The issue comes from the fact that “get_kinetics()” in auxiliary/auxiliary_dataset.py, needs to be adapted to your format used for the Kinetics dataset. When I implemented this code I used a dataset from the AWS team and I am not allowed to publish that. I suggest you fix the get_kinetics and debug the dataloader accordingly. Unfortunately Kinetics is not an easy dataset to work with.

A quicker solution is to download one of the model that I trained and only evaluate or fine-tune on UCF101.

Thank you for pointing this out, I will mention it in the readme.

Cheers,
Biagio

P.S. Sorry for the late reply

@muyinjiangxue
Copy link
Author

muyinjiangxue commented Jun 14, 2020 via email

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