review comments resolved

This commit is contained in:
Sefik Ilkin Serengil 2023-12-06 21:07:31 +00:00
parent 125895398e
commit 63b397aa8e
3 changed files with 5 additions and 5 deletions

View File

@ -470,8 +470,8 @@ def find(
if not silent: if not silent:
logger.warn( logger.warn(
f"Representations for images in {db_path} folder were previously stored" 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 " 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." "delete this file and call find function again. It will create it again."
) )
with open(f"{db_path}/{file_name}", "rb") as f: with open(f"{db_path}/{file_name}", "rb") as f:
@ -876,7 +876,7 @@ def detectFace(
detected and aligned face as numpy array 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( face_objs = extract_faces(
img_path=img_path, img_path=img_path,
target_size=target_size, target_size=target_size,

View File

@ -360,7 +360,7 @@ def preprocess_face(
Deprecated: Deprecated:
0.0.78: Use extract_faces instead of preprocess_face. 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 result = None
img_objs = extract_faces( img_objs = extract_faces(
img=img, img=img,

View File

@ -35,7 +35,7 @@ distance_vector = np.square(img1_representation - img2_representation)
logger.debug(distance_vector) logger.debug(distance_vector)
distance = np.sqrt(distance_vector.sum()) 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 vectors to be shown better in graph