r2c icon indicating copy to clipboard operation
r2c copied to clipboard

no module named 'torchvision.layers'

Open xinhaoH opened this issue 5 years ago • 1 comments

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.

xinhaoH avatar Dec 07 '20 16:12 xinhaoH

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

JackWhite-rwx avatar Dec 17 '20 14:12 JackWhite-rwx