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

Missing copy.deepcopy results in error when creating multiple Human36mDataset | 创建多个Human36mDataset时缺少copy.deepcopy会产生索引错误 #46

Open
Mine268 opened this issue Oct 6, 2023 · 0 comments

Comments

@Mine268
Copy link

Mine268 commented Oct 6, 2023

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.

To avoid this issue, wrap h36m_skeleton with copy.deepcopy

super().__init__(fps=50, skeleton=copy.deepcopy(h36m_skeleton))
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