Spaces:
Sleeping
Sleeping
fixing metric verification
Browse files
app.py
CHANGED
@@ -85,7 +85,6 @@ def process_images(image1, image2):
|
|
85 |
embedding2 = embedding2.flatten()
|
86 |
|
87 |
euclidean_dist = euclidean_distance(embedding1, embedding2)
|
88 |
-
cosine_sim = cosine_similarity(embedding1, embedding2)
|
89 |
is_match = euclidean_dist < 0.3
|
90 |
|
91 |
# Calculate confidence
|
|
|
85 |
embedding2 = embedding2.flatten()
|
86 |
|
87 |
euclidean_dist = euclidean_distance(embedding1, embedding2)
|
|
|
88 |
is_match = euclidean_dist < 0.3
|
89 |
|
90 |
# Calculate confidence
|