0
0
Fork 0
mirror of https://github.com/boltgolt/howdy.git synced 2024-09-12 09:41:18 +02:00

fix: convert paths to string

This commit is contained in:
Sayafdine Said 2023-06-25 14:17:39 +02:00
parent 73adb06f45
commit c9e24e37d9
No known key found for this signature in database
GPG key ID: 7567D43648C6E2F4

View file

@ -58,13 +58,13 @@ use_cnn = config.getboolean('core', 'use_cnn', fallback=False)
if use_cnn:
face_detector = dlib.cnn_face_detection_model_v1(
paths_factory.mmod_human_face_detector_path()
str(paths_factory.mmod_human_face_detector_path())
)
else:
face_detector = dlib.get_frontal_face_detector()
pose_predictor = dlib.shape_predictor(paths_factory.shape_predictor_5_face_landmarks_path())
face_encoder = dlib.face_recognition_model_v1(paths_factory.dlib_face_recognition_resnet_model_v1_path())
pose_predictor = dlib.shape_predictor(str(paths_factory.shape_predictor_5_face_landmarks_path()))
face_encoder = dlib.face_recognition_model_v1(str(paths_factory.dlib_face_recognition_resnet_model_v1_path()))
encodings = []
models = None