mirror of
https://github.com/serengil/deepface.git
synced 2025-06-06 11:35:21 +00:00
old version of model.predict stored
This commit is contained in:
parent
68eaafc614
commit
8eb8d96a54
@ -695,7 +695,8 @@ def represent(
|
||||
|
||||
# represent
|
||||
if "keras" in str(type(model)):
|
||||
# new tf versions show progress bar and it is annoying
|
||||
# model.predict causes memory issue when it is called in a for loop
|
||||
# embedding = model.predict(img, verbose=0)[0].tolist()
|
||||
embedding = model(img, training=False).numpy()[0].tolist()
|
||||
else:
|
||||
# SFace and Dlib are not keras models and no verbose arguments
|
||||
|
Loading…
x
Reference in New Issue
Block a user