mirror of
https://github.com/serengil/deepface.git
synced 2025-06-08 12:35:22 +00:00
fix missing normalization when skipping face detection
This commit is contained in:
parent
99f5295638
commit
c268e396a8
@ -684,6 +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_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)]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user