verboss off for just tf models

This commit is contained in:
Sefik Ilkin Serengil 2022-10-23 17:55:10 +01:00
parent bbc3c6d59b
commit 51d10000c7

View File

@ -765,7 +765,11 @@ def represent(img_path, model_name = 'VGG-Face', model = None, enforce_detection
#---------------------------------
#represent
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