This commit is contained in:
Şefik Serangil 2020-05-04 13:38:57 +03:00
parent 728df10e46
commit eeacf48069
2 changed files with 2 additions and 4 deletions

View File

@ -168,8 +168,6 @@ def detectFace(img, target_size=(224, 224), grayscale = False, enforce_detection
elif exact_image != True: #image path passed as input
img_path = ""+img
if os.path.isfile(img) != True:
raise ValueError("Confirm that ",img," exists")
@ -298,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 in ", img_path,". 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.")
def allocateMemory():

View File

@ -5,7 +5,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
setuptools.setup(
name="deepface",
version="0.0.22",
version="0.0.23",
author="Sefik Ilkin Serengil",
author_email="serengil@gmail.com",
description="Deep Face Analysis Framework for Face Recognition and Demography",