Spaces:
Paused
Paused
ResearcherXman commited on
Commit ·
0add3fc
1
Parent(s): d5449b8
fix typo
Browse files197 unmodified lines198199200201201202203197 unmodified lines raise gr.Error(f"Cannot find any face in the image! Please upload another person image") face_info = sorted(face_info, key=lambda x:(x['bbox'][2]-x['bbox'][0])*x['bbox'][3]-x['bbox'][1])[-1] # only use the maximum face face_info = face_info[-1] face_emb = face_info['embedding'] face_kps = draw_kps(convert_from_cv2_to_image(face_image_cv2), face_info['kps']) app.py-1