cyrusbehr / YOLOv8-TensorRT-CPP

YOLOv8 TensorRT C++ Implementation
MIT License
567 stars 69 forks source link

Aborted (core dumped) terminate called after throwing an instance of 'std::runtime_error' #29

Closed HXB-1997 closed 1 year ago

HXB-1997 commented 1 year ago

nvidia@ubuntu:~/Desktop/HXB/11-3/YOLOv8-TensorRT-CPP/build$ ./detect_object_image --model /home/nvidia/Desktop/HXB/11-3/yolov8n_32.onnx --input /home/nvidia/Desktop/HXB/11-3/bus2.jpg Searching for engine file with name: yolov8n_32.engine.NVIDIATegraX2.fp16.1.1 Engine not found, generating. This could take a while... terminate called after throwing an instance of 'std::runtime_error' what(): Error: Unable to build the TensorRT engine. Try increasing TensorRT log severity to kVERBOSE (in /libs/tensorrt-cpp-api/engine.cpp). Aborted (core dumped)

HXB-1997 commented 1 year ago

use this repositort code :pytorch2onnx.py, not use ultralytics official export script