diff --git a/deepface/DeepFace.py b/deepface/DeepFace.py index 259bf19..aaf09f8 100644 --- a/deepface/DeepFace.py +++ b/deepface/DeepFace.py @@ -207,10 +207,7 @@ def verify(img1_path, img2_path='' #------------------------------ #face recognition models have different size of inputs - input_shape = model.layers[0].input_shape - - if type(input_shape) is list: - input_shape = input_shape[0][1:3] + input_shape = model.layers[0].input_shape[1:3] input_shape_x = input_shape[0] input_shape_y = input_shape[1] diff --git a/deepface/commons/realtime.py b/deepface/commons/realtime.py index f410e5f..7d89798 100644 --- a/deepface/commons/realtime.py +++ b/deepface/commons/realtime.py @@ -375,7 +375,7 @@ def analysis(db_path, model_name, distance_metric, enable_face_analysis = True): employee_name = candidate['employee'] best_distance = candidate['distance'] - #print(candidate[['employee', 'distance']]) + p#rint(candidate[['employee', 'distance']].values) #if True: if best_distance <= threshold: