Operate deepstream tracker on detections of specific gie id

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) - GPU
• DeepStream Version - 6.3
• JetPack Version (valid for Jetson only)
• TensorRT Version
• NVIDIA GPU Driver Version (valid for GPU only) - 550.107
• Issue Type - question

I’ve the pipeline -
camera → PGIE (yolo) → SGIE (face detector) → tracker → osd
Currently, the tracker is tracking all the detections - 80 classes of yolo + face bboxes. So it gives tracking ids to all classes of yolo (chair, etc) and faces.

Instead, I want the tracker to track detections coming from SGIE only. Or track based on class-ids, eg. track only person class from yolo and all detections from SGIE. How to do that?

I saw the tracker config tensor-meta-gie-id, but it is only applicable when input-tensor-meta is added by a preprocess plugin. Does it mean I’ll have to do something like add a preprocess plugin to assign a gie id at tensor meta level? Can’t the deepstream tracker track based on specifc nvinfer-gie-ids??

if you want to track the specific id, please refer to the point 5 in this link.

Since you want to track person class only, use the following parameters in your yolo pgie config file:

[class-attrs-all]
nms-iou-threshold=0.45
pre-cluster-threshold=1.5
topk=300

[class-attrs-0]
nms-iou-threshold=0.45
pre-cluster-threshold = 0.25
topk=300

Using pre-cluster-threshold=1.5 for all classes except class 0 (person) means that those classes will be filtered out, since confidence threshold for any class cannot be greater than 1.

Forgot to mention this, while these class attributes work when network-type=0 (Detector), I’ve set all the GIE network-type=100, because I need a custom model output parser. So when I set the class attributes in GIE config file, there’s no impact in the tracker output.

Any solution for when network-type=100?

if network-type is 100. you can add filter functionality in you custom postprocess function. only if the classid is 0, add the object meta.

That means I cannot use any of the tracker configs to filter out classes for tracking. Thanks for the help!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.