marcoslucianops / DeepStream-Yolo

NVIDIA DeepStream SDK 7.0 / 6.4 / 6.3 / 6.2 / 6.1.1 / 6.1 / 6.0.1 / 6.0 / 5.1 implementation for YOLO models
MIT License
1.45k stars 356 forks source link

In Deepstream, where is the NMS? #456

Closed relaxtheo closed 1 year ago

relaxtheo commented 1 year ago

I need to customized a yolov5 based model with rotated boundingbox, but where is the NMS in deepstream system? In the bbox parser, we can the candidates that much more than the final results, so it seems there is a deepstream component do the NMS work later.

Which Deepstream component did this? I hope it is a opensource component and I can customize it.

Anybody knows this? Thank you

marcoslucianops commented 1 year ago

The NMS is the /opt/nvidia/deepstream/deepstream/sources/libs/nvdsinfer/nvdsinfer_context_impl_output_parsing.cpp file.

The DeepStream doesn't support the rotated bounding box natively. You need to customize the output and add the bounding boxes using the NvDsInferTensorMeta and the NvDsDisplayMeta.

relaxtheo commented 1 year ago

Thank you!