set enforce_detection to False message

This commit is contained in:
Sefik Ilkin Serengil 2020-05-15 13:19:54 +03:00 committed by GitHub
parent c1fa8b022e
commit 892cbae56a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -296,7 +296,7 @@ def detectFace(img, target_size=(224, 224), grayscale = False, enforce_detection
img_pixels /= 255
return img_pixels
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():