mirror of
https://github.com/serengil/deepface.git
synced 2025-07-23 10:20:03 +00:00
restore
This commit is contained in:
parent
8952e6b305
commit
f9ec08ec04
@ -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]]
|
||||
|
Loading…
x
Reference in New Issue
Block a user