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

Why there is no alignment of the faces found? #188

Open
Edremelech opened this issue Jan 4, 2022 · 1 comment
Open

Why there is no alignment of the faces found? #188

Edremelech opened this issue Jan 4, 2022 · 1 comment

Comments

@Edremelech
Copy link

The sample notebook infer.ipynb implies that mtcnn() returns the aligned images (x_aligned), but it doesn't! I've tested it on some non-aligned faces, and the faces weren't rotated (rotation is described here: https://sefiks.com/2020/09/09/deep-face-detection-with-mtcnn-in-python).

What's the sense in the landmarks if you don't align the image? And why mtcnn() doesn't return the landmarks if you want to leave the rotation to the user?

@gregworks
Copy link

I'm guessing this is because 1 method for cropping/alignment shown in the paper doesn't do alignment at all, but simply crops the area where a face is detected and feeds that to resnet portion of the model:

Our model is evaluated in two modes:
  1. Fixed center crop of the LFW provided thumbnail.
  2. A proprietary face detector (similar to Picasa [3]) is run on the provided LFW thumbnails. If it fails to align the face (this happens for two images), the LFW alignment is used.

Figure 6 gives an overview of all failure cases. It shows false accepts on the top as well as false rejects at the bottom. We achieve a classification accuracy of 98.87%±0.15 when using the fixed center crop described in (1) and the record breaking 99.63%±0.09 standard error of the mean when using the extra face alignment (2)

Paper: https://arxiv.org/pdf/1503.03832.pdf

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

2 participants