diff --git a/deepface/DeepFace.py b/deepface/DeepFace.py index e1a7292bf..aafb297f5 100644 --- a/deepface/DeepFace.py +++ b/deepface/DeepFace.py @@ -345,7 +345,7 @@ def represent( results (List[Dict[str, Any]]): A list of dictionaries, each containing the following fields: - - embedding (np.array): Multidimensional vector representing facial features. + - embedding (List[float]): Multidimensional vector representing facial features. The number of dimensions varies based on the reference model (e.g., FaceNet returns 128 dimensions, VGG-Face returns 4096 dimensions). diff --git a/deepface/modules/representation.py b/deepface/modules/representation.py index 00e65a1e8..f09ad58f8 100644 --- a/deepface/modules/representation.py +++ b/deepface/modules/representation.py @@ -47,7 +47,7 @@ def represent( results (List[Dict[str, Any]]): A list of dictionaries, each containing the following fields: - - embedding (np.array): Multidimensional vector representing facial features. + - embedding (List[float]): Multidimensional vector representing facial features. The number of dimensions varies based on the reference model (e.g., FaceNet returns 128 dimensions, VGG-Face returns 4096 dimensions). - facial_area (dict): Detected facial area by face detection in dictionary format.