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

Explanation of landmark's heatmap output #17

Open
david-gimeno opened this issue Jul 14, 2023 · 3 comments
Open

Explanation of landmark's heatmap output #17

david-gimeno opened this issue Jul 14, 2023 · 3 comments

Comments

@david-gimeno
Copy link

First of all, congratulation for your great work and thanks a lot for sharing it!

I was using EmoNet to extract some face embeddings. After inspecting the code and the output of the model, I would like to ask you more information or how to interpret the out["heatmap"] matrix that the model outputs. I saw that the shape of this tensor is (68, 64, 64). As you extracted 68 facial landmarks, my intuition is that it is kind of an attention matrix over the landmarks or, in other words, which of that landmarks were more relevant when predicting the emotional class. But, why 64x64?? Well, maybe I am wrong.

Thanks in advance,

David.

@Developer1881
Copy link

@david-gimeno Hi David.
Stuck with the same problem, any updates in your investigation?

@david-gimeno
Copy link
Author

@Developer1881 According to my intuition, at some moment of the model forward the cropped face is embedded in a 64x64 latent representation, and then a heatmap is predicted for each one of the 68 facial landmarks, being the objective to concentrate the 'heat' in the position where the landmark should be. In other words, the model is learning to identify the position of each landmark via heatmaps over the face image. BUT, I am not sure.

@Developer1881
Copy link

@david-gimeno as I tried, and looks pretty normal, is looks on 64x64 matrics as a probability that exact of 68 points in a 64 to 64 pixels.
so then I'm extrapolating to 256x256

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

2 participants