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

how to do mtcnn crop before running test.py #26

Closed
zhenglaizhang opened this issue Jan 31, 2018 · 2 comments
Closed

how to do mtcnn crop before running test.py #26

zhenglaizhang opened this issue Jan 31, 2018 · 2 comments

Comments

@zhenglaizhang
Copy link

zhenglaizhang commented Jan 31, 2018

per the code in deploy/test.py:

parser.add_argument('--image-size', default='112,112', help='')

it seems that the input should be cropped as square with width as 112, however the mtcnn output may be rectangle, I thought the detailed steps to run test.py are as below:

  1. use mtcnn to crop the face images with margin 44
  2. resize cropped face to 112x112
  3. run test.py and the script will do face alignment with mtcnn

I am curious if my understanding is wrong, I thought the alignment before resizing should be more reliable?

@nttstar
Copy link
Collaborator

nttstar commented Jan 31, 2018

There's no limit of input image size, 112,112 is the data shape config of recognition network.

@zhenglaizhang
Copy link
Author

sounds great, thanks for the quick response!

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