mirror of
https://github.com/serengil/deepface.git
synced 2025-06-07 12:05:22 +00:00
dlib is optional
This commit is contained in:
parent
9a07abeca5
commit
ebb317c693
@ -10,7 +10,6 @@ import os
|
||||
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
|
||||
|
||||
from deepface.basemodels import VGGFace, OpenFace, Facenet, FbDeepFace, DeepID
|
||||
from deepface.basemodels.DlibResNet import DlibResNet
|
||||
from deepface.extendedmodels import Age, Gender, Race, Emotion
|
||||
from deepface.commons import functions, realtime, distance as dst
|
||||
|
||||
@ -65,6 +64,7 @@ def analysis(db_path, model_name, distance_metric, enable_face_analysis = True):
|
||||
|
||||
elif model_name == 'Dlib':
|
||||
print("Using Dlib model backend", distance_metric,"distance.")
|
||||
from deepface.basemodels.DlibResNet import DlibResNet
|
||||
model = DlibResNet()
|
||||
input_shape = (150, 150)
|
||||
|
||||
|
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.38",
|
||||
version="0.0.39",
|
||||
author="Sefik Ilkin Serengil",
|
||||
author_email="serengil@gmail.com",
|
||||
description="A Lightweight Face Recognition and Facial Attribute Analysis Framework (Age, Gender, Emotion, Race) for Python",
|
||||
|
Loading…
x
Reference in New Issue
Block a user