-
-
Notifications
You must be signed in to change notification settings - Fork 17.2k
Description
Search before asking
- I have searched the YOLOv5 issues and discussions and found no similar questions.
Question
Jetson nano environment
I am trying to change engine from pt
I entered "python3 export.py --weights XXX.pt --include engine"
error has occured
export: data=data/coco128.yaml, weights=['doe3.pt'], imgsz=[640, 640], batch_size=1, device=cpu, half=False, inplace=False, train=False, optimize= False, int8=False, dynamic=False, simplify=False, opset=12, verbose=False, workspace=4, nms=False, agnostic_nms=False, topk_per_class=100, topk_all=100, iou_thres=0.45, conf_thres=0.25, include=['engine']
YOLOv5 🚀 2022-2-5 torch 1.7.0 CPU
Fusing layers...
Model Summary: 190 layers, 5233482 parameters, 0 gradients, 14.4 GFLOPs
PyTorch: starting from doe3.pt with output shape (1, 24000, 7) (10.7 MB)
ONNX: starting export with onnx 1.10.2...
ONNX: export failure: Unsupported ONNX opset version: 13
TensorRT: starting export with TensorRT 8.0.1.6...
TensorRT: export failure: export running on CPU but must be on GPU, i.e. python export.py --device 0
Traceback (most recent call last):
File "export.py", line 526, in
main(opt)
File "export.py", line 521, in main
run(**vars(opt))
File "/home/.local/lib/python3.6/site-packages/torch/autograd/grad_mode.py", line 26, in decorate_context
return func(*args, **kwargs)
File "export.py", line 479, in run
LOGGER.info(f'\nExport complete ({time.time() - t:.2f}s)'
IndexError: list index out of range
Additional
No response