• Hardware Platform (Jetson / GPU) Tesla T4
• DeepStream Version DS 5.1
• TensorRT Version 7.2.1.6
• NVIDIA GPU Driver Version (valid for GPU only) 460.73.01
Hi,
I am trying to enable the FPS of the deepstream-nvdsanalytics-test application to display in the terminal as it works in deepstream-app.
I tried the solutions provided by @bcao in the mentioned in the below posts:
8. [DS 5.0GA_All_App] Enable Perf measurement(FPS) for deepstream sample apps
If you are using deepstream-app, you can add enable-perf-measurement=1 under Application Group in the config file
If you are using other deepstream sample apps such as deepstream-test2, you can apply following patch to enable it
diff --git a/sources/apps/sample_apps/deepstream-test2/deepstream_test2_app.c b/sources/apps/sample_apps/deepstream-test2/deepstream_test2_app.c
index a2231acf535b4826adb766ed28f3aa80294c7f…
Hardware Platform (Jetson / GPU) Jetson nano 4GB
• DeepStream Version 5.1
• JetPack Version (valid for Jetson only) 4.5.1
• Issue Type( questions, new requirements, bugs) question
i want to see FPS printed on terminal for deepstream-test2 sample app
so i following this post DeepStream SDK FAQ - #13 by bcao
made following changes in deepstream_test2_app.c
here is the modified file:
/*
Copyright (c) 2018-2020, NVIDIA CORPORATION. All rights reserved.
Permission is hereby granted, free …
I have also made changes to the Makefile as specified in the above post by adding the below line
CFLAGS+= -I/opt/nvidia/deepstream/deepstream-5.1/sources/includes
CFLAGS+= -I/opt/nvidia/deepstream/deepstream-5.1/sources/apps/apps-common/includes
After applying the patch provided by @bcao , the application doesnot compile and shows the below error:
g++ -o deepstream-nvdsanalytics-test deepstream_nvdsanalytics_test.o -lgstreamer-1.0 -lgobject-2.0 -lglib-2.0 -L/opt/nvidia/deepstream/deepstream-5.1/lib/ -lnvdsgst_meta -lnvds_meta -lnvdsgst_helper -lm -L/usr/local/cuda-11.1/lib64/ -lcudart -lhiredis -lcuda -Wl,-rpath,/opt/nvidia/deepstream/deepstream-5.1/lib/
deepstream_nvdsanalytics_test.o: In function `main':
deepstream_nvdsanalytics_test.cpp:(.text+0x293c): undefined reference to `enable_perf_measurement'
collect2: error: ld returned 1 exit status
Makefile:70: recipe for target 'deepstream-nvdsanalytics-test' failed
make: *** [deepstream-nvdsanalytics-test] Error 1
I have attached my Makefile for reference
Makefile (2.4 KB)
I have also tried the same with the deepstream-test2 app and the error is the same as above.
Can anyone help ?
The “enable_perf_measurement” function is implemented in /opt/nvidia/deepstream/deepstream-5.1/sources/apps/apps-common/src/deepstream_perf.c, you need to build this file in your makefile.
Are you c/c++ developer?
Yes.
Ill try that too. I posted this here because the solutions provided in the Deepstream SDK FAQ and below link did not work and was checking if there is a patch for the same.
8. [DS 5.0GA_All_App] Enable Perf measurement(FPS) for deepstream sample apps
If you are using deepstream-app, you can add enable-perf-measurement=1 under Application Group in the config file
If you are using other deepstream sample apps such as deepstream-test2, you can apply following patch to enable it
diff --git a/sources/apps/sample_apps/deepstream-test2/deepstream_test2_app.c b/sources/apps/sample_apps/deepstream-test2/deepstream_test2_app.c
index a2231acf535b4826adb766ed28f3aa80294c7f…
Hardware Platform (Jetson / GPU) Jetson nano 4GB
• DeepStream Version 5.1
• JetPack Version (valid for Jetson only) 4.5.1
• Issue Type( questions, new requirements, bugs) question
i want to see FPS printed on terminal for deepstream-test2 sample app
so i following this post DeepStream SDK FAQ - #13 by bcao
made following changes in deepstream_test2_app.c
here is the modified file:
/*
Copyright (c) 2018-2020, NVIDIA CORPORATION. All rights reserved.
Permission is hereby granted, free …
system
Closed
January 17, 2022, 2:45pm
6
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.