MarekKowalski/DeepAlignmentNetwork

about CropResizeRotate

xiaomingdaren123 opened this issue · 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

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

Thank you very much for your answer.

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

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