Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PyTorch and torchvision versions are incompatible #7585

Closed
Donalcon opened this issue May 13, 2023 · 2 comments
Closed

PyTorch and torchvision versions are incompatible #7585

Donalcon opened this issue May 13, 2023 · 2 comments

Comments

@Donalcon
Copy link

🐛 Describe the bug

My project has a dependency that requires torch==1.13.0 (bytetracker). I have installed this version, as well as the versions of torchvision and torch audio compatible with it:

pip install torch==1.13.0+cpu torchvision==0.14.0+cpu torchaudio==0.13.0 --extra-index-url https://download.pytorch.org/whl/cpu

The above is backed up by the compatibility matrix in this repo's readme:

torch | torchvision | Python
-- | -- | --
main / nightly | main / nightly | >=3.8<=3.11
2.0 | 0.15 | >=3.8<=3.11
1.13 | 0.14 | >=3.7.2<=3.10
1.12 | 0.13 | >=3.7<=3.10

Why am I still receiving a compatibility error?

RuntimeError: Couldn't load custom C++ ops. This can happen if your PyTorch and torchvision versions are incompatible, or if you had errors while compiling torchvision from source. For further information on the compatible versions, check https://github.com/pytorch/vision#installation for the compatibility matrix. Please check your PyTorch version with torch.version and your torchvision version with torchvision.version and verify if they are compatible, and if not please reinstall torchvision so that it matches your PyTorch install.

Note: I don't have cuda so cpu version is what I'm after

Versions

above^^

@pmeier
Copy link
Collaborator

pmeier commented May 15, 2023

Could you please run the environment collection script as prompted by the issue template?

@NicolasHug
Copy link
Member

Do you just need torch or do you also need torchvision? Feel free to ignore both torchvision and torchaudio from the installation command if you just need torch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants