Skip to content

Commit

Permalink
review comments resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
serengil committed Dec 6, 2023
1 parent 1258953 commit 63b397a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions deepface/DeepFace.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,8 +470,8 @@ def find(
if not silent:
logger.warn(
f"Representations for images in {db_path} folder were previously stored"
+ f" in {file_name}. If you added new instances after the creation, then please "
+ "delete this file and call find function again. It will create it again."
f" in {file_name}. If you added new instances after the creation, then please "
"delete this file and call find function again. It will create it again."
)

with open(f"{db_path}/{file_name}", "rb") as f:
Expand Down Expand Up @@ -876,7 +876,7 @@ def detectFace(
detected and aligned face as numpy array
"""
logger.info("⚠️ Function detectFace is deprecated. Use extract_faces instead.")
logger.warn("Function detectFace is deprecated. Use extract_faces instead.")
face_objs = extract_faces(
img_path=img_path,
target_size=target_size,
Expand Down
2 changes: 1 addition & 1 deletion deepface/commons/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ def preprocess_face(
Deprecated:
0.0.78: Use extract_faces instead of preprocess_face.
"""
logger.info("⚠️ Function preprocess_face is deprecated. Use extract_faces instead.")
logger.warn("Function preprocess_face is deprecated. Use extract_faces instead.")
result = None
img_objs = extract_faces(
img=img,
Expand Down
2 changes: 1 addition & 1 deletion tests/face-recognition-how.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
logger.debug(distance_vector)

distance = np.sqrt(distance_vector.sum())
logger.info("Euclidean distance: ", distance)
logger.info(f"Euclidean distance: {distance}")

# ----------------------------------------------
# expand vectors to be shown better in graph
Expand Down

0 comments on commit 63b397a

Please sign in to comment.