Closed rafaelpadilla closed 2 years ago
Check your torch
and torchvision
versions and see if they are compatible https://github.com/pytorch/vision#installation.
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.
@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.
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.
Thanks @albertmundu @mattsetzler :) Problem solved! I will close this issue. Thank you!
I have followed the instructions in INSTALL.md, but it shows compatibility error between pytorch and torchvision versions.
Am I missing something here?