From f9ec08ec040203e534651eb4f62331e41923570d Mon Sep 17 00:00:00 2001 From: Sefik Ilkin Serengil Date: Fri, 10 Feb 2023 13:49:52 +0000 Subject: [PATCH] restore --- deepface/DeepFace.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/deepface/DeepFace.py b/deepface/DeepFace.py index 8252050..afc54ea 100644 --- a/deepface/DeepFace.py +++ b/deepface/DeepFace.py @@ -653,10 +653,8 @@ def represent( else: # skip if isinstance(img_path, str): img = functions.load_image(img_path) - img = cv2.resize(img, target_size) elif type(img_path).__module__ == np.__name__: img = img_path.copy() - img = cv2.resize(img, target_size) else: raise ValueError(f"unexpected type for img_path - {type(img_path)}") img_region = [0, 0, img.shape[1], img.shape[0]]