yolov5-face icon indicating copy to clipboard operation
yolov5-face copied to clipboard

where are the landmarks for the eyes, nose, & mouth?

Open yvielcastillejos opened this issue 3 years ago • 1 comments

so do your models output the landmark coordinates (i.e. eyes, mouth, nose coordinates) or do they just put a bounding box on the faces. When I tried your inference script on one of your pretrained models, it just outputted the bounding box of the face with the confidence score. How do you get the landmarks as described in your paper and as shown here https://github.com/deepcam-cn/yolov5-face/blob/master/data/images/result.jpg?

I look forward to your response, thank you.

yvielcastillejos avatar Aug 25 '21 07:08 yvielcastillejos

I'm new here, so I can't give you more technical information, but...

You can use detect_face.py as reference. This script generates that image you want.

In these lines below the little dots are drawn. Comparing the colors in the code and in the image, you can infer which landmark is which.

https://github.com/deepcam-cn/yolov5-face/blob/d3505409a6e70f8f878b18686265cf18e04deea6/detect_face.py#L59-L64

losoliveirasilva avatar Jun 09 '22 15:06 losoliveirasilva