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

do_learn_shape And do_learn_variation functions #9

Open
7color94 opened this issue Apr 16, 2017 · 4 comments
Open

do_learn_shape And do_learn_variation functions #9

7color94 opened this issue Apr 16, 2017 · 4 comments

Comments

@7color94
Copy link

Hi, tntrung. Thanks for your implementation.
Actually, I wonder why we need do_learn_shape and do_learn_variation functions. And after we get ShapeModel and DataVariation, what do we do with it?
Sorry for my silly question.

@tntrung
Copy link
Owner

tntrung commented Apr 16, 2017

Hi, as mentioned in the original paper of SDM, the mean and variance of shape, which should be learned from training data, is helpful to generating the initial shapes.

@7color94
Copy link
Author

Thanks very much.
And when we calculate delta shape as GroundTruth in training phase, we project delta shape to face bbox to make it in a uniform range [0,1]. But different face images may have different scale, rotation, so do we need transform delta shape to mean shape using similarity transform, reducing the impact of scale and rotation?
Thanks to your answer and help.

@tntrung
Copy link
Owner

tntrung commented Apr 16, 2017

Yes, it may be helpful. In my implementation, I just simply scaled the detected face size into the same as the mean shape before doing regression. Alternatively, people can do pre-processing by resizing all training images of detected faces into the same scale, so that the shape normalization can be ignored.

@7color94
Copy link
Author

Thanks.

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