mirror of
https://github.com/serengil/deepface.git
synced 2025-07-23 18:30:04 +00:00
Update verification.py
This commit is contained in:
parent
4ac3f07510
commit
9652951f0b
@ -164,7 +164,6 @@ def verify(
|
|||||||
img_embeddings = [img_path]
|
img_embeddings = [img_path]
|
||||||
img_facial_areas = [no_facial_area]
|
img_facial_areas = [no_facial_area]
|
||||||
else:
|
else:
|
||||||
try:
|
|
||||||
img_embeddings, img_facial_areas = __extract_faces_and_embeddings(
|
img_embeddings, img_facial_areas = __extract_faces_and_embeddings(
|
||||||
img_path=img_path,
|
img_path=img_path,
|
||||||
model_name=model_name,
|
model_name=model_name,
|
||||||
@ -175,8 +174,6 @@ def verify(
|
|||||||
normalization=normalization,
|
normalization=normalization,
|
||||||
anti_spoofing=anti_spoofing,
|
anti_spoofing=anti_spoofing,
|
||||||
)
|
)
|
||||||
except ValueError as err:
|
|
||||||
raise ValueError(f"Exception while processing img{index}_path") from err
|
|
||||||
return img_embeddings, img_facial_areas
|
return img_embeddings, img_facial_areas
|
||||||
|
|
||||||
img1_embeddings, img1_facial_areas = extract_embeddings_and_facial_areas(img1_path, 1)
|
img1_embeddings, img1_facial_areas = extract_embeddings_and_facial_areas(img1_path, 1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user