diff --git a/lib/face_bioassay_lib/cores/face_fuction.py b/lib/face_bioassay_lib/cores/face_fuction.py index 3f83ced0ab8cb64095b5f82f4f78b3f693b6e71c..19fc61be80b7b93ea413add879d20c91406e2c6e 100644 --- a/lib/face_bioassay_lib/cores/face_fuction.py +++ b/lib/face_bioassay_lib/cores/face_fuction.py @@ -322,7 +322,8 @@ def get_faces_batch_attribute(face_multitask_model,face_euler_model,dets,img_raw else: face_align_output = face_alignment(img_align,eyes_center[0],eyes_center[1], desiredLeftEye=(0.38, 0.40),desiredFaceWidth=112, desiredFaceHeight=None) - + if faces_message is None: + faces_message = [] faces_message.append( { "xyxy":r_bboxes[i],