models icon indicating copy to clipboard operation
models copied to clipboard

Postprocessing - Ultraface within TensorRT Inference

Open tsedlmeier opened this issue 4 years ago • 1 comments
trafficstars

Hello Everyone,

i wrote a Inference within Nvidias TensorRT and got Predictions from my model. However i dont know how to properly postprocess the predictions to get and draw the right bboxes. I do know that i have to do some NMS. Can anyone help and show me which Code-Snippets to use for my specific use-case? I found an interesting Plugin https://github.com/NVIDIA/TensorRT/tree/master/plugin/batchedNMSPlugin but i dont know how to integrate it.

Model: https://github.com/onnx/models/blob/master/vision/body_analysis/ultraface/models/version-RFB-640.onnx Inference: inference_face_detection.txt

Thanks for your help and have a nice day!

Toni

tsedlmeier avatar Aug 23 '21 08:08 tsedlmeier

You may check this Python source file about the post-processing for this model to generate the boxes. https://github.com/onnx/models/blob/master/vision/body_analysis/ultraface/dependencies/box_utils.py

wenbingl avatar Aug 31 '21 23:08 wenbingl