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

no module named 'torchvision.layers' #37

Open
Ppaddington opened this issue Dec 7, 2020 · 1 comment
Open

no module named 'torchvision.layers' #37

Ppaddington opened this issue Dec 7, 2020 · 1 comment

Comments

@Ppaddington
Copy link

When I run your code, there is an error 'no module named 'torchvision.layers'. and I can not use the link

pip install git+git://github.com/pytorch/vision.git@24577864e92b72f7066e1ed16e978e873e19d13d.

The solution of
sudo apt-get install git-core
pip install git+git://github.com/pytorch/vision.git@24577864e92b72f7066e1ed16e978e873e19d13d
doesn't work.

@JackWhite-rwx
Copy link

hello,this is my pip:
torch==1.1.0,torchvision==0.3.0

this is my code:
from torchvision.ops import RoIAlign

l hope that my suggest is useful for you

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