mirror of
https://github.com/serengil/deepface.git
synced 2025-06-07 12:05:22 +00:00
Update skip case.
This commit is contained in:
parent
830decb483
commit
1ea31bc072
@ -87,7 +87,10 @@ def represent(
|
|||||||
else: # skip
|
else: # skip
|
||||||
# Try load. If load error, will raise exception internal
|
# Try load. If load error, will raise exception internal
|
||||||
img, _ = image_utils.load_image(img_path)
|
img, _ = image_utils.load_image(img_path)
|
||||||
|
|
||||||
|
# bgr to rgb
|
||||||
|
img = img[:, :, ::-1]
|
||||||
|
|
||||||
if len(img.shape) != 3:
|
if len(img.shape) != 3:
|
||||||
raise ValueError(f"Input img must be 3 dimensional but it is {img.shape}")
|
raise ValueError(f"Input img must be 3 dimensional but it is {img.shape}")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user