rowanz / r2c

Recognition to Cognition Networks (code for the model in "From Recognition to Cognition: Visual Commonsense Reasoning", CVPR 2019)
https://visualcommonsense.com
MIT License
466 stars 91 forks source link

Error #13

Closed AmingWu closed 5 years ago

AmingWu commented 5 years ago

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.

flyingmanPan commented 5 years ago

The module is in that torchvision, so that package MUST be installed. Maybe you should uninstall the old torchvision, and configure CUDA_HOME, then install that package.

jaeyun95 commented 5 years ago

1) sudo apt-get install git-core and 2) pip install git+git://github.com/pytorch/vision.git@24577864e92b72f7066e1ed16e978e873e19d13d try it! i had a same problem and solve it!

rowanz commented 5 years ago

thanks for the help @jaeyun95 !! closed 😄

AmingWu commented 5 years ago

@rowanz when I run sudo apt-get install git-core and pip install git+git://github.com/pytorch/vision.git@24577864e92b72f7066e1ed16e978e873e19d13d, it also does not work.

venkata-srinivasan commented 4 years ago

I am also facing the same issue. The above fix doesn't work

KanswerG commented 2 years ago

i cannot download git, what should i do