-
Notifications
You must be signed in to change notification settings - Fork 223
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
[Bug] ModuleNotFoundError: No module named 'torch.ao' #68
Comments
Hi there, Did we use Thanks! -Yuan |
Hi Yuan, If you follow the call stack you can see the dependency arises from |
Thanks! I just checked, it seems we use
It's weird that no one has complained about this issue. I assume the order you install these three packages also matters. |
I suspect it is more to do with when the user installed the dependencies rather than the order -- I think the breaking change came only in the 0.12.0 release: https://github.com/pytorch/vision/releases/tag/v0.12.0 Without pinning the version in the requirements file, pip will get the latest. So anyone who set up before that point would have avoided the issue -- or perhaps anyone who installed into a Python environment with |
Would you like the version changed to |
Yes, but I will need to test it before changing it. Thanks again for pointing this out. |
A regular check on the traffic of this repo shows that many people are searching this issue - which means this bug affects many people. Follow your suggestion I have pinned If anyone still experience this bug, please leave a message in this thread and I will take another look. -Yuan |
Following setup instructions at present will lead to an error on the model import. Specifically,
torchvision
needs to be pinned to a version. Otherwise,pip
may install (e.g.) 0.12.0, which expectstorch==1.11.0
when it importstorch.ao
.The text was updated successfully, but these errors were encountered: