Skip to content

Commit

Permalink
issue 197
Browse files Browse the repository at this point in the history
  • Loading branch information
serengil committed Mar 9, 2021
1 parent 0158ae2 commit fee0241
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions deepface/commons/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit fee0241

Please sign in to comment.