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

如何预处理gait3d姿势数据,并生成skeletongait++的热图数据 #268

Open
Niannian-Li opened this issue Feb 27, 2025 · 0 comments

Comments

@Niannian-Li
Copy link

Niannian-Li commented Feb 27, 2025

教授(开发人员们)您好,感谢您百忙之中抽空阅读我的困惑,以下是我遇到的具体问题。

我先是仿照gait3d说明文档中的轮廓数据处理命令,想自己预处理姿势数据,
(base) root@I1fc5afc8ff00201d7c:/hy-tmp/OpenGait-master# python datasets/pretreatment.py --input_path 'Gait3D/2D_Poses' --output_path 'Gait3D/Gait3D-pkls/Gait3D-pose-pkl' 但是一直显示没有读取数据Pretreating: 0folder [00:00, ?folder/s]
验证过了路径也是合理的,2D_Pose也是从官方下载后直接放在对应目录下的,但是2D_Silhouettes就可以按照
python datasets/pretreatment.py --input_path 'Gait3D/2D_Silhouettes' --output_path 'Gait3D-sils-64-64-pkl'预处理成功

之后我尝试将gait3d已有的预处理文件(Gait3D-smpls-pkl)进行热图操作heatmap.py出现了这个错误:ValueError: not enough values to unpack(expected 3, got 2)。将另外两个预处理文件(Gait3D-sils-128-88-pkl,Gait3D-sils-64-44-pkl)进行热图操作则出现这个错误:ValueError: cannot convert float NaN to integer,ValueError: Caught ValueError in DataLoader worker process 0.

再尝试按gait3d的说明执行python datasets/Gait3D/merge_two_modality.py --sils_path 'Gait3D-sils-64-64-pkl' --smpls_path 'Gait3D-smpls-pkl' --output_path 'Gait3D-merged-pkl' --link 'hard'将后得到的Gait3D-merged-pkl进行热图操作依旧出现了ValueError: not enough values to unpack(expected 3, got 2),ValueError: cannot convert float NaN to integer

总结,我想知道gait3d需要如何处理才能得到可以输入heatmap.py的pkl文件,以及gait3d如何处理才是skeletongait++之后”Creating Symbolic Links for Heatmap and Silhouette Data“中所需的Silhouette Data,Silhouette Data是不是2D_Silhouettes预处理后的Gait3D-sils-64-64-pklGait3D-sils-128-128-pkl文件。
感谢您看到这里,十分期待您的解答。

@Niannian-Li Niannian-Li changed the title skeletongait++的生成heatmap时出现了ValueError: not enough values to unpack(expected 3, got 2) 如何预处理gait3d姿势数据,并生成skeletongait++的热图数据 Feb 27, 2025
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