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

What is the unit of 3d keypoints #117

Open
jk456445 opened this issue Jan 2, 2024 · 3 comments
Open

What is the unit of 3d keypoints #117

jk456445 opened this issue Jan 2, 2024 · 3 comments

Comments

@jk456445
Copy link

jk456445 commented Jan 2, 2024

I have the 3d keypoints value of a picture, but I am curious about the unit of these values, whether it's in pixels or something else.
image

@valentin-fngr
Copy link

Author needs to confirm but from my understanding, the 0 and 1 are between [-1, 1] and the 2 is the keypoint confidence score.

@Alloxxa
Copy link

Alloxxa commented Jan 22, 2024

I would also be glad to know the answer to the post's question. These are almost certainly coordinates in three-dimensional space. At first I thought that the skeleton was inscribed in a cube with a side of length 2 (from -1 to 1), but in one of the predictions I saw that the minimum value is less than -1 (-1.06). And it puzzled me :)

@RojanAsl
Copy link

RojanAsl commented Apr 30, 2024

I believe you can find the code for the scaling in the following file: motionbert\lib\utils\utils_data.py
functions: crop_scale() and crop_scale_3d()

It looks like the keypoints are scaled to [-1,1] based on the bounding box (min and max coordinates in all axes).

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

4 participants