Skip to content

UniFace: A Unified Face Analysis Library for Python | Detection, alignment, landmarks, face-mesh, recognition, parsing, gaze, attributes and anti-spoofing under one API.

fix: Typing error

yakhyo282737e0e909
diff --git a/uniface/face_utils.py b/uniface/face_utils.py
index 55a3e76..3157d9f 100644
--- a/uniface/face_utils.py
+++ b/uniface/face_utils.py
@@ -95,7 +95,7 @@ def compute_similarity(feat1: np.ndarray, feat2: np.ndarray, normalized: bool=Fa
"""
feat1 = feat1.ravel()
feat2 = feat2.ravel()
- if normalize:
+ if normalized:
return np.dot(feat1, feat2)
else:
return np.dot(feat1, feat2) / (np.linalg.norm(feat1) * np.linalg.norm(feat2) + 1e-5)