Open blinkbink opened 4 years ago
9735 root 20 0 47.004g 0.011t 2.630g S 116.1 18.4 5:12.98 python3
Top is showing that the python process is only using 1 core of the available 40, which makes sense.
did you try to do " cuda-memcheck filename.py " ? i run into poor performance on my less then 50 line program and it use CPU not GPU like your case too.
Description
Running with flask, i have GPU, dlib installed on GPU : dlib.DLIB_USE_CUDA the response : TRUE
running this code on flask : if len(face_recognition.face_locations(img, model="cnn")) == 0:
then check with nvidia-smi :
i try hit the flask to run face detection, 3 times with same time, got hight process on CPU, i see with command "top" :
why this happen ? the process use cpu, not all in GPU ? and the process to hard on cpu, 3 times got percentage up to 100%, any clue ?
running command : cat /proc/cpuinfo | grep processor | wc -l 40
then spec of my cpu :