Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why do the get_facial_attributes function and the get_facial_expression function produce different facial expression prediction categories? #9

Open
doudousukyi37 opened this issue Oct 21, 2024 · 0 comments

Comments

@doudousukyi37
Copy link

doudousukyi37 commented Oct 21, 2024

when i use the get_facial_attributes function and the get_facial_expression function to predict same picture ,they return different facial expression. my code is:

import libreface
import cv2

image1_path = '/app/libreface/test_images/ruiangry.jpg'
image1 = cv2.imread(image1_path)

detected_attributes = libreface.get_facial_attributes(image1_path)



expression_label = libreface.get_facial_expression(image1_path)

print(detected_attributes['detected_aus'])

print(detected_attributes['facial_expression'])

print(expression_label)

and return


{'au_1': 0, 'au_2': 0, 'au_4': 0, 'au_6': 0, 'au_7': 0, 'au_10': 1, 'au_12': 0, 'au_14': 0, 'au_15': 0, 'au_17': 0, 'au_23': 0, 'au_24': 0}
Disgust
Neutral
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant