distance as float instead of numpy float

This commit is contained in:
Sefik Ilkin Serengil 2024-03-02 20:43:47 +00:00
parent 29ffce8594
commit 20f916c024

View File

@ -156,7 +156,7 @@ def verify(
# find the face pair with minimum distance
threshold = find_threshold(model_name, distance_metric)
distance = min(distances) # best distance
distance = float(min(distances)) # best distance
facial_areas = regions[np.argmin(distances)]
toc = time.time()