From 4e3631c579973bfc28ee87008c0598ffe5aaff41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yi=C4=9Fit=20=C3=96=2E=20=C3=9Cnver?= <69584310+younver@users.noreply.github.com> Date: Sun, 11 Dec 2022 21:49:02 +0300 Subject: [PATCH] case handling analyze function with single actions --- deepface/DeepFace.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/deepface/DeepFace.py b/deepface/DeepFace.py index f2f5fc9..d4dd779 100644 --- a/deepface/DeepFace.py +++ b/deepface/DeepFace.py @@ -321,6 +321,9 @@ def analyze(img_path, actions = ('emotion', 'age', 'gender', 'race') , models = } """ + + if type(actions) == str: + actions = (actions,) actions = list(actions) if not models: