LFWCFP_FFCFP_FPAgeDBCALFWCPLFWVggface2_FP99.7899.6998.1497.5395.8792.4595.22
https://github.com/ZhaoJ9014/face.evoLVe.PyTorch
测试代码:
from PIL import Image import time face_detect=Face_detect() # img = Image.open('d:/guo.jpg') # modify the image path to yours img = cv2.imread('d:/guo.jpg') # modify the image path to yours img=cv2.cvtColor(img, cv2.COLOR_BGR2RGB) #cpu需要570ms #gpu 需要256ms for i in range(10): start=time.time() bounding_boxes, landmarks = face_detect.detect_faces(img) # detect bboxes and landmarks for all faces in the image print('detect time',time.time()-start) img=show_results(img, bounding_boxes, landmarks) # visualize the results img = cv2.cvtColor(img, cv2.COLOR_RGB2BGR) cv2.imshow('1',img) cv2.waitKeyEx()
