• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)
Could you download my deepstream-test6 example to reproduce the issue?
Run app:
nvinfer plugin is opensource. I can reproduce this issue. it is related to if (oldParams.numDetectedClasses){} part code in DsNvInferImpl::initNewInferModelParams. when I removed this part code. the app run fine. will continue to check.
numDetectedClasses is only for detector and Instance Segmentation model. here is the final solution.
In function DsNvInferImpl::initNewInferModelParams of /opt/nvidia/deepstream/deepstream/sources/gst-plugins/gst-nvinfer/gstnvinfer_impl.cpp, please modify
if (oldParams.numDetectedClasses) {
to
if ((oldParams.networkType == NvDsInferNetworkType_Detector
|| oldParams.networkType == NvDsInferNetworkType_InstanceSegmentation)
&& oldParams.numDetectedClasses) {
then rebuild according to readme, then replace /opt/nvidia/deepstream/deepstream/lib/gst-plugins/libnvdsgst_infer.so with the new so.