-
Notifications
You must be signed in to change notification settings - Fork 33
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
cannot import name 'load_state_dict_from_url' #5
Comments
Just FYI, I applied work-around with local change borrowing: https://github.com/pytorch/vision/blob/master/torchvision/models/utils.py try:
from torch.hub import load_state_dict_from_url
except ImportError:
from torch.utils.model_zoo import load_url as load_state_dict_from_url (Just dunno if applying this change is better or not in the future, I'm making local change.) |
great ! it works |
Worked perfectly. |
Solved perfectly! thanks! |
requires pytorch >1.0.0, my version is 1.0.1, i found v1.0.1 not support 'load_state_dict_from_url'
but >=1.1.0
The text was updated successfully, but these errors were encountered: