TensorRT engine giving wrong/different output in DeepStream

  1. You will have wrong number of outputs if the output parser is not correct. I would suggest double checking the logic over there. Keep in mind you would be receiving buffer for each frame in a batch for every call to your bbox parsing function. You will not be receiving the buffer for entire batch if you were not already aware. Also double check the preprocessing config params. Does it match your other setup as well ?

  2. You need to decouple a few things here. Either you do the clustering in your custom bbox parser and set “clustering-mode=4” for “NONE” (no clustering) to be performed, else another round of clustering will be done by the plugin using default opecv’s group rectangles algorithm. OR you can not perform any clustering in the bbox parsing library and let the nvinfer plugin handle everything.

1 Like