This commit is contained in:
serengil 2020-12-13 20:43:29 +03:00
parent cdf86701e3
commit 863019f117

View File

@ -10,9 +10,14 @@ from deepface.commons import functions
import json import json
import time import time
#-----------------------------------------
import tensorflow as tf import tensorflow as tf
import logging tf_version = int(tf.__version__.split(".")[0])
tf.get_logger().setLevel(logging.ERROR)
if tf_version == 2:
import logging
tf.get_logger().setLevel(logging.ERROR)
#----------------------------------------- #-----------------------------------------
@ -144,8 +149,7 @@ dataset = [
] ]
models = ['VGG-Face', 'Facenet', 'OpenFace', 'DeepFace', 'DeepID', 'Dlib'] models = ['VGG-Face', 'Facenet', 'OpenFace', 'DeepFace', 'DeepID', 'Dlib']
#metrics = ['cosine', 'euclidean', 'euclidean_l2'] metrics = ['cosine', 'euclidean', 'euclidean_l2']
metrics = ['cosine']
passed_tests = 0; test_cases = 0 passed_tests = 0; test_cases = 0