Skip to content

Commit 20f916c

Browse files
committed
distance as float instead of numpy float
1 parent 29ffce8 commit 20f916c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deepface/modules/verification.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def verify(
156156

157157
# find the face pair with minimum distance
158158
threshold = find_threshold(model_name, distance_metric)
159-
distance = min(distances) # best distance
159+
distance = float(min(distances)) # best distance
160160
facial_areas = regions[np.argmin(distances)]
161161

162162
toc = time.time()

0 commit comments

Comments
 (0)