From d37e8930fcfac4055fc3b292bedb17807704ffd3 Mon Sep 17 00:00:00 2001 From: Sefik Ilkin Serengil Date: Thu, 11 Feb 2021 11:58:22 +0300 Subject: [PATCH] issue 185 --- deepface/DeepFace.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deepface/DeepFace.py b/deepface/DeepFace.py index c6ac929..10b1865 100644 --- a/deepface/DeepFace.py +++ b/deepface/DeepFace.py @@ -116,6 +116,7 @@ def verify(img1_path, img2_path = '', model_name = 'VGG-Face', distance_metric = else: if model_name == 'Ensemble': Boosting.validate_model(model) + models = model.copy() else: models = {} models[model_name] = model @@ -137,7 +138,7 @@ def verify(img1_path, img2_path = '', model_name = 'VGG-Face', distance_metric = ensemble_features = [] for i in model_names: - custom_model = model[i] + custom_model = models[i] #decide input shape input_shape = functions.find_input_shape(custom_model)