Closed 0fine0 closed 3 years ago
Does this happen for any image or just for that particular one? Could you run the examples/detect_landmarks_in_image.py using the provided assets or simply run please the test/ using pytest?
You can also try upgrading you numpy and numba version. Alternatively, as a dirty fix you can clone the repo and comment out all instance of "@jit(nopython=True)" that you found in the code, installing afterwards from source.
I have solved this problem. The error seems to be induced by a old version numba package. And although I tried to update my numpy, numba and torch packages, the jupyter notebook didn't update the environment until the restart.
For face-alignment 1.3.4, I think numba 0.51.2, numpy 1.19.5, torch 1.8.1 can work.
Thank you for your help!
Hi, when I try to run the demo of 2D facial landmarks detection,
my code:
import face_alignment from skimage import io
fa = face_alignment.FaceAlignment(face_alignment.LandmarksType._2D, flip_input=False)
input = io.imread('C:/Users/csjddu/Desktop/images/1.jpg') preds = fa.get_landmarks(input)
I met the error as below: TypingError Traceback (most recent call last)