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 #25

Closed
uutzinger opened this issue Jan 13, 2022 · 1 comment
Closed

Performance #25

uutzinger opened this issue Jan 13, 2022 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@uutzinger
Copy link

I assume once a face detector model is trained its difficult to adapt it to a different input tensor size.

Retinaface image scales input images to 1024...1980 size which likely is useful to detect any face in a large image.
However Retianface is also accurate when the face is obstructed by facemask.
Using your deepface repository and measuring performance for all the provided face detectors I get something like this:

Retinaface: 172-229ms works with glasses, obstruction and facemask
OpenCV: 40-50ms does not work with glasses or obstructions
SSD: 19-30ms works with glasses and obstruction, but not with facemask
MTCNN: 945-3125ms works with glasses and obstruction, but not with facemask
DLIB: 346-350ms works with glasses, but not with obstruction or facemask

As you can see retinaface is not the fastest but most reliable detector, in your series of implementations.
If there is option to use smaller input tensor or a different tensor platform, like suggested by other user (TensorRT), it would be worth the effort for real-time applications.

@serengil
Copy link
Owner

Thank you for this research results. I already know retinaface is the most robust one but it is also the slowest but your work also shows its performance with glass, mask and obstruction.

@serengil serengil added the documentation Improvements or additions to documentation label Jan 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants