Hello. I am currently trying to get my PyTorch code running correctly using CUDA on my Jetson AGX Orin.
I’ve run into a couple of problems, but the current error I’ve landed at is this:
RuntimeError: operator torchvision::nms does not exist
To reprduce the error, I just need to run code that imports torchvision:
import torch
import torchvision
According to PyTorch forums, this error results from incompatible PyTorch and Torchvision installations. Hence, I have reinstalled the two libraries multiple times in different ways, failing in different ways each time:
-
Normal pip/pip3 install — pip3 defaults to cpu binaries for the packages, resulting in my code returning False for torch.cuda.is_available()
-
Install torch as instructed here, from https://developer.download.nvidia.com/compute/redist/jp/v61/pytorch/torch-2.5.0a0+872d972e41.nv24.08.17622132-cp310-cp310-linux_aarch64.whl — results in torch and torchvision version discrepancy
-
Install torch and torchvision via jetson-containers — this results in the ‘nms does not exist’ error shown above.
Some information about my system:
Currently, it is running JetPack 6.1 with torch version 2.5.0 and torchvision version 0.20.0.
I would appreciate any help with this, thank you.