IP_LAP icon indicating copy to clipboard operation
IP_LAP copied to clipboard

The face cannot be detected when I infer my own input video.

Open AndrewDing616 opened this issue 2 years ago • 2 comments

Thank for your great work! But when I run the inference_single.py using my own video, the code cannot work. It show:

Traceback (most recent call last): File "inference_single.py", line 509, in <module> full = merge_face_contour_only(original_background, T_input_frame[2], T_ori_face_coordinates[2][1],fa) #(H,W,3) File "inference_single.py", line 145, in merge_face_contour_only preds = fa.get_landmarks(input_img)[0] # 68x2 TypeError: 'NoneType' object is not subscriptable

So, I wonder how to solve the problem, tks again!

AndrewDing616 avatar Aug 09 '23 02:08 AndrewDing616

I think having a more zoomed-in video on the face might work. IP LAP uses MediaPipe's face landmark detection and this requires the face to be zoomed-in to work.

yaserabdelaziz avatar Sep 01 '23 12:09 yaserabdelaziz

Thanks for your reply!

AndrewDing616 avatar Sep 11 '23 13:09 AndrewDing616