Open marcjasner opened 1 year ago
I'm still experiencing this issue. I have recompiled dlib and reinstalled face_recognition, but I am still seeing similar performance issues. Is there any information to be provided that might help me resolve this?
I have the same issue
I'm just trying to get facial detection and recognition working for an app that needs to detect/recognize faces as quickly as possible. I understand with GPU that this library can get up to 15fps. I am using a Jetson Nano 4gb with JetPack 4.6, dlib 19.24 (CUDA enabled), and a clean installation of face_recognition 1.3 via pip3.
I installed face_recognition via pip3 which had the following output:
I then wrote a very simple python script that looks like:
I know the first call takes a while (about 15s in this case), and subsequent calls should be faster, so that's why I did the call twice. The image "your_file.jpg" is a 500x400 jpg of 2 people standing side by side.
Unfortunately the quickest I can get the face_locations function to run is around 600ms. The output looks like: $ ./frtest.py
If I run the detection in a loop to get more samples it stays pretty consistent at ~646ms:
Am I doing something wrong? Am I misunderstanding something? I would expect facial detection should be faster than ~1.5 fps on a GPU accelerated platform, no?
I have confirmed with tegrastats that the GPU is being used, as I can see the GPU frequency to up to 99%, so I know that isn't the issue.
Any thoughts? Any help would be greatly appreciated.