DFGC_Detection icon indicating copy to clipboard operation
DFGC_Detection copied to clipboard

IndexError: index 0 is out of bounds for axis 0 with size 0

Open ningerlove opened this issue 2 years ago • 1 comments

File "extract_video_celeb_df_v2.py", line 168, in main() File "extract_video_celeb_df_v2.py", line 132, in main face_images, face_boxes, face_index = extract_video(real_video_path, model, scale=scale) File "extract_video_celeb_df_v2.py", line 57, in extract_video method="probability") File "/usr/local/lib/python3.6/dist-packages/facenet_pytorch/models/mtcnn.py", line 436, in select_boxes box = boxes[box_order][[0]] IndexError: index 0 is out of bounds for axis 0 with size 0 how to solve?

ningerlove avatar Mar 31 '22 05:03 ningerlove

Make sure you have the exact version of facenet-pytorch==2.5.0 It will solve the problem

samils7 avatar Apr 21 '22 02:04 samils7