microsoft / scene_graph_benchmark

image scene graph generation benchmark
MIT License
380 stars 86 forks source link

Conflicting version pytorch and torchvision #68

Closed rafaelpadilla closed 2 years ago

rafaelpadilla commented 2 years ago

I have followed the instructions in INSTALL.md, but it shows compatibility error between pytorch and torchvision versions.

image

Am I missing something here?

albertmundu commented 2 years ago

Check your torch and torchvision versions and see if they are compatible https://github.com/pytorch/vision#installation.

mattsetzler commented 2 years ago

I'm experiencing the same issue. Initially I followed the installation instructions step-by-step. But this resulted in torchvision.version == 0.8.0a0 (as opposed to 0.8.2, which is what corresponds to torch version 1.7.1).

So I then uninstalled torchvision and reinstalled with "pip install torchvision==0.8.2". I can now confirm that my environment contains torch.version == 1.7.1 and torchvision.version 0.8.2. According to https://github.com/pytorch/vision#installation, these are compatible versions, and yet I'm still experiencing the same issue.

albertmundu commented 2 years ago

@mattsetzler I too had the same issue. Reinstalling torch+torchvision using the pip from https://pytorch.org/get-started/previous-versions/ solved it. Initially, it was installed using conda but it failed to install the right version.

mattsetzler commented 2 years ago

Thanks @albertmundu. After installing torch+torchvision from pip things seem to be working fine. I had to also install timm from pip, because doing so via conda would have changed my torchvision version.

rafaelpadilla commented 2 years ago

Thanks @albertmundu @mattsetzler :) Problem solved! I will close this issue. Thank you!