Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

hip fix #51

Closed
lxy5513 opened this issue Jun 24, 2019 · 4 comments
Closed

hip fix #51

lxy5513 opened this issue Jun 24, 2019 · 4 comments

Comments

@lxy5513
Copy link

lxy5513 commented Jun 24, 2019

Hi, I get wild video 3D pose result, find the center hip point is fixed, when a person sit down, the hip points is same. like this:

test

I think maybe is training data prepare, Could you please tell me what the function of inputs_3d[:, :, 0] = 0
https://github.com/facebookresearch/VideoPose3D/blob/master/run.py#L312
why need set center_hip coordinate to (0,0,0), Is this aim to fix the hip point?

Appreciate your apply Thank you in advance.

@dariopavllo
Copy link
Contributor

That's how the model is trained and how evaluation is done. The hip joint is on the origin, and the predicted pose is relative to the origin.

You should train the trajectory model as well (we don't currently have pretrained models for that) if you want to recover the global position, but the accuracy may not be very good.

@lxy5513
Copy link
Author

lxy5513 commented Jun 24, 2019

Thanks for your reply.
but in https://dariopavllo.github.io/VideoPose3D/
Why some demo videos hip joint isn't on the origin, It can move. I am confused about this.

@dariopavllo
Copy link
Contributor

In that case, we simply added a constraint to force the height of the lowest joint to 0, so that the subject is always touching the ground.

For the same effect, you can replace

prediction[:, :, 2] -= np.min(prediction[:, :, 2])
with:
prediction[:, :, 2] -= np.min(prediction[:, :, 2], axis=1, keepdims=True)

@lxy5513
Copy link
Author

lxy5513 commented Jun 26, 2019

Appreciate you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants