mirror of
https://github.com/serengil/deepface.git
synced 2025-06-07 12:05:22 +00:00
tf2
This commit is contained in:
parent
cdf86701e3
commit
863019f117
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user