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

get human body keypoints only when use the '308' model #53

Closed
luoshuiyue opened this issue Sep 3, 2024 · 6 comments
Closed

get human body keypoints only when use the '308' model #53

luoshuiyue opened this issue Sep 3, 2024 · 6 comments

Comments

@luoshuiyue
Copy link

luoshuiyue commented Sep 3, 2024

hello~ there are points stored in a json file (run pose estimation), May I ask how to acquire only the 17 human body key points when use the '308 keypoints' model?

@luoshuiyue
Copy link
Author

and how do I use lines to connect key points, as in the example you provided (the second picture):
1746ce7c77a5d27e994da214a4559e6
67f9f092da77eaa82b7e3d76a94da31

@luoshuiyue
Copy link
Author

when I follow full installation, I encounter this error:
1725356424557

@rawalkhirodkar
Copy link
Contributor

@luoshuiyue To get the 17 body keypoints following COCO, index into the predicted 308 keypoints using this

The indices for the 17 COCO keypoints are:
0: dict(name='nose', id=0, color=[51, 153, 255], type='upper', swap=''),
1: dict(name='left_eye', id=1, color=[51, 153, 255], type='upper', swap='right_eye'),
2: dict(name='right_eye', id=2, color=[51, 153, 255], type='upper', swap='left_eye'),
3: dict(name='left_ear', id=3, color=[51, 153, 255], type='upper', swap='right_ear'),
4: dict(name='right_ear', id=4, color=[51, 153, 255], type='upper', swap='left_ear'),
5: dict(name='left_shoulder', id=5, color=[51, 153, 255], type='upper', swap='right_shoulder'),
6: dict(name='right_shoulder', id=6, color=[51, 153, 255], type='upper', swap='left_shoulder'),
7: dict(name='left_elbow', id=7, color=[51, 153, 255], type='upper', swap='right_elbow'),
8: dict(name='right_elbow', id=8, color=[51, 153, 255], type='upper', swap='left_elbow'),
9: dict(name='left_hip', id=9, color=[51, 153, 255], type='lower', swap='right_hip'),
10: dict(name='right_hip', id=10, color=[51, 153, 255], type='lower', swap='left_hip'),
11: dict(name='left_knee', id=11, color=[51, 153, 255], type='lower', swap='right_knee'),
12: dict(name='right_knee', id=12, color=[51, 153, 255], type='lower', swap='left_knee'),
13: dict(name='left_ankle', id=13, color=[51, 153, 255], type='lower', swap='right_ankle'),
14: dict(name='right_ankle', id=14, color=[51, 153, 255], type='lower', swap='left_ankle'),
41: dict(name='right_wrist', id=41, color=[51, 153, 255], type='upper', swap='left_wrist'),
62: dict(name='left_wrist', id=62, color=[51, 153, 255], type='upper', swap='right_wrist'),

@rawalkhirodkar
Copy link
Contributor

rawalkhirodkar commented Sep 3, 2024

@luoshuiyue for the numpy error with xtcocotools, you will need to modify the xtcocotools slightly to be compatible with new numpy or alternatively downgrade numpy version.

More details here.

@luoshuiyue
Copy link
Author

luoshuiyue commented Sep 5, 2024

@luoshuiyue for the numpy error with xtcocotools, you will need to modify the xtcocotools slightly to be compatible with new numpy or alternatively downgrade numpy version.

More details here.

@rawalkhirodkar hi~I downgrade numpy version to 1.26.4, this error was gone but a new one appears:
微信图片_20240905113944

@rawalkhirodkar
Copy link
Contributor

@luoshuiyue Thanks for sharing the log, in hindsight, downgrading numpy is not a good idea.

Following the link I shared, can you try pip install git+https://github.com/jin-s13/xtcocoapi?
Let me know who it goes.

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

2 participants