Merge pull request #1450 from Raghucharan16/master

This commit is contained in:
Sefik Ilkin Serengil 2025-03-06 19:32:27 +00:00 committed by GitHub
commit a58b782000
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -423,7 +423,7 @@ def find_threshold(model_name: str, distance_metric: str) -> float:
"DeepFace": {"cosine": 0.23, "euclidean": 64, "euclidean_l2": 0.64},
"DeepID": {"cosine": 0.015, "euclidean": 45, "euclidean_l2": 0.17},
"GhostFaceNet": {"cosine": 0.65, "euclidean": 35.71, "euclidean_l2": 1.10},
"Buffalo_L": {"cosine": 0.65, "euclidean": 11.13, "euclidean_l2": 1.1},
"Buffalo_L": {"cosine": 0.55, "euclidean": 0.6, "euclidean_l2": 1.1},
}
threshold = thresholds.get(model_name, base_threshold).get(distance_metric, 0.4)