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.94k stars 1.33k forks source link

No module named 'face_alignment.detection.blazeface' #192

Closed ghost closed 4 years ago

ghost commented 4 years ago

Hello,

On line, fa = face_alignment.FaceAlignment(face_alignment.LandmarksType._2D, device='cpu', face_detector='blazeface') It is following the following error: ModuleNotFoundError: No module named 'face_alignment.detection.blazeface'

Also, when testing on batches on s3fd, it shows the following error, AttributeError: 'FaceAlignment' object has no attribute 'get_landmarks_from_batch'

Works fine on single images on s3fd.

1adrianb commented 4 years ago

Hi @nira100 the blazeface was added recently by a contributor and its not yet in the pip or conda packages. I will push a new version later one this week. Can you install it from source in the meantime please?