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

How to get the COCO style json file for MHP or CHIP dataset? #5

Open
zyf12389 opened this issue Oct 30, 2019 · 6 comments
Open

How to get the COCO style json file for MHP or CHIP dataset? #5

zyf12389 opened this issue Oct 30, 2019 · 6 comments

Comments

@zyf12389
Copy link

annotations style in COCO must be binary. So, what is your json file generated by, is it based on the whole person or the body part? Thanks.

@jiawenhao2015
Copy link

the same question~~~~thanks

@jiawenhao2015
Copy link

jiawenhao2015 commented Nov 20, 2020

annotations style in COCO must be binary. So, what is your json file generated by, is it based on the whole person or the body part? Thanks.

hello~~~do you find the way get the json anno file after 1 year?......many thanks.~~~~~

@zyf12389
Copy link
Author

zyf12389 commented Nov 20, 2020

I just added the path of the annotation to the json file in coco format.(e.g.
annotation_info = {
"id": annotation_id,
"image_id": image_id,
"bbox": bounding_box.tolist(),
"parsing_file": annotation_filename,
......
})

@jiawenhao2015
Copy link

jiawenhao2015 commented Nov 20, 2020

I just added the path of the annotation to the json file in coco format.(e.g.
annotation_info = {
"id": annotation_id,
"image_id": image_id,
"bbox": bounding_box.tolist(),
"parsing_file": annotation_filename,
......
})

many many thanks for your reply~~~~
so you mean, the json file actually contains no label info, but the really label img's path?
do you change the dataset.py code? or use some other tools convert the MHP or CHIP label to coco style?

@zyf12389
Copy link
Author

Yes, the json file actually contains label annotation's path and used pycococreator.

@jiawenhao2015
Copy link

Yes, the json file actually contains label annotation's path and used pycococreator.

ok ~~~~~~thanks a lot~~~~~~~~~~~i will try ~~~

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