Closed esterivera closed 4 years ago
Hello @esterivera, to answer your first question, I think adding support for 3D faces would not be a difficult addition to the library, I might give it a try this coming weekend!
To answer your specific question: From your code, I can see that your code exactly matches the demo. I think it is possible that I did not account for edge cases like:
If you do not mind sharing that specific video you tried (or at least that first frame), it can help me troubleshoot this issue and possibly fix it.
I am glad you find my contribution useful and I hope we can work together on this issue to help make it more stable and reliable.
Kind regards.
Hi @imadtoubal , thank you very much, Im looking forward for the 3D batch processing, it would really help me.
Regarding the BlazeFace issue, here is the problematic video:
It is vertical oriented; I tested with one horizontal oriented video, and it worked, so maybe that is the source of the issue.
Thank you in advance, regards
@esterivera Could you try again with your video, the issue should be patched. I am currently looking into batch-processing for 3D landmarks in BlazeFace.
@imadtoubal I tested, and it worked perfectly! Thank you for your quick response
The batch 3D processing is working like a charm. Thank you!!
That's awesome, good luck with your project!
Hi @imadtoubal ! Thank you for the amazing code; I would like to know, if processing 3D landmarks for a complete batch is on the roadmap of the library.
Aditionally, I have a problem when I try to run the 2D landmark detector with the BlazeFace detector. I use the same code as in the notebook, with a different video:
fa = face_alignment.FaceAlignment(face_alignment.LandmarksType._2D, device='cpu', face_detector='blazeface')
t_start = time.time() preds = fa.get_landmarks_from_image(frames[0])
`--------------------------------------------------------------------------- AssertionError Traceback (most recent call last)