Error an torchvision

241 views
Skip to first unread message

Xuejiao Tang

unread,
Nov 20, 2019, 3:24:03 PM11/20/19
to Visual Commonsense Reasoning
Hi, I tried to run the code. And I installed pytorch 1.0 and torchvision as your instruction. But it seems like something wrong with torchvision. Could you please tell me the torchvision if you can see my issue. Thanks!

from torchvision.layers import ROIAlign
ModuleNotFoundError: No module named 'torchvision.layers'

Process finished with exit code 1

Jize Cao

unread,
Nov 20, 2019, 3:33:18 PM11/20/19
to Visual Commonsense Reasoning
Would you like to uninstall the pytorch and torchvision and reinstall them? Also, make sure that pytorch 1.0 is installed. (The current installation command would not force to install pytorch 1.0 version.)

woosik Yang

unread,
Nov 21, 2019, 10:57:44 AM11/21/19
to Visual Commonsense Reasoning
torchvision version mismatched. Current torchvision library does not have layers function. You have to install torchvision 0.2.0 as README mentioned

xinyan wang

unread,
Nov 29, 2021, 6:42:11 AM11/29/21
to Visual Commonsense Reasoning

Hi,do you solve the problem yet?I have the same problem,and my pytorch is 1.0.1,torchvision is 0.2.0
Reply all
Reply to author
Forward
0 new messages