I am using the serial model following the case of deepstrem-test2, but I set the second level model as the main model.
The inference is that there is the following warning, is this warning a pipeline problem? How can I fix it? WARNING: Num classes mismatch. configured: 3, detected by network: 80
I set all model parameters network-type to 0, set process-mode to 1.
The first level primary model is 80 classes and the second level primary model is 3 classes.
It is the same class of model “yolov5s”
The classification detected in the first primary model is 80
in the second primary model of the serial series is 3.
The settings are no problem!
I think it is in deepstream that the serial model second model detection goes to read the output classification of the first model, my first model output is 80 classifications, but my second model classification is only 3 classifications, so it issues the warning above.
This warning should not exist because I set both models of the serial model to be the primary model.
is the second model YOLO model? if not, you should not set parse-bbox-func-name=NvDsInferParseYolo, NvDsInferParseYolo will print that warning if num-detected-classes are not the same with NUM_CLASSES_YOLO(80).
Both are yolov5s models
If I use the second master model alone, classified as 3, it is not printing this warning.
Could it be that gst-infer, the plugin itself, is having problems with the performance when using serial models, and all of them are master models?
this constant is not used to infer, it is use to postprocess parse-bbox, it is opensource, you can find customBBoxParseFuncName in SDK.
about that warning, NvDsInferParseYolo is opensource, you can write a new NvDsInferParseYolo with 3 classes, btw, why dose your YOLO model have 3 classes?
There is no update from you for a period, assuming this is not an issue anymore. Hence we are closing this topic. If need further support, please open a new one.
Thanks
please check if NvDsInferParseCustomYolo will use that kNUM_CLASSES, some functions will use it to parse, like NvDsInferParseYoloV2.