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

此处预处理的代码略有疑问 #234

Open
seekFire opened this issue Mar 20, 2024 · 0 comments
Open

此处预处理的代码略有疑问 #234

seekFire opened this issue Mar 20, 2024 · 0 comments

Comments

@seekFire
Copy link

seekFire commented Mar 20, 2024

输入GCN的tensor要求的人数是2个,但大多数的NTU动作是单人的,因此是需要把第一个人的keypoint信息复制到tensor中的第二个人的位置上。但此处的代码: pyskl/datasets/pipelines/pose_related.py:
2024-03-20 16-20-23 的屏幕截图
第450行, 此处已经将单人的keypoint tensor和zero tensor进行了concatenate操作,得到的tensor已经是代表两个人的了。那下一行的判断条件里的keypoint.shape[0] 就不可能等于1,这还怎么执行随后的复制操作?

还是说单人的动作,只需要给第二个人的位置填充zero tensor,不需要复制第一个人的信息?

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