jhb86253817 / PIPNet

Efficient facial landmark detector
MIT License
412 stars 82 forks source link

About LaPa preprocess.py part #41

Closed AlptugCakici closed 1 year ago

AlptugCakici commented 1 year ago

Hello, I was working on the LaPa dataset part of your landmark detection model. You shared the pretrained model of LaPa dataset but preprocess part is empty which is important for training. I know that preprocess is cropping the faces from dataset images and transforming them into 256x256 size. However, LaPa dataset does not contain face bounding coordinates unlike other datasets. How did you train your model without cropping images? Or did you manually select the face box coordinates?

jhb86253817 commented 1 year ago

For Lapa, I cropped faces by first locating the minimum enclosing rectangle of the landmarks, then scale the rectangle by 1.2x for cropping.

AlptugCakici commented 1 year ago

Thanks for the information, i appreciate your hard work.