linghu8812 / tensorrt_inference

696 stars 205 forks source link

Segmentation Fault errors and some other #168

Closed Egorundel closed 1 year ago

Egorundel commented 1 year ago

Hello, I changed the config and everything else according to your instructions. Next, I ran commands for yolov7 and errors started popping up at startup.

If you run without sudo, Segmentation Fault (core dumped) pops up.

And if you run with sudo, then another error pops up.

I attached a photo to demonstrate the errors.

I would be grateful for help with solving the problem!

I use Ubuntu 20.04, ICE CLion, TensorRT 7.2.2.3 and a custom yolov7 model with its own weights

Screenshot from 2023-06-29 17-07-45

Egorundel commented 1 year ago

The problem was solved by replacing void *buffers[2]; in model.h on void *buffers[5];

and in model.cpp changed the line assert(engine->getNbBindings() == 2); to assert(engine->getNbBindings() == 5);

Do this if you use the NMS Plugin in the model :)