Skip to content

Question about scale s in POS(xp, x) in preprocess.py #215

Description

@BeauGeogeo

Hi and first of all, thank you for the amazing work !

I have a little question about image preprocessing when you perform face alignment.

I have a hard time understanding what s really stands for. I assume it is related to some scaling. But I don't see how we get this from the least square equations. I know that R1 are the coefficients before x y z that will scale the coordinates and are related to the final x-coordinate we find, and R2 is the same for y-coordinate.

But how taking ( norm2(R1) + norm2(R2) ) / 2 is giving some sort of scaling s ? why does it make sense, what are intuitive and mathematical explanations behind this plz ?

Thanks a lot

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions