AIFSH / ComfyUI-Hallo

MIT License
264 stars 12 forks source link

IndexError: list index out of range #18

Closed Neo-Pz closed 3 months ago

Neo-Pz commented 3 months ago

Traceback (most recent call last): File "/Users/Desktop/code/vision/ComfyUI/custom_nodes/ComfyUI-Hallo/Hallo/scripts/inference.py", line 379, in inference_process(command_line_args) File "/Users/Desktop/code/vision/ComfyUI/custom_nodes/ComfyUI-Hallo/Hallo/scripts/inference.py", line 166, in inference_process source_image_lip_mask = image_processor.preprocess( File "/Users/Desktop/code/vision/ComfyUI/custom_nodes/ComfyUI-Hallo/Hallo/hallo/datasets/image_processor.py", line 124, in preprocess face = sorted(faces, key=lambda x: (x["bbox"][2] - x["bbox"][0]) * (x["bbox"][3] - x["bbox"][1]))[-1] IndexError: list index out of range

gaoxuxu110 commented 3 months ago

Traceback (most recent call last): File "/Users/Desktop/code/vision/ComfyUI/custom_nodes/ComfyUI-Hallo/Hallo/scripts/inference.py", line 379, in inference_process(command_line_args) File "/Users/Desktop/code/vision/ComfyUI/custom_nodes/ComfyUI-Hallo/Hallo/scripts/inference.py", line 166, in inference_process source_image_lip_mask = image_processor.preprocess( File "/Users/Desktop/code/vision/ComfyUI/custom_nodes/ComfyUI-Hallo/Hallo/hallo/datasets/image_processor.py", line 124, in preprocess face = sorted(faces, key=lambda x: (x["bbox"][2] - x["bbox"][0]) * (x["bbox"][3] - x["bbox"][1]))[-1] IndexError: list index out of range

Your face in the picture was not detected, try taking a different picture