From 7df474934c980595b0132f3a8e2cdff6321fb68b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=9Eefik=20Serangil?= Date: Thu, 18 Jun 2020 14:54:26 +0300 Subject: [PATCH] fix after PR --- deepface/DeepFace.py | 5 +---- deepface/commons/realtime.py | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) 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: