mk-minchul / AdaFace

MIT License
618 stars 117 forks source link

How do I change mtcnn to something else, but keep aligment? #56

Open martinenkoEduard opened 2 years ago

martinenkoEduard commented 2 years ago

How do I change mtcnn to something else, but keep aligment?

mk-minchul commented 1 year ago

Hi martinenkoEduard. The starting point can be comparing the code from other aligners such as https://github.com/serengil/retinaface with the MTCNN code. You should check whether

  1. the new aligner is using the same landmark definitions
  2. the detected landmarks are warped to the same reference point as defined in https://github.com/mk-minchul/AdaFace/blob/76f4ce203a9f768cf6c118c02124ddbae3c3dce9/face_alignment/mtcnn_pytorch/src/align_trans.py#L15.