Hi,
I installed pytorch and torchvision on Xavier NX JP 5.0.1 DP following the instructions in the link below:
but I get below warning:
import torchvision
/home/hekun/Downloads/torchvision/torchvision/io/image.py:13: UserWarning: Failed to load image Python extension:
warn(f"Failed to load image Python extension: {e}")
/home/hekun/Downloads/torchvision/torchvision/init.py:28: UserWarning: You are importing torchvision within its own root folder (/home/hekun/Downloads/torchvision). This is not expected to work and may give errors. Please exit the torchvision project source and relaunch your python interpreter.
warnings.warn(message.format(os.getcwd()))
import torch
print(torch.version)
1.11.0
print('CUDA available: ’ + str(torch.cuda.is_available()))
CUDA available: True
print('cuDNN version: ’ + str(torch.backends.cudnn.version()))
cuDNN version: 8302
print(torchvision.version)
0.12.0
And I get the following error when running yolov5 training:
File “/home/hekun/.local/lib/python3.8/site-packages/torchvision/extension.py”, line 33, in _assert_has_ops
raise RuntimeError(
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.
Could you help me? Thanks a lot!