Secondary Classifier outputs integer instead of labels

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) -> dGPU aws T4
• DeepStream Version -> 5.0 devel
• TensorRT Version -> 7
• NVIDIA GPU Driver Version (valid for GPU only) -> 440.82

This is primary detector config file:

[property]
gpu-id=0
#net-scale-factor=0.0039215697906911373
net-scale-factor=1.0
model-color-format=0
offsets=123.0;117.0;104.0
model-engine-file=./tensorrt_engines_awsT4/retina_r50.engine

# create labels file
labelfile-path=./labels.txt
batch-size=1
## 0=FP32, 1=INT8, 2=FP16 mode
network-mode=2
num-detected-classes=1
interval=0
gie-unique-id=1
is-classifier=0
output-blob-names=prob
parse-bbox-func-name=NvDsInferParseCustomFD
custom-lib-path=./nvdsinfer_customparser_fd/libplugin.so


[class-attrs-all]
pre-cluster-threshold=0.1
roi-top-offset=0
roi-bottom-offset=0
detected-min-w=0
detected-min-h=0
detected-max-w=0
detected-max-h=0

This is the secondary classifier config file:

[property]
gpu-id=0
net-scale-factor=1
model-engine-file=./tensorrt_engines_awsT4/resnet18beard.engine
labelfile-path=./beard_labels.txt
batch-size=1
# 0=FP32 and 1=INT8 mode
network-mode=2
input-object-min-width=224
input-object-min-height=224
process-mode=2
model-color-format=0
gpu-id=0
gie-unique-id=2
operate-on-gie-id=1
operate-on-class-ids=0
is-classifier=1
output-blob-names=prob
classifier-async-mode=1
classifier-threshold=0.
process-mode=2
#scaling-filter=0
#scaling-compute-hw=0

The output over the bbox is numbers instead of labels (No_beard, beard)

Are you using deepstream-app?
The label of PGIE can show normally?

@bcao Yes deepstream-app. Yes there is only one label in PGIE -> face which shows correctly!!

can you share me with your deepstream-app config file?

Shared both pgie and sgie config files in the first post!!

deepstream-app config file

Okay you mean this deepstream.c (21.6 KB)

No, when you run deepstream-app -c ‘config-file’, I mean this config-file.This config file is used by deepstream-app.

So @bcao I am using two config files one for face detector and the other for classification, both the config files are shared in the first post!!

So you don’t use deepstream-app, right? I had asked you in 2nd comment about this. deepstream-app will use additonal config, your 2 config files are for nvinfer, do you understand?

Yes!! I don’t have an extra config file for deepstream app. Only a .c file. Am I supposed to use an extra config file for the app. Because I did not find it in the test app