Skip to content

Commit

Permalink
Merge pull request serengil#1044 from DriesVerachtert/fix_types_doc_r…
Browse files Browse the repository at this point in the history
…epresent

Correct info about returned types for the represent method
  • Loading branch information
serengil authored Feb 26, 2024
2 parents ca8a149 + 07e6959 commit 7544b46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deepface/DeepFace.py
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
2 changes: 1 addition & 1 deletion deepface/modules/representation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 7544b46

Please sign in to comment.