-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
High CPU usage with C++/Python sample, even though discrete GPU + TensorFlow is present #268
Comments
Hi, |
Hi, thanks for the response. I used OpenCV in my example code, based on official docs. However, as I pointed out, I checked CPU usage caused by OpenCV and it was ~80% CPU, so of course it should be subtracted from ~340% reported by I installed TensorFlow 2.6 and it indeed helped. CPU usage dropped significantly (most of it is now used by OpenCV) and GPU memory usage increased (as expected, ~2GB vRAM allocated by the process). So in case of RTX 3070 performance issue is no longer the case. However, I also have PC with GTX 1050 Ti ( Here is the output from
Hardware info:
|
Could you please share the full logs? |
Sure: Thanks |
Hi, any updates on the issue? |
... but you have a 4GB GPU, maybe that's too small. The 10% config was chosen for a 8GB GPU. Try adding to your JSON config:
|
Hi, I noticed that CPU usage is very high, even though I have discrete GPU and TensorFlow installed.
Here is all relevant information about my hardware:
With TensorFlow 1.14
I tried to use sample provided in the repository (both Python and C++), modified to see how the SDK works with video file (running
UltAlprSdkEngine::process
on each frame).Example code is available here. Basically, it's sample
recognizer.cxx
from this repository, but simplified (for readability) and modified to enable recognizing license plates from video. I explained how to run this code at the end of this description.Here are logs from first ~20 seconds of run.
nvidia-smi
output when running the demo:As you can see,
recognizer_video
is visible among GPU-associated processes.Nevertheless, CPU usage is still high:
Of course I checked what is the resource usage caused only by reading and displaying frame with
OpenCV
and it's around ~80% CPU, so there is still a lot usage caused by the SDK.With TensorFlow 2.11
Based on information in #265 I installed TensorFlow 2 (2.11 is the latest version). I did the "trick" with satisfying
ldd libultimate_alpr-sdk.so
described here, but unfortunately I encountered runtime crash caused by:Full log is available here
=====================================================
How to run example code
OpenCV
. I builtmaster
from the official repository..cxx
fileVideo file I used is available here.
The text was updated successfully, but these errors were encountered: