You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, thanks for the model and the tutorial. I'd like to use it just to predict gender.
Of course I could use the model to predict both and then use only the one i care about but i would like not to lose processing time in something i don't need. Is there a way to sort it out?
Thanks in advance!
The text was updated successfully, but these errors were encountered:
The program now already supports recognizing only gender.
You can try like this:
from deepface import DeepFace
objs = DeepFace.analyze(img_path = "path/to/your/image.jpg", # use the directory of the image you want to recognize
actions = ['gender'] # only gender detection
)
print(objs[0]["dominant_gender"])
Hi, thanks for the model and the tutorial. I'd like to use it just to predict gender.
Of course I could use the model to predict both and then use only the one i care about but i would like not to lose processing time in something i don't need. Is there a way to sort it out?
Thanks in advance!
The text was updated successfully, but these errors were encountered: