MCPcopy Create free account
hub / github.com/MotrixLab/ViMoGen / remove_global_translation

Function remove_global_translation

mbench/motion_quality.py:108–112  ·  view source on GitHub ↗

Remove global translation by subtracting the root joint's position.

(joints)

Source from the content-addressed store, hash-verified

106 return contact_range
107
108def remove_global_translation(joints):
109 """Remove global translation by subtracting the root joint's position."""
110 root_joint = joints[:, 0:1, :] # Root joint is joint 0 (shape: T, 1, 3)
111 local_joints = joints - root_joint # Subtract root joint position
112 return local_joints
113
114
115def summarize_scores(values):

Callers 2

compute_jitter_degreeFunction · 0.85
compute_dynamic_degreeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected