Open Mine268 opened 1 year ago
in file common/h36m_dataset.py:210, constructor
def __init__(self, path, remove_static_joints=True):
invokes the constructor of super class
super().__init__(fps=50, skeleton=h36m_skeleton)
where skeleton is assigned the reference to h36m_skeleton, if parameter remove_static_joints is set True, than multiple invokation of self.remove_joints will results in index error.
skeleton
h36m_skeleton
remove_static_joints
True
self.remove_joints
To avoid this issue, wrap h36m_skeleton with copy.deepcopy
copy.deepcopy
super().__init__(fps=50, skeleton=copy.deepcopy(h36m_skeleton))
in file common/h36m_dataset.py:210, constructor
invokes the constructor of super class
where
skeleton
is assigned the reference toh36m_skeleton
, if parameterremove_static_joints
is setTrue
, than multiple invokation ofself.remove_joints
will results in index error.To avoid this issue, wrap
h36m_skeleton
withcopy.deepcopy