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

About meanshape.npz #60

Open
ming9512love opened this issue May 9, 2021 · 7 comments
Open

About meanshape.npz #60

ming9512love opened this issue May 9, 2021 · 7 comments

Comments

@ming9512love
Copy link

HI, thanks for your code.
I opened the meanshape.npz. And all 68 landmarks in the training set should be positive numbers. I want to know why there are negative numbers in the meanshape.npz?

@MarekKowalski
Copy link
Owner

Hi,
As far as I remember the mean shape is centered on (0,0) hence some of the landmarks positions maybe negative.

Marek

@ming9512love
Copy link
Author

Thanks, (0,0) refers to the upper left corner of the picture or the center point?

@MarekKowalski
Copy link
Owner

By (0,0) here I mean that the centroid of all the landmark positions in the mean shape is (0,0), irrespective of the image.
When the landmarks are placed in the image the coordinates of the image center are added and the mean shape is scaled appropriately.

@ming9512love
Copy link
Author

thank you .
Now I am testing with testset.
Why are the images in the testset not normalized in TestSetPreparation.py?

@MarekKowalski
Copy link
Owner

I can't remember the rational behind not processing it then and there. The images are normalized during evaluation however.

@Faizan-hub
Copy link

Can i get meansape.npz?

@MarekKowalski
Copy link
Owner

The mean face shape file is in the data directory:
https://github.com/MarekKowalski/DeepAlignmentNetwork/tree/master/data

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

3 participants