From fee02411b3efed34a36aba1a4727132a6d633d9d Mon Sep 17 00:00:00 2001 From: Sefik Serengil Date: Tue, 9 Mar 2021 22:16:34 +0300 Subject: [PATCH] issue 197 --- deepface/commons/functions.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/deepface/commons/functions.py b/deepface/commons/functions.py index 7c872aa..f935c95 100644 --- a/deepface/commons/functions.py +++ b/deepface/commons/functions.py @@ -486,6 +486,9 @@ def find_input_shape(model): input_shape = input_shape[0][1:3] else: input_shape = input_shape[1:3] + + if type(input_shape) == list: #issue 197: some people got array here instead of tuple + input_shape = tuple(input_shape) return input_shape