diff --git a/deepface/commons/functions.py b/deepface/commons/functions.py index a0ba457..8692902 100644 --- a/deepface/commons/functions.py +++ b/deepface/commons/functions.py @@ -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(): diff --git a/setup.py b/setup.py index c317192..cd1d737 100644 --- a/setup.py +++ b/setup.py @@ -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",