mirror of
https://github.com/serengil/deepface.git
synced 2025-06-07 03:55:21 +00:00
set enforce_detection to False message
This commit is contained in:
parent
c1fa8b022e
commit
892cbae56a
@ -296,7 +296,7 @@ def detectFace(img, target_size=(224, 224), grayscale = False, enforce_detection
|
|||||||
img_pixels /= 255
|
img_pixels /= 255
|
||||||
return img_pixels
|
return img_pixels
|
||||||
else:
|
else:
|
||||||
raise ValueError("Face could not be detected. Please confirm that the picture is a face photo.")
|
raise ValueError("Face could not be detected. Please confirm that the picture is a face photo or consider to set enforce_detection param to False.")
|
||||||
|
|
||||||
def allocateMemory():
|
def allocateMemory():
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user