mirror of
https://github.com/serengil/deepface.git
synced 2025-06-04 02:20:06 +00:00
Update VGGFace.py
Tensorflow versions > 2.13 give error: AttributeError: The layer sequential has never been called and thus has no defined input. This is solved by replacing `model.input` by `model.layers[0].input`
This commit is contained in:
parent
80fee9bcbe
commit
045dec0f42
@ -161,6 +161,6 @@ def load_model(
|
||||
# base_model_output = Lambda(lambda x: K.l2_normalize(x, axis=1), name="norm_layer")(
|
||||
# base_model_output
|
||||
# )
|
||||
vgg_face_descriptor = Model(inputs=model.input, outputs=base_model_output)
|
||||
vgg_face_descriptor = Model(inputs=model.layers[0].input, outputs=base_model_output)
|
||||
|
||||
return vgg_face_descriptor
|
||||
|
Loading…
x
Reference in New Issue
Block a user