hasnanmr commited on
Commit
6376131
·
1 Parent(s): 88f17aa

change threshold

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.1)
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