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

data_block is wrong size for custom .bvh file #10

Open
mattgallivan opened this issue Oct 13, 2022 · 1 comment
Open

data_block is wrong size for custom .bvh file #10

mattgallivan opened this issue Oct 13, 2022 · 1 comment

Comments

@mattgallivan
Copy link

Hi, thanks for the great paper and library!

I'm attempting to train the model on a custom .bvh animation. However, I receive the error:

File "ganimator/bvh/bvh_io.py", line 178, in load
data_block = data_block.reshape(N, 6)
ValueError: cannot reshape array of size 528 into shape (89,6)

It seems that my data of size 528 cannot fit into the data_block of size 534. It's off by a single parent. I provide the sample.bvh file here for inspection. It has been exported from a .fbx file in blender.

sample.bvh

@PeizhuoLi
Copy link
Owner

Hi, the bvh parser integrated in the program is not as robust as the one in Blender. Our parser only support bvh files with fixed number of channels for all joint. The issue in this file is the root joint has 0 channel. The easiest solutoin will be simply remove that joint.

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