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

Location of the hip/pelvis joint? #49

Closed
skumar-ml opened this issue Aug 16, 2021 · 6 comments
Closed

Location of the hip/pelvis joint? #49

skumar-ml opened this issue Aug 16, 2021 · 6 comments

Comments

@skumar-ml
Copy link

Does the 2d-to-3d lifting model actually predict a location for the hip/pelvis joint? OR, does the model predict all of the other 16 joints in relation to the hip joint?

It seems like when we run UnNormalizeData in examples/inference.py, the first joint location (which corresponds to the hip) is always [0,0,0] because we are choosing to ignore that joint in stats['dim_ignore_3d']. Is there a way to avoid setting the hip to (0,0,0)?

In my use case, I would like to avoid "fixing" or "pinning" a joint to the origin (or any other arbitrary point) for rendering purposes.

@sunmengnan
Copy link

@sk1840939 how about transfering the depth points of all the joints into the real world coordinates then plot in color map?

@Nicholasli1995
Copy link
Owner

Does the 2d-to-3d lifting model actually predict a location for the hip/pelvis joint? OR, does the model predict all of the other 16 joints in relation to the hip joint?

It seems like when we run UnNormalizeData in examples/inference.py, the first joint location (which corresponds to the hip) is always [0,0,0] because we are choosing to ignore that joint in stats['dim_ignore_3d']. Is there a way to avoid setting the hip to (0,0,0)?

In my use case, I would like to avoid "fixing" or "pinning" a joint to the origin (or any other arbitrary point) for rendering purposes.

The prediction is 3D pose relative to the hip joint and does not include subject location. If you want to plot the trajectory in 3D, you may consider recording the root location in 3D. Then you can add the prediction back to the root location.

@skumar-ml
Copy link
Author

Thank you for your reply!

If you want to plot the trajectory in 3D, you may consider recording the root location in 3D. Then you can add the prediction back to the root location.

Can you expand on "recording the root location in 3D"? Is this information that the model already captures in the output from the cascaded-lifter model? Or, is this information I am responsible for generating?

@sunmengnan
Copy link

Thank you for your reply!

If you want to plot the trajectory in 3D, you may consider recording the root location in 3D. Then you can add the prediction back to the root location.

Can you expand on "recording the root location in 3D"? Is this information that the model already captures in the output from the cascaded-lifter model? Or, is this information I am responsible for generating?

I guess it's the absolute real world coordinate of hip. So that you only need to add or minus relative depth of other 16points after the net inference.

@Nicholasli1995
Copy link
Owner

Thank you for your reply!

If you want to plot the trajectory in 3D, you may consider recording the root location in 3D. Then you can add the prediction back to the root location.

Can you expand on "recording the root location in 3D"? Is this information that the model already captures in the output from the cascaded-lifter model? Or, is this information I am responsible for generating?

This information is generated in this prepare_data_dict method: there is root location in the camera coordinate system

train_dict_3d, train_root_positions = postprocess_3d(train_dict_3d)

You can keep these information and use them when you need to visualize the 3D trajectory.

@skumar-ml
Copy link
Author

Thank you! That should solve my issue. Closing the issue, but I will reopen it if there are any related problems.

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

3 participants