About detecting multiple faces,Minor change on "get_input": an attribute of FaceModel in face_model.py
def get_multi_input(self, face_img):
"""
get multi-inputs/aligned
"""
ret = self.detector.detect_face(face_img, det_type=self.args.det)
if ret is None:
return None
bboxs, points = ret
if bboxs.shape[0] == 0:
return None
aligned_list = []
for b, p in zip(bboxs, points):
bbox = b[0:4]
points = p.reshape((2, 5)).T
About detecting multiple faces,Minor change on "get_input": an attribute of FaceModel in face_model.py def get_multi_input(self, face_img): """ get multi-inputs/aligned """ ret = self.detector.detect_face(face_img, det_type=self.args.det) if ret is None: return None bboxs, points = ret if bboxs.shape[0] == 0: return None aligned_list = [] for b, p in zip(bboxs, points): bbox = b[0:4] points = p.reshape((2, 5)).T
print(bbox)