DeepAlignmentNetwork icon indicating copy to clipboard operation
DeepAlignmentNetwork copied to clipboard

about CropResizeRotate

Open xiaomingdaren123 opened this issue 6 years ago • 4 comments

hi,MarekKowalski ,In the CropResizeRotate,I don't understand the role of destShape.Why is this step to calculate the transformation from initshape to destshape? In the network,the initLandmarks(S0) is the destshape?thanks

xiaomingdaren123 avatar Sep 12 '18 01:09 xiaomingdaren123

Hi, The destShape is the shape you want your input shape to be warped to (using a similarity transform).

In the network destShape is initLandmarks, which is a frontal face shape located in the middle of a 112x112 image. All input images are warped so that their initial landmarks are aligned with those of initLandmarks.

Does that answer your question?

Thanks,

Marek

MarekKowalski avatar Sep 14 '18 17:09 MarekKowalski

Thank you very much for your answer.

xiaomingdaren123 avatar Sep 17 '18 02:09 xiaomingdaren123

Hello @MarekKowalski , Thank you very much sharing the code of your work. Could you explain a little about the role of frameFraction in ImageServer? Is that the true imgSize of the real application of your dan model?

Young Thank you very much

gmlyytt-YANG avatar Dec 23 '18 08:12 gmlyytt-YANG

Hi Young,

frameFraction refers to the fraction of the input image that will be the "frame", which is the area outside of the landamarks of initLandmarks. If you set this value to be high, the face will take a smaller part of the image and vice versa.

I'm not sure what you mean by true imgSize :(

Thanks,

Marek

MarekKowalski avatar Dec 31 '18 11:12 MarekKowalski