mirror of
https://github.com/serengil/deepface.git
synced 2025-06-07 12:05:22 +00:00
Merge commit '0d7e15147f527edc0ef09dadbd73f38d87972d1f' into feat/batch-predict-age-and-gender
This commit is contained in:
commit
0971fcde1f
@ -175,7 +175,6 @@ def analyze(
|
|||||||
task="facial_attribute", model_name="Age"
|
task="facial_attribute", model_name="Age"
|
||||||
).predict(img_content)
|
).predict(img_content)
|
||||||
# int cast is for exception - object of type 'float32' is not JSON serializable
|
# int cast is for exception - object of type 'float32' is not JSON serializable
|
||||||
print(apparent_age.shape)
|
|
||||||
obj["age"] = int(apparent_age)
|
obj["age"] = int(apparent_age)
|
||||||
|
|
||||||
elif action == "gender":
|
elif action == "gender":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user