Hi @dusty_nv, I appreciate the prompt reply!
From the forum you mentioned, I downloaded & installed the following:
“pip install torch-2.0.0+nv23.05-cp38-cp38-linux_aarch64.whl”
According to the same forum:
PyTorch v2.0.0 - torchvision v0.15.1
So I ran the command:
“pip install torchvision==0.15.1”
Ignore the weight/model issue below, I don’t think it’s relevant or the cause of this problem.
The console output is as follows:
rebotnix@rebotnix:~/Documents/yolov7$ ls -l ~/Pictures/peopleonbeach.webp
-rw-rw-r-- 1 rebotnix rebotnix 71178 Jun 9 12:50 /home/rebotnix/Pictures/peopleonbeach.webp
rebotnix@rebotnix:~/Documents/yolov7$ ls -l ~/Documents/weights/yolov7/
total 1101276
-rw-rw-r-- 1 rebotnix rebotnix 268261125 Jun 1 15:15 yolov7-d6.pt
-rw-rw-r-- 1 rebotnix rebotnix 304425133 Jun 1 15:16 yolov7-e6e.pt
-rw-rw-r-- 1 rebotnix rebotnix 195040397 Jun 1 15:14 yolov7-e6.pt
-rw-rw-r-- 1 rebotnix rebotnix 75587165 Jun 1 15:10 yolov7.pt
-rw-rw-r-- 1 rebotnix rebotnix 141255765 Jun 1 15:13 yolov7-w6.pt
-rw-rw-r-- 1 rebotnix rebotnix 143099649 Jun 1 15:13 yolov7x.pt
rebotnix@rebotnix:~/Documents/yolov7$ python detect.py --weights ~/Documents/weights/yolov7/yolov7.pt --conf 0.25 --img-size 640 --device 0 --source ~/Pictures/peopleonbeach.webp
/home/rebotnix/.local/lib/python3.8/site-packages/torchvision/io/image.py:13: UserWarning: Failed to load image Python extension: ‘/home/rebotnix/.local/lib/python3.8/site-packages/torchvision/image.so: undefined symbol: _ZN5torch3jit17parseSchemaOrNameERKSs’If you don’t plan on using image functionality from torchvision.io
, you can ignore this warning. Otherwise, there might be something wrong with your environment. Did you have libjpeg
or libpng
installed before building torchvision
from source?
warn(
Namespace(agnostic_nms=False, augment=False, classes=None, conf_thres=0.25, device=‘0’, exist_ok=False, img_size=640, iou_thres=0.45, name=‘exp’, no_trace=False, nosave=False, project=‘runs/detect’, save_conf=False, save_txt=False, source=’/home/rebotnix/Pictures/peopleonbeach.webp’, update=False, view_img=False, weights=[‘/home/rebotnix/Documents/weights/yolov7/yolov7.pt’])
YOLOR 🚀 v0.1-126-g84932d7 torch 2.0.0+nv23.05 CUDA:0 (Orin, 14485.75390625MB)
Downloading https://github.com/WongKinYiu/yolov7/releases/download/v0.1/yolov7.pt to /home/rebotnix/documents/weights/yolov7/yolov7.pt…
Download error: [Errno 2] No such file or directory: ‘/home/rebotnix/documents/weights/yolov7/tmp3rvxjn7c’
ERROR: Download failure: /home/rebotnix/documents/weights/yolov7/yolov7.pt missing, try downloading from Releases · WongKinYiu/yolov7 · GitHub
Fusing layers…
RepConv.fuse_repvgg_block
RepConv.fuse_repvgg_block
RepConv.fuse_repvgg_block
Model Summary: 306 layers, 36905341 parameters, 6652669 gradients
Convert model to Traced-model…
traced_script_module saved!
model is traced!
/home/rebotnix/.local/lib/python3.8/site-packages/torch/functional.py:504: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at /opt/pytorch/pytorch/aten/src/ATen/native/TensorShape.cpp:3483.)
return _VF.meshgrid(tensors, **kwargs) # type: ignore[attr-defined]
Traceback (most recent call last):
File “detect.py”, line 196, in
detect()
File “detect.py”, line 92, in detect
pred = non_max_suppression(pred, opt.conf_thres, opt.iou_thres, classes=opt.classes, agnostic=opt.agnostic_nms)
File “/home/rebotnix/Documents/yolov7/utils/general.py”, line 684, in non_max_suppression
i = torchvision.ops.nms(boxes, scores, iou_thres) # NMS
File “/home/rebotnix/.local/lib/python3.8/site-packages/torchvision/ops/boxes.py”, line 40, in nms
_assert_has_ops()
File “/home/rebotnix/.local/lib/python3.8/site-packages/torchvision/extension.py”, line 48, 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.
What do you think?
All the best,
Simon