This error occurs when running yolov8 “RuntimeError: Couldn’t load custom C++ ops”

I have Jetpack 5.2 installed on Xavier NX. I’m dealing with YOLOv8.
I get an error as shown below:

"Couldn’t load custom C++ ops. This can happen if your PyTorch and "
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 GitHub - pytorch/vision: Datasets, Transforms and Models specific to Computer Vision 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.

-pytorch==2.0.0a0+8aa34602.nv23.03
-torchvision==0.10.0
-Cuda version==cuda_11.4.r11.4/compiler.31964100_0

Hi,

It looks like you are using the incompatible TorchVision version.
Please give TorchVision v0.14.1 a try.

Thanks.

I did as you said but the error did not change.

-pytorch==2.0.0a0+8aa34602.nv23.03
-torchvision==0.10.0
-Cuda version==cuda_11.4.r11.4/compiler.31964100_0
-Package: nvidia-jetpack - Version: 5.1.1-b56
-Xavier NX

There is no update from you for a period, assuming this is not an issue any more.
Hence we are closing this topic. If need further support, please open a new one.
Thanks

Hi,

Could you enable the variable and share a complete trace with us?
Thanks.