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

About how to apply this work on my own data? #36

Closed
ZHyuwind opened this issue Dec 24, 2019 · 17 comments
Closed

About how to apply this work on my own data? #36

ZHyuwind opened this issue Dec 24, 2019 · 17 comments

Comments

@ZHyuwind
Copy link

First, thanks for your work. I want to apply your works on my own data, please tell me how to do?Thanks again!

@mks0601
Copy link
Owner

mks0601 commented Dec 24, 2019

You can see this code. Once you convert your dataset to MSCOCO format, you can easily adapt that code to use your dataset.

@ZHyuwind
Copy link
Author

ZHyuwind commented Dec 24, 2019 via email

@ZHyuwind
Copy link
Author

Hello, I also meet a problem that my own dataset how to get annotations? or this file is not needed?Thanks.

@mks0601
Copy link
Owner

mks0601 commented Dec 24, 2019

I cannot understand what you asked

@ZHyuwind
Copy link
Author

I cannot understand what you asked

sorry,maybe I need to understand how to transform dataset format again. I feel so sorry about disturbing you. Happy Christmas Eve!

@ZHyuwind
Copy link
Author

Hello, I want to ask a question that my own data also need annotations file like COCO's person_keypoints_val2017.json?

@mks0601
Copy link
Owner

mks0601 commented Dec 25, 2019

Right. You should convert annotation of your own dataset to MSCOCO format.

@mks0601
Copy link
Owner

mks0601 commented Dec 25, 2019

Maybe these codes would be helpful.
https://github.com/mks0601/TF-SimpleHumanPose/tree/master/tool

These codes convert mpii or posetrack datasets to coco format.

@ZHyuwind ZHyuwind reopened this Dec 25, 2019
@ZHyuwind
Copy link
Author

Thanks a lot, I will try!

@ZHyuwind
Copy link
Author

Hello, I used coco2017val dataset to get results from TF-simple pose, then take it as input_pose.json, but also appear "FileNotFoundError: [Errno 2] No such file or directory: 'tmp_result_0.pkl" ,I don't know how to deal with it. Please give me some advices, thank you very much!

@mks0601
Copy link
Owner

mks0601 commented Dec 31, 2019

The tmp_result_0.pkl is a just temporal file, which is automatically generated during testing. You should set proper dataset and testset in main/config.py and proper path in data/COCO/dataset.py.

@ZHyuwind
Copy link
Author

The tmp_result_0.pkl is a just temporal file, which is automatically generated during testing. You should set proper dataset and testset in main/config.py and proper path in data/COCO/dataset.py.

Thank you, my problem has solved.

@mks0601 mks0601 closed this as completed Mar 17, 2020
@lxy5513
Copy link

lxy5513 commented May 6, 2020

@mks0601 Hi, Could you please tell me how to generate /test_on_trainset/result.json in my own dataset.
Could I produce it by TF-SimpleHumanPose?, It is indispensable? and what's it role?

@mks0601
Copy link
Owner

mks0601 commented May 6, 2020

Most of the images do not have all keypoint coordinate annotations because of truncations or severe occlusions. I used test_on_trainset to fill the not annotated keypoint coordinates. The format of the .json file exactly follows MSCOCO format. You can use any human pose estimation method to get it.

@lxy5513
Copy link

lxy5513 commented May 6, 2020

@mks0601 Thanks your kind respond, Do you mean that original coordinate annotations may not include all keypoints, So the function of test_on_trainset is to mitigate the problem ?

@mks0601
Copy link
Owner

mks0601 commented May 6, 2020

Yes. For example, the annotation file of COCO dataset contains keypoints like the below figure.
스크린샷, 2020-05-06 13-24-50

Among x1, y1, v1, ..., v1 provides the below information.

Each keypoint has a 0-indexed location x,y and a visibility flag v defined as v=0: not labeled (in which case x=y=0), v=1: labeled but not visible, and v=2: labeled and visible.

If v==0, the coordinates are not annotated, which requires test_on_trainset.

@lxy5513
Copy link

lxy5513 commented May 6, 2020

So kind of you, thanks!

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

3 participants