DeepAlignmentNetwork icon indicating copy to clipboard operation
DeepAlignmentNetwork copied to clipboard

About meanshape.npz

Open ming9512love opened this issue 4 years ago • 7 comments

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?

ming9512love avatar May 09 '21 18:05 ming9512love

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

Marek

MarekKowalski avatar May 23 '21 18:05 MarekKowalski

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

ming9512love avatar May 23 '21 18:05 ming9512love

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.

MarekKowalski avatar May 23 '21 18:05 MarekKowalski

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

ming9512love avatar Jun 11 '21 20:06 ming9512love

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

MarekKowalski avatar Jun 13 '21 15:06 MarekKowalski

Can i get meansape.npz?

Faizan-hub avatar Oct 28 '22 18:10 Faizan-hub

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

MarekKowalski avatar Nov 15 '22 13:11 MarekKowalski