This commit is contained in:
Sefik Ilkin Serengil 2022-03-24 20:40:50 +00:00
commit 527a427443
3 changed files with 3 additions and 3 deletions

View File

@ -280,7 +280,7 @@ def analyze(img_path, actions = ('emotion', 'age', 'gender', 'race') , models =
models['age'] = DeepFace.build_model('Age') models['age'] = DeepFace.build_model('Age')
models['gender'] = DeepFace.build_model('Gender') models['gender'] = DeepFace.build_model('Gender')
models['emotion'] = DeepFace.build_model('Emotion') models['emotion'] = DeepFace.build_model('Emotion')
models['race'] = DeepFace.build_model('race') models['race'] = DeepFace.build_model('Race')
enforce_detection (boolean): The function throws exception if a face could not be detected. Set this to True if you don't want to get exception. This might be convenient for low resolution images. enforce_detection (boolean): The function throws exception if a face could not be detected. Set this to True if you don't want to get exception. This might be convenient for low resolution images.

View File

@ -5,7 +5,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
setuptools.setup( setuptools.setup(
name="deepface", name="deepface",
version="0.0.74", version="0.0.75",
author="Sefik Ilkin Serengil", author="Sefik Ilkin Serengil",
author_email="serengil@gmail.com", author_email="serengil@gmail.com",
description="A Lightweight Face Recognition and Facial Attribute Analysis Framework (Age, Gender, Emotion, Race) for Python", description="A Lightweight Face Recognition and Facial Attribute Analysis Framework (Age, Gender, Emotion, Race) for Python",

View File

@ -206,7 +206,7 @@ gbm.save_model("face-recognition-ensemble-model.txt")
#-------------------------- #--------------------------
#Evaluation #Evaluation
predictions = gbm.predict(x_test) prediction_classes = gbm.predict(x_test)
prediction_classes = [] prediction_classes = []
for prediction in predictions: for prediction in predictions: