linghu8812 / tensorrt_inference

699 stars 205 forks source link

Segmentation fault. Yolov4-tiny #109

Open Esesna opened 2 years ago

Esesna commented 2 years ago

When I read the trt file, the Segmentation fault flies.But, Everything works when I create trt from onnx.

Yolov4.cpp 133 line cudaMemcpyAsync(buffers[0], curInput.data(), bufferSize[0], cudaMemcpyHostToDevice, stream);

Output console: ../config-tiny.yaml ../samples loading filename from:../yolov4-tiny.trt deserialize done binding0: 132907008 binding1: 3893760 Processing: ../samples/person.jpg prepareImage prepare image take: 55.358 ms. host2device Segmentation fault (core dumped)

Jetson Nano Ubuntu 18.04(aarch64) Cuda 10.2 tensorRT 7.1.3