mirror of
https://github.com/serengil/deepface.git
synced 2025-06-08 20:45:22 +00:00
distance as float instead of numpy float
This commit is contained in:
parent
29ffce8594
commit
20f916c024
@ -156,7 +156,7 @@ def verify(
|
|||||||
|
|
||||||
# find the face pair with minimum distance
|
# find the face pair with minimum distance
|
||||||
threshold = find_threshold(model_name, distance_metric)
|
threshold = find_threshold(model_name, distance_metric)
|
||||||
distance = min(distances) # best distance
|
distance = float(min(distances)) # best distance
|
||||||
facial_areas = regions[np.argmin(distances)]
|
facial_areas = regions[np.argmin(distances)]
|
||||||
|
|
||||||
toc = time.time()
|
toc = time.time()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user