facebookresearch/AnimatedDrawings

How to get motion.yaml and retarget.yaml from .bvh

Closed this issue · 4 comments

Now, i can create new animate by combine built-in config and custom char picture. But when i want to use the new motion from imported .bvh file. I'am going to get stuck with motion.yaml and retarget.yaml. Because i don't know how to create them event though have docs at examples/config/README.md. I don't know how to convert bvh to motion.yaml and retarget.yaml.

Maybe I'm a layman in animation. But i hope to offer the script can convert bvh to motion.yaml and retarget.yaml. Even if he's not perfect.

Sadly, we can't, please see: #101 (comment)

The API /predictions/drawn_humanoid_pose_estimator returns a fixed skeleton format, which contains the position and name of the joints.

The function of retarget.yaml is to bind the joints of BVH to the standard joints, so if the skeleton hierarchy and joint names are different in the BVH you downloaded from somewhere, you have to manually create the retarget.xml.


image

drawn_humanoid_pose_estimator

Oh, i'm very happy to hear your reply. I really didn't notice this.

At first I thought that the character configuration was standard, and only the conversion of motion and retarget needed to be completed.
I ignored the char_joint_bvh_joints_mapping in the retarget file, because there is too much content in the configuration like noise, so I can't figure out how some content relationships between several files translate.

Maybe what I need is a simple tutorial on the conversion of these files, otherwise handwriting motion and retarget is very difficult. Can you provide a demo tutorial to help us learn how to create basic motion and retarget with the .bvh file we have and char_cfg.yaml?

I'm not good at this either XD

I think only the maintainers of this project are familiar with it now.
Here is the doc for creating motion and retarget configs, you can try though: Character Config File

It's not a simple process, unfortunately. I would recommend reading the README file (linked above by @yihleego) and looking at the configuration files used in the Getting Started examples to try and get a better understanding of how things are working.

If, after doing that, you have questions about specific things, I'd be happy to answer them for you. And please feel free to create the demo tutorial you wish existed, @xavierchan. Members of this community (myself included) would be very grateful.