Skip to content
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

Performance is super slow for me #7

Closed
eannkst opened this issue Mar 1, 2021 · 3 comments
Closed

Performance is super slow for me #7

eannkst opened this issue Mar 1, 2021 · 3 comments

Comments

@eannkst
Copy link

eannkst commented Mar 1, 2021

Hi, i tried your repository and setting it up worked very well :) also face detection is great!
But i have a problem, the performance is super slow for me, it is far away from real-time estimation ...
Do you have an idea why i have this problem ? I'm using Intel i7with 32 GB Ram and normal webcam in 720p.
Thanks :)

@by-sabbir
Copy link
Owner

by-sabbir commented Mar 1, 2021

Hello, great to know that you like the project and it works for your need. I can think of one overhead that can cause slower fps, face detection. Currently, it's using dlib cnn face detector. If you need faster fps you can use a GPU to run inference or you can use hog based detector tweaking

faces = face_recognition.face_locations(img, model="cnn")

to,
faces = face_recognition.face_locations(img, model="hog")
hope this helps.

@by-sabbir
Copy link
Owner

closing for inactivity

@shubham-shahh
Copy link
Contributor

We should pin this issue so that others can also apply this solution. I am also working on some less computationally heavy face detection model.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants