Update DeepFace.py

This commit is contained in:
Sefik Ilkin Serengil 2023-11-22 11:57:55 +00:00 committed by GitHub
parent f2068df6a8
commit 37c94467f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -684,7 +684,7 @@ def represent(
if len(img.shape) == 3: if len(img.shape) == 3:
img = cv2.resize(img, target_size) img = cv2.resize(img, target_size)
img = np.expand_dims(img, axis=0) img = np.expand_dims(img, axis=0)
# img /= 255 img /= 255
# -------------------------------- # --------------------------------
img_region = [0, 0, img.shape[1], img.shape[0]] img_region = [0, 0, img.shape[1], img.shape[0]]
img_objs = [(img, img_region, 0)] img_objs = [(img, img_region, 0)]