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

fail to get 2d landmark in float dtype #337

Open
cavalier501 opened this issue Mar 28, 2023 · 3 comments
Open

fail to get 2d landmark in float dtype #337

cavalier501 opened this issue Mar 28, 2023 · 3 comments

Comments

@cavalier501
Copy link

cavalier501 commented Mar 28, 2023

I test "fa.get_landmarks_from_image" on some images in 256 * 256 and 512 * 512 resolution. While the result is numpy with dtype float32, but the decimal place of result is always 0, in other words, the dtype of result is int in fact.

Is that a bug? Or how can I solve the problem?

@Aria-Zhangjl
Copy link

I test "fa.get_landmarks_from_image" on some images in 256 * 256 and 512 * 512 resolution. While the result is numpy with dtype float32, but the decimal place of result is always 0, in other words, the dtype of result is int in fact.

Is that a bug? Or how can I solve the problem?

Hello,

I encountered a similar issue. Have you found a solution for it yet?

Thank you.

@cavalier501
Copy link
Author

I test "fa.get_landmarks_from_image" on some images in 256 * 256 and 512 * 512 resolution. While the result is numpy with dtype float32, but the decimal place of result is always 0, in other words, the dtype of result is int in fact.
Is that a bug? Or how can I solve the problem?

Hello,

I encountered a similar issue. Have you found a solution for it yet?

Thank you.

sorry, but since it's been a while, I can't remember exactly how I handled this matter.😂

@Aria-Zhangjl
Copy link

Thank you for your reply 💖
I finally figure out that most of the detection models are designed to directly output the coordinates of facial keypoints, hence, the outputs are typically integers (representing pixel locations).

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