About 60000_TIN_VCOCO_D.pkl
SherlockHolmes221 opened this issue · comments
File "tools/vcoco_lis_nis.py", line 184, in generate_pkl
score_binary_d = np.array(dic_d['binary_score'])
KeyError: 'binary_score'
the dic_d is 60000_TIN_VCOCO_D.pkl, and I have download it from https://docs.google.com/uc?export=download&id=1sJipmoZ-5u0ymm8diqYd5Yqk2A-QQBXN
Yeah, you need to download the predictions of the interactiveness model, then use them as the reference in NIS function.
Any problems?
Thanks for your reply!
One more question:
Should I replace the '60000_TIN_VCOCO_D.pkl' and '80000_TIN_D_noS.pkl' when testing my model in hico and vcoco dataset cause the best binary_score in these two file(used in NIS) is no long match the index of my trained model's predicted hoi pairs? Or I should keep them?
Yeah, if you have replaced the human-object pairs, like the boxes, then the interactiveness binary scores are no longer suitable.
You could retrain the interactiveness model and the HOI model on your own pairs.
Then after obtaining your own best interactiveness scores, you may use them to filtering the non-interactive pairs.
Got it! Thanks for your reply!
Then I want to ask where I can download your predictions of the interactiveness model of vcoco?
You could use:
python script/Download_data.py 1sjV6e916NIPcYYqbGwhKM6Vhl7SY6WqD -Results/80000_TIN_D_noS.pkl
python script/Download_data.py 1sJipmoZ-5u0ymm8diqYd5Yqk2A-QQBXN -Results/60000_TIN_VCOCO_D.pkl
to download the interactiveness scores for HICO-DET and V-COCO, or you may just directly run the script: script/download_dataset.sh. It will get everything done.
Sorry for my carelessness, thanks a for your patience. I will close the issue.
File "tools/vcoco_lis_nis.py", line 184, in generate_pkl
score_binary_d = np.array(dic_d['binary_score'])
KeyError: 'binary_score'the dic_d is 60000_TIN_VCOCO_D.pkl, and I have download it from https://docs.google.com/uc?export=download&id=1sJipmoZ-5u0ymm8diqYd5Yqk2A-QQBXN
I have downloaded the prediction file but still got a KeyError when running Test_TIN_VCOCO.py
. Could you please tell me how do you solve this problem?
File "tools/vcoco_lis_nis.py", line 184, in generate_pkl
score_binary_d = np.array(dic_d['binary_score'])
KeyError: 'binary_score'
the dic_d is 60000_TIN_VCOCO_D.pkl, and I have download it from https://docs.google.com/uc?export=download&id=1sJipmoZ-5u0ymm8diqYd5Yqk2A-QQBXNI have downloaded the prediction file but still got a KeyError when running
Test_TIN_VCOCO.py
. Could you please tell me how do you solve this problem?
Thanks for using our code! Would you mind providing more detailed error information?
Thanks for your reply, especially in this Dragon Boat Festival holiday! Finally I fixed this error by changing the key from 'binary_score'
to b'binary_score'
, and now it works fine. By the way , How do you guys get the HO_weight
and H_weight
appeared in the TIN_VCOCO.py
?
Thanks for your reply, especially in this Dragon Boat Festival holiday! Finally I fixed this error by changing the key from
'binary_score'
tob'binary_score'
, and now it works fine. By the way , How do you guys get theHO_weight
andH_weight
appeared in theTIN_VCOCO.py
?
Please refer to #36 for detailed description. The weight generation strategies for HICO-DET and V-COCO are the same.
Got it! Many thanks for helping:)