I am working on NVIDIA-Jetson (Jetson 5.1). For our work, we strictly need torch version1.14.1 package only.
I downloaded the whl file of PyTorch 1.14.1 supported for Jetson 5.1 from the official listings which are listed for Jetson by NVIDIA. We couldn’t find torch 1.14.1’s corresponding torchvison version on PyTorch’s website or anywhwere else.
So according this thread we tried to build it from source (source repo) and encountered no error message.
But now while importing torchvision to my codebase, I get the following error-message : -
from torchvision import _meta_registrations, datasets, io, models,
ops, transforms, utils
File
“/home/vision/GBCxFasterRCNN_GUI/vision-main/torchvision/_meta_registrations.py”,
line 4, in
import torch._custom_ops
ModuleNotFoundError: No module named ‘torch._custom_ops’
The above thread said that we just need PyTorch installed in our environment. Then directly run python setup.py install after cloning the official repo.
The TorchVision installed with this was 0.19.0.