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

Why I just can't run the test case you provided? #354

Closed AWGiaGia closed 8 months ago

AWGiaGia commented 8 months ago

I use the command you provided to install the face-alignment. And then I run the case code as below:

import face_alignment
from skimage import io

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

preds = fa.get_landmarks_from_directory('../test/assets/')

I change the director folder to my own dataset, and run this code, where it reported an error:

AttributeError: partially initialized module 'face_alignment' has no attribute 'FaceAlignment' (most likely due to a circular import). Did you mean: 'face_alignment'?

Then how should I do?

AWGiaGia commented 5 months ago

Oh, I am bummed! I should not have named the file “face_alignment”, which conflicts with the library's name