Open Chocobi-1129 opened 1 year ago
It seems some of your frame do NOT contains a human face
Thanks for your reply~
Its sounds resonable why it fails, though I'm pretty sure that the entire video should contain a face.(perhaps the face dection algorithm just cant detect it) I'll also think about if there's solution for this detection issue.
However when i try another reference video, another error occurs as below:
(sadtalker) hsiang1129@test:~/SadTalker$ python inference.py --driven_audio ./input/audio/a1.mp4 --source_image ./input/video/v1.mp4 --still --preprocess full --enhance gfpgan --ref_pose ./input/video/input_v17.mp4
using safetensor as default
3DMM Extraction for source image
landmark Det:: 100%|█████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 36.34it/s]
3DMM Extraction In Video:: 100%|████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 147.29it/s]
3DMM Extraction for the reference video providing pose
landmark Det:: 54%|███████████████████████████████████████████▍ | 267/498 [00:06<00:05, 41.29it/s]
Traceback (most recent call last):
File "inference.py", line 144, in <module>
main(args)
File "inference.py", line 69, in main
ref_pose_coeff_path, _, _ = preprocess_model.generate(ref_pose, ref_pose_frame_dir, args.preprocess, source_image_flag=False)
File "/home/hsiang1129/SadTalker/src/utils/preprocess.py", line 124, in generate
lm = self.propress.predictor.extract_keypoint(frames_pil, landmarks_path)
File "/home/hsiang1129/SadTalker/src/face3d/extract_kp_videos_safe.py", line 39, in extract_keypoint
current_kp = self.extract_keypoint(image)
File "/home/hsiang1129/SadTalker/src/face3d/extract_kp_videos_safe.py", line 57, in extract_keypoint
bboxes = bboxes[0]
IndexError: index 0 is out of bounds for axis 0 with size 0
Seems like the same with #127.Does it also related to face detection issue?
Thanks again and really appreciate your help.
yes, it seems the frame of 134/267 can not be detected by the algorithm.
got it! Thanks for your great work!
Error appears when i tried to use reference video(.mp4 file), same error also in sd webui. Here's the log:
Have done some research and seems like the issue may relate to file format, but not quite sure about it. My opencv version is 4.7.0.72