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

Addition of root_pos_offset twice in retargeting #52

Open
RaiAnant opened this issue Jan 30, 2025 · 2 comments
Open

Addition of root_pos_offset twice in retargeting #52

RaiAnant opened this issue Jan 30, 2025 · 2 comments

Comments

@RaiAnant
Copy link

RaiAnant commented Jan 30, 2025

Hi,

I was trying to understand the logic behind the retargeting code in fit_smpl_motion.py. I was confused as to why are we adding root_pos_offset twice after the otptimisation loop when passing root_translation to fk_batch.

First we compute root_trans_offset_dump here by adding root_pos_offset to root_trans_offset.

But then later when running forward kinematics, we again add root_pos_offset to root_trans_offset_dump here

Would really love some clarification to this. Thanks!

@tesslerc
Copy link
Collaborator

tesslerc commented Feb 6, 2025

Indeed this looks like a mistake.
If you remove the second one does it lead to any issues?

@RaiAnant
Copy link
Author

RaiAnant commented Feb 8, 2025

I tried to remove it and test it on a couple of examples but it didnt make a lot of difference, probably because in those cases root_pos_offset was relatively very small compared to root_trans_offset. Still wanted to double check the logic.

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