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 train with custom data #20

Open
Zhanyi0923 opened this issue Dec 28, 2021 · 2 comments
Open

How to train with custom data #20

Zhanyi0923 opened this issue Dec 28, 2021 · 2 comments

Comments

@Zhanyi0923
Copy link

Hi,thank u for ur great work!
I'm working on the HOI detection recently.I want to make my own dataset as the form of HICO-DET. Do u know how to annotate the dataset or what tools should I use ?
Thanks again!

@zhihou7
Copy link
Owner

zhihou7 commented Dec 28, 2021

Do you mean how to annotate your own dataset? I refer to this paper (https://arxiv.org/abs/1702.05448) which describes the annotation of HICO-DET.

If you want to train your own dataset with HOI-CL, you should provide the annotation with a similar format as "Trainval_GT_HICO.pkl". The file can be downloaded as follow,

python lib/ult/Download_data.py 1le4aziSn_96cN3dIPCYyNsBXJVDD8-CZ Data/Trainval_GT_HICO.pkl

Trainval_GT_HICO.pkl is a list. each item represents an annotation: <image_id, HOI_category, human_box, object_box, ...> We do not use the other number. You might also provide a Tranval_Neg_HICO.pkl for not annotated negative samples (i.e., no interaction).

Then, you should change the directory in ult.py, e.g. hico_20160224_det/images/train2015/HICO_train2015_ to your own image directory.

@Zhanyi0923
Copy link
Author

Zhanyi0923 commented Dec 29, 2021 via email

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