YoloV3 kPROB_THRESH - Threshold param in DS5.0

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU)
Jetson
• DeepStream Version
DS5.0
• JetPack Version (valid for Jetson only)
4.4
• TensorRT Version
7.1
• NVIDIA GPU Driver Version (valid for GPU only)

Hi ,

I am trying to control the sensitivity of the tiny-Yolo V3 in DS5.0

in DS4.0 it was : static const float kPROB_THRESH = 0.1f; in nvdsinfer_custom_impl_Yolo\nvdsparsebbox_Yolo.cpp

Where can it stays in DS5.0 OR how i control the sensitivity?

BR,

Zvika

it’s defined with “threshold” property in configure file

[class-attrs-all]
nms-iou-threshold=0.3
threshold=0.7

and, parsed as perClassPreclusterThreshold[obj.classId] and used in below function.

File: /opt/nvidia/deepstream/deepstream-5.0/sources/libs/nvdsinfer/nvdsinfer_context_impl_output_parsing.cpp

void DetectPostprocessor::preClusteringThreshold(
                           NvDsInferParseDetectionParams const &detectionParams,
                           std::vector<NvDsInferObjectDetectionInfo> &objectList)
{
        objectList.erase(std::remove_if(objectList.begin(), objectList.end(),
               [detectionParams](const NvDsInferObjectDetectionInfo& obj)
               { return (obj.classId >= detectionParams.numClassesConfigured) ||
                        (obj.detectionConfidence <
                        detectionParams.perClassPreclusterThreshold[obj.classId])
                        ? true : false;}),objectList.end());
}

all classId’s perClassPreclusterThreshold is 0.7 as defined above