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

In retarget , how can we get mean & var .npy ? #37

Closed
xinzi2018 opened this issue Jun 18, 2020 · 4 comments
Closed

In retarget , how can we get mean & var .npy ? #37

xinzi2018 opened this issue Jun 18, 2020 · 4 comments

Comments

@xinzi2018
Copy link

No description provided.

@xinzi2018 xinzi2018 changed the title how can we get mean & var .npy? In retarget , how can we get mean & var .npy ? Jun 18, 2020
@PeizhuoLi
Copy link
Collaborator

We are planning to release related details in 1~2 weeks. More details in #31. Thank you!

@xinzi2018
Copy link
Author

thanks a lot !

@ANYMS-A
Copy link

ANYMS-A commented Jun 18, 2020

If you print out the shape of mean or var, you will find that the shape of them are like[(simple_joints_number-1)*4+3, 1], because they're calculated by using the rotation of all edges("edges" means all simplified skeleton joints without the ROOT joint) and the ROOT joint's position w.r.t all bvh files' frames.
So, a possible way to calculate the mean & var by yourself, is to read the edges' rotation and root position of every frame of every bvh file, then calculate the mean and var, then reshape into a numpy array with shape:[(simple_joints_number-1)*4+3, 1]

@PeizhuoLi
Copy link
Collaborator

You can get mean and var use retargeting/datasets/preprocess.py. For more details please refer to dataset section in instructions for training from scratch.

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