From eeacf4806978d080ac9b8d339e0ef2d8da886217 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=9Eefik=20Serangil?= Date: Mon, 4 May 2020 13:38:57 +0300 Subject: [PATCH] bug fix --- deepface/commons/functions.py | 4 +--- setup.py | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) 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",