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:
parent
73adb06f45
commit
c9e24e37d9
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue