From 286d48395db52393b3a6fcb621096c669134fe8b Mon Sep 17 00:00:00 2001 From: Sefik Serengil Date: Wed, 13 Jan 2021 22:41:17 +0300 Subject: [PATCH] issue 162, deepid find --- deepface/DeepFace.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deepface/DeepFace.py b/deepface/DeepFace.py index c9a5605..0a02cfa 100644 --- a/deepface/DeepFace.py +++ b/deepface/DeepFace.py @@ -600,10 +600,11 @@ def find(img_path, db_path, model_name ='VGG-Face', distance_metric = 'cosine', #-------------------------------- #decide input shape input_shape = functions.find_input_shape(custom_model) + input_shape_x = input_shape[0]; input_shape_y = input_shape[1] #-------------------------------- - img = functions.preprocess_face(img = img_path, target_size = input_shape + img = functions.preprocess_face(img = img_path, target_size = (input_shape_y, input_shape_x) , enforce_detection = enforce_detection , detector_backend = detector_backend)