Depends on your re-trained LPD model. We don’t know anything about the LPD model you have re-trained. The pre-trained LPD model in LPDNet | NVIDIA NGC can only detect plates in the car pictures(the pictures have only one car). If you have modified and re-trained the model to support detect plates in arbitrary content pictures(E.G. The pictures with several cars and other backgroud objects), then you don’t need the car detection model.
Just found out the problem, when i run the deepstream-app -c deepstream_app_source1_trafficcamnet_lpd.txt it can show sgie, however sgie didn’t show in python.
[application]
enable-perf-measurement=1
perf-measurement-interval-sec=1
[tiled-display]
enable=1
rows=1
columns=1
width=1280
height=720
gpu-id=0
[source0]
enable=1
#Type - 1=CameraV4L2 2=URI 3=MultiURI
type=3
num-sources=1
uri=file:///home/development/Downloads/deepstream_lpr_app/deepstream-lpr-app/plate1.mp4
gpu-id=0
[streammux]
gpu-id=0
batch-size=1
batched-push-timeout=40000
## Set muxer output width and height
width=1280
height=720
[sink0]
enable=1
#Type - 1=FakeSink 2=EglSink 3=File
type=2
sync=1
source-id=0
gpu-id=0
[osd]
enable=1
gpu-id=0
border-width=3
text-size=15
text-color=1;1;1;1;
text-bg-color=0.3;0.3;0.3;1
font=Arial
[primary-gie]
enable=1
#model-engine-file=resnet_lpd/resnet18_detector.etlt_b4_gpu0_fp16.engine
model-engine-file=resnet_lpd/lpdnet120.etlt_b4_gpu0_fp16.engine
#(0): nvinfer; (1): nvinferserver
plugin-type=0
gpu-id=0
# Modify as necessary
batch-size=4
#Required by the app for OSD, not a plugin property
bbox-border-color0=1;0;0;1
bbox-border-color1=0;1;1;1
bbox-border-color2=0;0;1;1
bbox-border-color3=0;1;0;1
gie-unique-id=1
operate-on-gie-id=1
operate-on-class-ids=0;
config-file=lpd_id_config.txt
#config-file=triton/config_infer_primary_trafficcamnet.txt
#config-file=triton-grpc/config_infer_primary_trafficcamnet.txt
[tracker]
enable=1
# For NvDCF and DeepSORT tracker, tracker-width and tracker-height must be a multiple of 32, respectively
tracker-width=640
tracker-height=480
ll-lib-file=/opt/nvidia/deepstream/deepstream/lib/libnvds_nvmultiobjecttracker.so
# ll-config-file required to set different tracker types
# ll-config-file=/opt/nvidia/deepstream/deepstream/samples/configs/deepstream-app/config_tracker_IOU.yml
ll-config-file=/opt/nvidia/deepstream/deepstream/samples/configs/deepstream-app/config_tracker_NvDCF_perf.yml
# ll-config-file=/opt/nvidia/deepstream/deepstream/samples/configs/deepstream-app/config_tracker_NvDCF_accuracy.yml
# ll-config-file=/opt/nvidia/deepstream/deepstream/samples/configs/deepstream-app/config_tracker_DeepSORT.yml
gpu-id=0
enable-batch-process=1
enable-past-frame=1
display-tracking-id=1
[secondary-gie0]
enable=1
model-engine-file=resnet_lpd/lprnet_deploy-40-ver3.etlt_b4_gpu0_fp16.engine
#(0): nvinfer; (1): nvinferserver
plugin-type=0
gpu-id=0
batch-size=4
gie-unique-id=2
operate-on-gie-id=1
operate-on-class-ids=0;
config-file=lpr_config_sgie_id.txt
#config-file=triton/config_infer_secondary_vehiclemakenet.txt
#config-file=triton-grpc/config_infer_secondary_vehiclemakenet.txt
[tests]
file-loop=1
[primary-gie] gie-unique-id=1 and [secondary-gie0] gie-unique-id=2
is it because the gie-unique-id “deepstream_app_source1_trafficcamnet_lpd.txt” is overriding the config “lpd_id_config.txt”, and “lpr_config_sgie_id.txt” ?
I try to change gie-unique-id “lpd_id_config.txt”, and “lpr_config_sgie_id.txt” similar to “deepstream_app_source1_trafficcamnet_lpd.txt” and run it on python but the error is come up like this
open dictionary file failed.
0:00:22.495235700 8116 0x882fa80 ERROR nvinfer gstnvinfer.cpp:632:gst_nvinfer_logger:<secondary-nvinference-engine> NvDsInferContext[UID 3]: Error in NvDsInferContextImpl::fillClassificationOutput() <nvdsinfer_context_impl_output_parsing.cpp:804> [UID = 3]: Failed to parse classification attributes using custom parse function
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Aborted (core dumped)
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
Yes. The app’s config will override the elements’ configuration.