jkjung-avt / tensorrt_demos

TensorRT MODNet, YOLOv4, YOLOv3, SSD, MTCNN, and GoogLeNet
https://jkjung-avt.github.io/
MIT License
1.75k stars 547 forks source link

ERROR: failed to build the TensorRT engine! #522

Closed ddinhtuann closed 2 years ago

ddinhtuann commented 2 years ago

I try to convert onnx to tensorrt without int8 and dla_core but got this error bellow,would some one help me up?image

jkjung-avt commented 2 years ago

I myself have never encountered this error before.

This probably does not help too much. But anyway, this is what TensorRT header file ("NvInferRuntimeCommon.h") says about Error Code 2:

    //!
    //! A non-recoverable TensorRT error occurred. TensorRT is in an invalid internal state when this error is
    //! emitted and any further calls to TensorRT will result in undefined behavior.
    //!
    kINTERNAL_ERROR = 2,
ddinhtuann commented 2 years ago

Thanks, I found why the error caused: DLA_core was wrong type and I fixed it. I finished built the tensort engine but when I run trt_yolo.py through vscode remote ssh, my jetson powers off automatically even I set maxn nvpmodel, jetson_clocks. I dont show the frames with cv2_imshow(), i just print the fps and write those frames to .avi file. Do you have any ideal?

jkjung-avt commented 2 years ago

Are you using a proper AC-DC adapter to power the Jetson system?

ddinhtuann commented 2 years ago

I'm not sure. I am using a AC-DC adapter to supply 5V-4A via Power Jack.