-
Notifications
You must be signed in to change notification settings - Fork 7.1k
No module named 'torchvision.models.mobilenetv2' #4157
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
Comments
I can't reproduce this issue even without hitting #4156. @onlinehuazai could you please provide the output of
as asked in the issue template? |
I'm having the same problem! |
fixed if I pull from v0.8.0 |
@lstrgar can you paste in a comment the output of
? |
Closing due to inactivity |
I have the same issue with torch 1.7.1+cpu on win10. do we have a fix here? or we should rely purely on the torchvision.models? I am providing my env using the "collect_env.py" you provided Thanks.
|
This is probably because the version of torchvision installed is older as compared to the version of vision you are passing in torch.hub(). Match them by passing the same version in torch.hub() and it should work like a charm. |
🐛 Bug
model = torch.hub.load('pytorch/vision:v0.9.0', 'resnext50_32x4d', pretrained=True)
ModuleNotFoundError: No module named 'torchvision.models.mobilenetv2'
The text was updated successfully, but these errors were encountered: