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

About vsrl_eval.py and an error occurred during the test. #23

Open
YSN1011 opened this issue Nov 21, 2019 · 1 comment
Open

About vsrl_eval.py and an error occurred during the test. #23

YSN1011 opened this issue Nov 21, 2019 · 1 comment

Comments

@YSN1011
Copy link

YSN1011 commented Nov 21, 2019

Dear Authors,

Thank you very much for releasing the code (https://github.com/SiyuanQi/gpnn) of your GPNN for HOI work. I'd like to ask you some questions.
1.The vsrl_eval.py file is under the VCOCO data set. Should I put it in the same directory as the VCOCO. Py file?If not, I will display an impot error.
2.When I test, the following error will be shown.KeyError: u'stand_agent'. Is it because the PKL file generated by my training is not correct?

@Kebii
Copy link

Kebii commented May 10, 2020

Have you solved the third question?
I meet the same problem.

Traceback (most recent call last):
File "vcoco.py", line 465, in
main(args)
File "vcoco.py", line 277, in main
validate(args, test_loader, model, mse_loss, multi_label_loss, test_vcocoeval, test=True)
File "vcoco.py", line 395, in validate
vcoco_evaluation(args, vcocoeval, 'test', all_results)
File "vcoco.py", line 117, in vcoco_evaluation
vcocoeval._do_eval(det_file, ovr_thresh=0.5)
File "/mnt/data/zjx/Repository/gpnn/src/python/vsrl_eval.py", line 193, in _do_eval
self._do_agent_eval(vcocodb, detections_file, ovr_thresh=ovr_thresh)
File "/mnt/data/zjx/Repository/gpnn/src/python/vsrl_eval.py", line 354, in _do_agent_eval
pred_agents, _ = self._collect_detections_for_image(dets, image_id)
File "/mnt/data/zjx/Repository/gpnn/src/python/vsrl_eval.py", line 185, in collect_detections_for_image
this_role[0, 5 * aid: 5 * aid + 5, j-1] = det[self.actions[aid] + '
' + rid]
KeyError: 'hold_obj'

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