Closed chuangyu-robotics closed 4 years ago
target_joints = ['Spine', 'Spine1', 'Spine2', 'Spine3', 'Neck', 'Neck1', 'Head', 'RightShoulder', 'RightArm', 'RightForeArm', 'RightHand', 'LeftShoulder', 'LeftArm', 'LeftForeArm', 'LeftHand']
def process_bvh(gesture_filename): p = BVHParser()
data_all = list()
data_all.append(p.parse(gesture_filename))
data_pipe = Pipeline([
('dwnsampl', DownSampler(tgt_fps=20, keep_all=False)),
('root', RootTransformer('hip_centric')),
('mir', Mirror(axis='X', append=True)),
('jtsel', JointSelector(target_joints, include_root=True)),
('exp', MocapParameterizer('expmap')),
('cnst', ConstantsRemover()),
('np', Numpyfier())
])
out_data = data_pipe.fit_transform(data_all)
return out_data
when I use the " ('exp', MocapParameterizer('expmap'))," it is ok.
But when I changed to ('exp', MocapParameterizer('position')), it show the error as above.
I got it. It is the reason of PyMo. its traverse() in "data.py" make it wrong.
If it is a problem with PyMo, please see the original repository and modified version by Simon Alexanderson that I used. https://github.com/omimo/PyMO https://github.com/simonalexanderson/PyMO
this is the debug information.
Thanks in advance.
KeyError Traceback (most recent call last)