mirror of
https://github.com/serengil/deepface.git
synced 2025-06-07 12:05:22 +00:00
fix after PR
This commit is contained in:
parent
8332a1d9d1
commit
7df474934c
@ -207,10 +207,7 @@ def verify(img1_path, img2_path=''
|
||||
|
||||
#------------------------------
|
||||
#face recognition models have different size of inputs
|
||||
input_shape = model.layers[0].input_shape
|
||||
|
||||
if type(input_shape) is list:
|
||||
input_shape = input_shape[0][1:3]
|
||||
input_shape = model.layers[0].input_shape[1:3]
|
||||
|
||||
input_shape_x = input_shape[0]
|
||||
input_shape_y = input_shape[1]
|
||||
|
@ -375,7 +375,7 @@ def analysis(db_path, model_name, distance_metric, enable_face_analysis = True):
|
||||
employee_name = candidate['employee']
|
||||
best_distance = candidate['distance']
|
||||
|
||||
#print(candidate[['employee', 'distance']])
|
||||
p#rint(candidate[['employee', 'distance']].values)
|
||||
|
||||
#if True:
|
||||
if best_distance <= threshold:
|
||||
|
Loading…
x
Reference in New Issue
Block a user