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

Train on custom 2D pose dataset #92

Open
alexanderfrey opened this issue Oct 31, 2021 · 3 comments
Open

Train on custom 2D pose dataset #92

alexanderfrey opened this issue Oct 31, 2021 · 3 comments

Comments

@alexanderfrey
Copy link

Hi and thanks for great work !

I would like to finetune the model on some custom 2D pose dataset. From what I read you trained on 3D and 2D pose datasets so that should be possible, right ?

Best
Alexander

@Arthur151
Copy link
Owner

Yes, of course. You can refer to this issue to create your own dataset.

@alexanderfrey
Copy link
Author

Thanks for your answer. That particular issue is about retraining on the model output. My question is more related to how the data in the img_info dictionary is generated and what is the format ?

I have right now 2D pose data in a csv file with the format nose,182,416,img001.jpg,768,800 etc.

How do I go from that data to the img_info dict ?

Any help is very much appreciated.

Best,
Alexander

@Arthur151
Copy link
Owner

Crowdpose is a perfect example for your need. It just loads the 2D pose data. You need to replace this line to the 2D pose of your data. Please be sure to set the correct keypoint ordering at this line. To achieve this, you can define a dict in constants.py like this. Then you can replace constants.Crowdpose_14 to the keypoint order dict you defined.
self.kp2d_mapper = constants.joint_mapping(constants.KEYPOINT_ORDER,constants.SMPL_ALL_54)

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