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

KeyError: '11183447' #17

Closed
bupt-cist opened this issue Mar 12, 2019 · 5 comments
Closed

KeyError: '11183447' #17

bupt-cist opened this issue Mar 12, 2019 · 5 comments

Comments

@bupt-cist
Copy link

Hi, I uploaded test.json to evalai (test2019 phase) and got the following issues:

Traceback (most recent call last):
File "/code/scripts/workers/submission_worker.py", line 336, in run_submission
submission_metadata=submission_serializer.data,
File "/tmp/tmpnr9tlxl6/compute/challenge_data/challenge_225/main.py", line 96, in evaluate
output["result"].append({tier: getScores(questions, questions, predictions, tier, kwargs['submission_metadata']['method_name'])})
File "/tmp/tmpnr9tlxl6/compute/challenge_data/challenge_225/main.py", line 315, in getScores
predicted = predictions[qid]
KeyError: '11183447'

I find that the question id '11183447' is in validation split, not in the test split.
So, it is strange that there is a keyerror here in test2019 phase.

@Cadene
Copy link

Cadene commented Mar 12, 2019

I had the same issue.

To evaluate results on GQA, please submit a JSON file which contains answer to each question from the submission_all_questions.json. The submission format should be the following:

source

@bupt-cist
Copy link
Author

bupt-cist commented Mar 12, 2019

I want to participate in test2019. Does that mean I have to submit a JSON file which contains BOTH answers for submission_all_questions.json and test_all_questions.json? @Cadene

@Cadene
Copy link

Cadene commented Mar 12, 2019

submission only

@chenfei-wu
Copy link

You are right. '11183447' is exactly the first question_id in submission_all_questions.json. Thanks a lot! @Cadene

@dorarad
Copy link
Collaborator

dorarad commented Mar 13, 2019

Hi, sorry for the late reply! you should submit answers for all the questions in submission_all_questions.json. However, we will evaluate you based only on the split you choose to submit to (we use the others just to verify overall validity of the submission file, following evalAI practice).

@dorarad dorarad pinned this issue Mar 13, 2019
@dorarad dorarad closed this as completed Mar 13, 2019
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

3 participants