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

Custom Dataset #17

Closed
johnolap opened this issue Dec 22, 2021 · 5 comments
Closed

Custom Dataset #17

johnolap opened this issue Dec 22, 2021 · 5 comments

Comments

@johnolap
Copy link

Hello,

Thanks for this great project! I have a quick question; I'm adapting the CDN code to a custom dataset. However, I can't seem to understand the format. I have converted my dataset to the VCOCO format and I was able to extract the dict keys: (['image_id', 'ann_id', 'role_object_id', 'label', 'action_name', 'role_name', 'include']) but I don't understand the pattern in the trainval.json, train.json, val.json, and test.json.

@YueLiao
Copy link
Owner

YueLiao commented Dec 23, 2021

Thx for your interest in our project~

We directly apply the JSON file provided by QPIC, and you may follow QPIC to transform the annotations with their script.

@johnolap
Copy link
Author

Great. Thanks so much for your response.

@johnolap
Copy link
Author

Hi, thanks again for your reply. I have a follow-up question, The convert_vcoco_annotations.py script converts vcoco to HOIA format. But I am trying to convert a coco format annotation to HOIA by manually adding the interactions. However, I'm unable to understand a few things,
in HOIA format :
what does {subject_id , category_id, object_id} mean in "hoi_annotations" dict key,
what does {category_id} mean in "annotations" dict key"

@YueLiao
Copy link
Owner

YueLiao commented Dec 24, 2021

Hi, the subject_id and object_id is the index of the box annotations list. And category_id in annotations means the category of this box.

@johnolap
Copy link
Author

Got it, thank you!

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