NVIDIA-AI-IOT / redtail

Perception and AI components for autonomous mobile robotics.
BSD 3-Clause "New" or "Revised" License
1.01k stars 346 forks source link

Error Loading TensorRT plan for ResNet-18_2D #150

Open amirkforesightauto opened 4 years ago

amirkforesightauto commented 4 years ago

I run the following code twice: "./bin/nvstereo_sample_app resnet18_2D 513 257 ./models/ResNet-18_2D/TensorRT/trt_weights.bin ./sample_app/data/img_left.png ./sample_app/data/img_right.png ./bin/disp.bin"

The first run generated a plan file in "/stereoDNN/models/ResNet-18_2D/TensorRT/trt_weights.bin.plan"

The second run generated the following error: "Loading TensorRT plan from ./models/ResNet-18_2D/TensorRT/trt_weights.bin.plan... double free or corruption (out) Aborted (core dumped)"

I'm using tensorrt 6.0.

Would appreciate your help.

Thanks

mtbsteve commented 3 years ago

Same problem here after I switched to Jetpack 4.4. Everything runs fine on Jetpack 4.2. So I assume its a problem with either TensorRT 7.1.3 or a problem with OpenCV 4.1.1. I had to do a few tweaks on the code to support OpenCV 4 but it compiles well now and also the StereoDNN code runs well as long as I generate the trt_weights_plan file from scratch. Any ideas what I could do?