DirtyHarryLYL / HAKE-Action-Torch

HAKE-Action in PyTorch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Puzzle about VERBS 57 and 146.

quan1e opened this issue · comments

Dear authors:
When i try to replace my own dataset, i find the code as follows:
activity2vec/ult/config.py
Line:125 __C.DEMO.EXCLUDED_VERBS = [57, 146]
dataset/hake_dataset.py
Line:193 annos.verbs[global_idx][57] = 1
Line:222 annos.verbs[global_idx][57] = 1
I wonder what special meanings do the verb 57 and 146 have?
In my dataset, the number of verbs is less than 57, so errors about out of bounds are reported due to the above settings. And how should i replace the setting about verb 57 and 146 ?
Thank you!

Verb 57 means no interaction is performed in our verb list, and in the demo program we simply exclude it for convenience. For the same reason, in the dataloader, the verb of negative samples is also set to 57. If you want to use your own dataset with different verb definition, just ignore it.

Verb 146 means 'touch' in our verb list, and we exclude it in demo due to the lackness of training samples. You can also remove the exclusion.

Thanks for your patience.