mirror of
https://github.com/serengil/deepface.git
synced 2025-06-06 11:35:21 +00:00
fixed for issue 470
This commit is contained in:
parent
fb68d4a8f8
commit
e28d900a88
@ -13,7 +13,10 @@ model = VGGFace.loadModel()
|
||||
#model = OpenFace.loadModel()
|
||||
#model = FbDeepFace.loadModel()
|
||||
|
||||
input_shape = model.layers[0].input_shape[1:3]
|
||||
try:
|
||||
input_shape = model.layers[0].input_shape[1:3]
|
||||
except: #issue 470
|
||||
input_shape = model.layers[0].input_shape[0][1:3]
|
||||
|
||||
print("model input shape: ", model.layers[0].input_shape[1:])
|
||||
print("model output shape: ", model.layers[-1].input_shape[-1])
|
||||
|
Loading…
x
Reference in New Issue
Block a user