-
Notifications
You must be signed in to change notification settings - Fork 124
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
How do I change mtcnn to retinaface or other face detection model? How do I pass face aligment dots? #96
Comments
Hi @martinenkoEduard, I used something that comment @mk-minchul #28 , I solved by the block of de "try: Except" into align.py file and call in there and evaluation model of retinaface or YOLO pretrained for example in prediction mode. So into align.py at get_aligned_face function just change exception code to:
you do not forget to reload the modules and import. I hope to you help you @martinenkoEduard . I have been trying to training with custom data an I found #75. |
Btw - do you need to retrain model if you changed a face detector? I haven't found solution for this bug, yet.. |
If you want to get better performance every time is necessary a fine tuning, but you can use a face detector is enough to get a nice results. @martinenkoEduard |
Another simple solution you can try is using @insightface model. There they have a face_align under utils which uses ArcFace (together with SCRFD-10g) to align the facial features properly. However, it will be computationally expensive. |
What about yolo5 trained on faces? |
I'd suggest sticking to MTCNN or TinaFace rather than using YOLOv5, accuracy in MTCNN is higher than YOLOv5 |
How do I change mtcnn to retinaface or other face detection model? How do I pass face alignment dots?
Can someone share a working example?
The text was updated successfully, but these errors were encountered: