Closed EricSyu2816 closed 3 years ago
Traceback (most recent call last):
File "main.py", line 25, in
Probably there are no recognizible faces on photo
Probably there are no recognizible faces on photo
I think so~
Use list(faces)[idx] instead of faces[idx]
@kehlerr @tisbuet Index type error is still coming while executing below command:
python main.py --src imgs/test6.jpg --dst imgs/test7.jpg --out results/output6_7_2d.jpg --correct_color --warp_2d
Error:
TypeError Traceback (most recent call last)
~\Downloads\FaceSwap\main.py in
~\Downloads\FaceSwap\face_detection.py in select_face(im, r, choose) 35 36 if len(faces) == 1 or not choose: ---> 37 idx = np.argmax([(face.right() - face.left()) * (face.bottom() - face.top()) for face in faces]) 38 #print(idx) 39 bbox = list(faces)[idx]
TypeError: Invalid index type
There is a error occour when I execute the command
python main.py --src imgs/test6.jpg --dst imgs/test7.jpg --out results/output6_7.jpg --correct_color
How can I fix it? thanks!