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

Difficulties with importing an animation from Mixamo #308

Open
MartensCedric opened this issue Jan 16, 2025 · 0 comments
Open

Difficulties with importing an animation from Mixamo #308

MartensCedric opened this issue Jan 16, 2025 · 0 comments

Comments

@MartensCedric
Copy link

I am trying to import animations from Mixamo and encountering some difficulties.

These are the steps I undertook so far:

  1. I uploaded a character to Mixamo and downloaded an animation using a skeleton with no finger joints. This comes in .fbx format.
  2. I converted the .fbx to .bvh using Blender
  3. I manually created a skeleton by writing its entire hierarchy in a char_cfg.yaml file based off the skeleton used in the .fbx
  4. I adjusted the joint locations using the fix_annotations_tool to make it consistent with my input.
  5. I added and adjusted a config/motion for my needs

I am now having quite some struggle with the retargetting.

Firstly, I assumed that mixamo_fff.yaml would automatically target my skeleton.

That is not the case,

Traceback (most recent call last):
  File "annotations_to_animation.py", line 59, in <module>
    annotations_to_animation(char_anno_dir, motion_cfg_fn, retarget_cfg_fn)
  File "annotations_to_animation.py", line 40, in annotations_to_animation
    animated_drawings.render.start(output_mvc_cfn_fn)
  File "/home/cedric/Programming/AnimatedDrawings/animated_drawings/render.py", line 21, in start
    scene = Scene(cfg.scene)
  File "/home/cedric/Programming/AnimatedDrawings/animated_drawings/model/scene.py", line 30, in __init__
    ad = AnimatedDrawing(*each)
  File "/home/cedric/Programming/AnimatedDrawings/animated_drawings/model/animated_drawing.py", line 247, in __init__
    self._modify_retargeting_cfg_for_character()
  File "/home/cedric/Programming/AnimatedDrawings/animated_drawings/model/animated_drawing.py", line 286, in _modify_retargeting_cfg_for_character
    assert False, msg
AssertionError: Could not find joint1 in runtime check: right_shoulder

Upon additional inspection of this file, I can see that this retargetting file has joints like left_hip and right_hip which are concepts that don't even exist in the skeleton I'm looking at.

Is this retargeting file supposed to work for mixamo? I don't see how I need to change this file to make it work. I've tried to remove the bones that I don't have without success.

Here's the bvh and the character file.
data.zip

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

1 participant