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

cant run dataloader.py #6

Closed
PurvaChiniya opened this issue Apr 17, 2020 · 2 comments
Closed

cant run dataloader.py #6

PurvaChiniya opened this issue Apr 17, 2020 · 2 comments

Comments

@PurvaChiniya
Copy link

I am facing an implementation error in import _DataLoaderIter from torch.utils.data.dataloader in dataloader.py
Im using pytorch 1.4.0 and python 3.7
I tried to change _DataLoaderIter to DataLoaderIter. Even that doesn't work.
I tried many ways to debug the error. However, I get the error:

ImportError Traceback (most recent call last)
in ()
4 from torch._C import _set_worker_signal_handlers, _set_worker_pids, _remove_worker_pids, _error_if_any_worker_fails
5 from torch.utils.data.dataloader import DataLoader
----> 6 from torch.utils.data.dataloader import DataLoaderIter

ImportError: cannot import name 'DataLoaderIter'

@HolmesShuan
Copy link
Member

HolmesShuan commented Apr 18, 2020

Thanks for your interest. Please refer to our dependency: PyTorch==0.4.1
If you really want to use 1.4.0, I recommend EDSR, since they have updated their codes to support 1.2.0.
IMDN is another option, they rewrite the dataloader module to utilize the standard PyTorch dataloader.

@PurvaChiniya
Copy link
Author

Thanks it works now.

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

2 participants