Closed kyuhyong closed 3 years ago
it actually shows that you already allocate gpu memory
5536MiB / 5934MiB
However, this is not enough for analyze tasks. That's why, I will not recommend you to use gpu with low memory.
BTW, stream function does this with a single line of code. Why do you prefer to code your own implementation?
Hello,
This little piece of code will open a webcam device and stream image to deepface. When run with tensorflow 2.2.0 it shows about 2.3 frames per seconds
Then I realized it is not utilizing my gpu installed (RTX2060) so I removed deepface and pip installed tensorflow-gpu==2.5.0 I selected 2.5.0 because it is the latest one supporting CUDA-11.4 I installed. I did check import tensorflow as tf shows
Successfully opened dynamic library libcudart.so.11.0
then print(tf.test.gpu_device_name()) showsAfter reinstalling deepface, I run the code again however I am still getting FPS around 2.5 which is obviously not much of improvements.
I also checked nvidia-smi shows over 60% usage as below
What am I doing wrong here? I appreciate all your hard work!