face-alignment icon indicating copy to clipboard operation
face-alignment copied to clipboard

Does this project support 4k facial images ?

Open SakuraMaiii opened this issue 2 years ago • 1 comments

I feel like I haven't accurately get the face box and landmarks。Does the project have a limited maximum resolution ?Looking forward to your reply sir

SakuraMaiii avatar Mar 09 '24 19:03 SakuraMaiii

i have experienced this issue as well when using 4K images. It works if I downscale the resolution to 50% when using the default face detector (which is SFD). However, it works fine at full resolution when using the 'blazeface' front camera detector.

to use 'blazeface' face detector simply add face_detector='blazeface' when init:

fa = face_alignment.FaceAlignment(face_alignment.LandmarksType.TWO_D, flip_input=False, face_detector='blazeface')

marcdewa avatar Aug 06 '24 08:08 marcdewa