MCPcopy Create free account
hub / github.com/Vegetebird/GraphMLP / remove_joints

Method remove_joints

common/mocap_dataset.py:10–15  ·  view source on GitHub ↗
(self, joints_to_remove)

Source from the content-addressed store, hash-verified

8 self._cameras = None
9
10 def remove_joints(self, joints_to_remove):
11 kept_joints = self._skeleton.remove_joints(joints_to_remove)
12 for subject in self._data.keys():
13 for action in self._data[subject].keys():
14 s = self._data[subject][action]
15 s['positions'] = s['positions'][:, kept_joints]
16
17 def __getitem__(self, key):
18 return self._data[key]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected