From 07e695924bfe700c178234730204fc0213801ce9 Mon Sep 17 00:00:00 2001 From: Dries Verachtert Date: Mon, 26 Feb 2024 07:49:13 +0100 Subject: [PATCH] Correct info about returned types for the represent method --- deepface/DeepFace.py | 2 +- deepface/modules/representation.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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.