Preformatted text when I replace config_infer_primary.txt with yolov4 Preformatted text deepstream config_infer_primary_yoloV4.txt. The nvdsanalytics stop counting the objects which cross the line
config_nvdsanalytics.txt
[property]
enable=1 #Width height used for configuration to which below configs are configured
config-width=640
config-height=480
osd-mode 0: Dont display any lines, rois and text
1: Display only lines, rois and static text i.e. labels
2: Display all info from 1 plus information about counts
osd-mode=2
Set OSD font size that has to be displayed
display-font-size=12
#Per stream configuration
[roi-filtering-stream-0] #enable or disable following feature
enable=1 #ROI to filter select objects, and remove from meta data
roi-RF=199;124;397;115;415;156;216;169 #remove objects in the ROI
inverse-roi=0
class-id=0
#Per stream configuration
[roi-filtering-stream-2] #enable or disable following feature
enable=0 #ROI to filter select objects, and remove from meta data
roi-RF=295;143;279;334;342;213;56;428 #remove objects in the ROI
inverse-roi=0
class-id=0
[overcrowding-stream-1]
enable=0
roi-OC=295;143;279;334;342;213;56;428 #no of objects that will trigger OC
object-threshold=3
class-id=-1
class-id=0 #extended when 0- only counts crossing on the configured Line #1- assumes extended Line crossing counts all the crossing
extended=0 #LC modes supported: #loose : counts all crossing without strong adherence to direction #balanced: Strict direction adherence expected compared to mode=loose #strict : Strict direction adherence expected compared to mode=balanced
mode=loose
so, the difference is: the workable pipeline uses
“nvinfer config-file-path= /opt/nvidia/deepstream/deepstream-6.0/samples/configs/deepstream-app/config_infer_primary.txt”
the not-workable pipeline uses:
“nvinfer config-file-path= /opt/nvidia/deepstream/deepstream-6.0/sources/deepstream_yolov4_with_nvdspreprocess/config_infer_primary_yoloV4.txt”
right?
did you modify /opt/nvidia/deepstream/deepstream-6.0/samples/configs/deepstream-app/config_infer_primary.txt or /opt/nvidia/deepstream/deepstream-6.0/sources/deepstream_yolov4_with_nvdspreprocess/config_infer_primary_yoloV4.txt ?
but what changes should I made in config_infer_primary_yoloV4.txt to make it work with workable pipeline . Because there is no guidance available online.Please guide me.
Thanks your reply
Both use the same config_nvdsanalytics.txt, right?
Can you also /opt/nvidia/deepstream/deepstream-6.0/samples/configs/deepstream-app/config_infer_primary.txt so that we can do some comparison beween your /opt/nvidia/deepstream/deepstream-6.0/samples/configs/deepstream-app/config_infer_primary.txt and your /opt/nvidia/deepstream/deepstream-6.0/sources/deepstream_yolov4_with_nvdspreprocess/config_infer_primary_yoloV4.txt?
The reason of this issue should be you set “class-id=0” filter in analytics config file.
For /opt/nvidia/deepstream/deepstream-6.0/samples/configs/deepstream-app/config_infer_primary.txt, “class-id=0” is car, but for YoloV4, Car is “class-id=2” as yolov4_deepstream/labels.txt at master · NVIDIA-AI-IOT/yolov4_deepstream · GitHub