Spaces:
Sleeping
Sleeping
change threshold
Browse files
app.py
CHANGED
@@ -72,7 +72,7 @@ def process_images(image1, image2):
|
|
72 |
embedding1 = l2_normalize(embedding1)
|
73 |
embedding2 = l2_normalize(embedding2)
|
74 |
|
75 |
-
distance, is_match = compare_faces(embedding1, embedding2, threshold=0.
|
76 |
|
77 |
# Calculate confidence
|
78 |
confidence = max(0.0, 1.0 - distance / 1.0) # Ensure confidence is between 0 and 1
|
|
|
72 |
embedding1 = l2_normalize(embedding1)
|
73 |
embedding2 = l2_normalize(embedding2)
|
74 |
|
75 |
+
distance, is_match = compare_faces(embedding1, embedding2, threshold=0.2)
|
76 |
|
77 |
# Calculate confidence
|
78 |
confidence = max(0.0, 1.0 - distance / 1.0) # Ensure confidence is between 0 and 1
|