mirror of
https://github.com/serengil/deepface.git
synced 2025-06-07 12:05:22 +00:00
bug fix
This commit is contained in:
parent
728df10e46
commit
eeacf48069
@ -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():
|
||||
|
||||
|
2
setup.py
2
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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user