NVIDIA / retinanet-examples

Fast and accurate object detection with end-to-end GPU optimization
BSD 3-Clause "New" or "Revised" License
885 stars 271 forks source link

tensorrt error running cppapi #314

Closed natxopedreira closed 3 years ago

natxopedreira commented 3 years ago

Hello

Im getting this error when trying to run inference with cpp api... what can be the cause?

./infer ./model.plan ./foto.png 
Loading engine...
6: The engine plan file is not compatible with this version of TensorRT, expecting library version 8.0.0 got 8.0.1, please rebuild.
4: [runtime.cpp::deserializeCudaEngine::74] Error Code 4: Internal Error (Engine deserialization failed.)
Segmentation fault (core dumped)
ghost commented 3 years ago

Regenerate model.plan again, seems like it was generated using different TRT

natxopedreira commented 3 years ago

thanks, that did the trick!