ensemble pre-trained model

This commit is contained in:
Şefik Serangil 2020-06-15 16:11:57 +03:00
parent 787be49db4
commit 44078eddb8
4 changed files with 1 additions and 3 deletions

View File

@ -123,7 +123,6 @@ def verify(img1_path, img2_path=''
#-------------------------------
#find deepface path
deepface_path = DeepFace.__file__
#deepface_path = deepface_path.replace("\\", "/").replace("/deepface/DeepFace.py", "")
deepface_path = deepface_path.replace("\\", "/").replace("/DeepFace.py", "")
ensemble_model_path = deepface_path+"/models/face-recognition-ensemble-model.txt"
@ -677,7 +676,6 @@ def find(img_path, db_path
#----------------------------------
#lightgbm model
deepface_path = DeepFace.__file__
#deepface_path = deepface_path.replace("\\", "/").replace("/deepface/DeepFace.py", "")
deepface_path = deepface_path.replace("\\", "/").replace("/DeepFace.py", "")
ensemble_model_path = deepface_path+"/models/face-recognition-ensemble-model.txt"
deepface_ensemble = lgb.Booster(model_file = ensemble_model_path)

View File

View File

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