1adrianb / face-alignment

:fire: 2D and 3D Face alignment library build using pytorch
https://www.adrianbulat.com
BSD 3-Clause "New" or "Revised" License
6.89k stars 1.33k forks source link

time cost #216

Open aaferrero opened 3 years ago

aaferrero commented 3 years ago

fa = face_alignment.FaceAlignment(face_alignment.LandmarksType._2D, flip_input=False, device='cuda') fa.get_landmarks(img)

how much seconds is it cost? I get 8 seconds for 3 pictures.

1adrianb commented 3 years ago

The cost will depend on the size of your images, since the detection part will dominate the timing. A few suggestions: Try one of the 3 available face detector (see option face_detector= ), resize images where appropriate, make sure you init fa object only once.

willchris2 commented 3 years ago

I´ve read a lot about smaller models in other issues. @1adrianb i know you get asked a lot, but are the smaller models coming?

Greetings