mirror of
https://github.com/serengil/deepface.git
synced 2025-06-07 20:15:21 +00:00
verboss off for just tf models
This commit is contained in:
parent
bbc3c6d59b
commit
51d10000c7
@ -765,7 +765,11 @@ def represent(img_path, model_name = 'VGG-Face', model = None, enforce_detection
|
|||||||
#---------------------------------
|
#---------------------------------
|
||||||
|
|
||||||
#represent
|
#represent
|
||||||
embedding = model.predict(img, verbose=0)[0].tolist()
|
if "keras" in str(type(model)):
|
||||||
|
embedding = model.predict(img, verbose=0)[0].tolist()
|
||||||
|
else:
|
||||||
|
#SFace is not a keras model and it has no verbose argument
|
||||||
|
embedding = model.predict(img)[0].tolist()
|
||||||
|
|
||||||
return embedding
|
return embedding
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user