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

from torch.utils.model_zoo import _download_url_to_file ImportError: cannot import name '_download_url_to_file' #55

Open
958099161 opened this issue Jun 18, 2019 · 8 comments

Comments

@958099161
Copy link

from torch.utils.model_zoo import _download_url_to_file
from torch.utils.model_zoo import urlparse
from torch.utils.model_zoo import HASH_REGEX

can not import the up iteams

@zhuliqian
Copy link

我也遇到相同的问题,是不是pytorch的版本问题啊

@958099161
Copy link
Author

958099161 commented Jun 20, 2019 via email

@zjhuang22
Copy link
Owner

It might be the problem of pytorch version. refer to this facebookresearch/maskrcnn-benchmark#673

@shiruiruiya
Copy link

您好,请问您最后是如何解决的?我刚接触图像,对这些不太熟

@958099161
Copy link
Author

958099161 commented Jul 6, 2019 via email

@shiruiruiya
Copy link

shiruiruiya commented Jul 6, 2019 via email

@shiruiruiya
Copy link

shiruiruiya commented Jul 6, 2019 via email

@xsliu2018
Copy link

from torch.utils.model_zoo import _download_url_to_file
from torch.utils.model_zoo import urlparse
from torch.utils.model_zoo import HASH_REGEX
change to
from torch.hub import _download_url_to_file
from torch.hub import urlparse
from torch.hub import HASH_REGEX

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

5 participants