Merge commit '0d7e15147f527edc0ef09dadbd73f38d87972d1f' into feat/batch-predict-age-and-gender

This commit is contained in:
NatLee 2025-01-16 20:50:12 +08:00
commit 0971fcde1f

View File

@ -175,7 +175,6 @@ def analyze(
task="facial_attribute", model_name="Age"
).predict(img_content)
# int cast is for exception - object of type 'float32' is not JSON serializable
print(apparent_age.shape)
obj["age"] = int(apparent_age)
elif action == "gender":