PeizhuoLi / ganimator

A motion generation model learned from a single example [SIGGRAPH 2022]
Other
383 stars 46 forks source link

data_block is wrong size for custom .bvh file #10

Open mattgallivan opened 1 year ago

mattgallivan commented 1 year ago

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 commented 1 year ago

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.