mirror of
https://github.com/serengil/deepface.git
synced 2025-06-08 12:35:22 +00:00
initialize detector in represent
This commit is contained in:
parent
91aa422677
commit
73d1950133
@ -43,6 +43,7 @@ def build_model(model_name):
|
||||
'DeepID': DeepID.loadModel,
|
||||
'Dlib': DlibWrapper.loadModel,
|
||||
'ArcFace': ArcFace.loadModel,
|
||||
|
||||
'Emotion': Emotion.loadModel,
|
||||
'Age': Age.loadModel,
|
||||
'Gender': Gender.loadModel,
|
||||
@ -725,6 +726,8 @@ def represent(img_path, model_name = 'VGG-Face', model = None, enforce_detection
|
||||
if model is None:
|
||||
model = build_model(model_name)
|
||||
|
||||
functions.initialize_detector(detector_backend = detector_backend)
|
||||
|
||||
#---------------------------------
|
||||
|
||||
#decide input shape
|
||||
|
Loading…
x
Reference in New Issue
Block a user