DirtyHarryLYL / HAKE-Action-Torch

HAKE-Action in PyTorch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missing file 'gt_hoi_py2/hoi_%d.pkl'

IreneMahhy opened this issue · comments

Thank you for your great work! But i've got a problem, for evaluation I run the file 'get_map.py', in line 37 it reads these files but there aren't any related files provided. Can anyone help me with this?

Thanks for using! We have uploaded the file and updated the corresponding code.

Thanks for using! We have uploaded the file and updated the corresponding code.

That helps a lot, thanks for your reply. By the way, I also found that there are something to be fixed in the code.

  1. When extracting features, errors will come out from here caused by 'int' type of image path

    default='Data/hico_20160224_det/images/train2015/', type=int)

  2. Arguments missing in config.py causes error in these two places

    weight_decay=cfg.TRAIN.WEIGHT_DECAY,

    weight_decay=cfg.TRAIN.WEIGHT_DECAY,

  3. Since the function 'calc_ap_ko' returns a dict, this line will assign keys in the dict to variables which will be str type, should add '.values()' in the end.

    map[hoi_id], mrec[hoi_id], map_ko[hoi_id], mrec_ko[hoi_id] = calc_ap_ko(score, bbox, key, hoi_id, begin, ko_mask)

Maybe you can check it out when you have time. Best wishes!

Thanks a lot for point out! We have fixed them in the latest commit.