mirror of
https://github.com/serengil/deepface.git
synced 2025-06-07 12:05:22 +00:00
old version of model.predict stored
This commit is contained in:
parent
68eaafc614
commit
8eb8d96a54
@ -695,7 +695,8 @@ def represent(
|
|||||||
|
|
||||||
# represent
|
# represent
|
||||||
if "keras" in str(type(model)):
|
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()
|
embedding = model(img, training=False).numpy()[0].tolist()
|
||||||
else:
|
else:
|
||||||
# SFace and Dlib are not keras models and no verbose arguments
|
# SFace and Dlib are not keras models and no verbose arguments
|
||||||
|
Loading…
x
Reference in New Issue
Block a user