mirror of
https://github.com/serengil/deepface.git
synced 2025-06-07 12:05:22 +00:00
Merge pull request #617 from younver/master
case handling analyze function with single actions
This commit is contained in:
commit
531522f604
@ -322,6 +322,9 @@ def analyze(img_path, actions = ('emotion', 'age', 'gender', 'race') , models =
|
||||
|
||||
"""
|
||||
|
||||
if type(actions) == str:
|
||||
actions = (actions,)
|
||||
|
||||
actions = list(actions)
|
||||
if not models:
|
||||
models = {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user