From c9e24e37d9df7bb99cee636fb2abe1e56a6ee43e Mon Sep 17 00:00:00 2001 From: Sayafdine Said Date: Sun, 25 Jun 2023 14:17:39 +0200 Subject: [PATCH] fix: convert paths to string --- howdy/src/cli/test.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/howdy/src/cli/test.py b/howdy/src/cli/test.py index b7c02a9..fff2e91 100644 --- a/howdy/src/cli/test.py +++ b/howdy/src/cli/test.py @@ -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