1adrianb / face-alignment

:fire: 2D and 3D Face alignment library build using pytorch
https://www.adrianbulat.com
BSD 3-Clause "New" or "Revised" License
6.88k stars 1.33k forks source link

fail to get 2d landmark in float dtype #337

Open cavalier501 opened 1 year ago

cavalier501 commented 1 year ago

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?