You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running vg_preprocessing.py, it throws following error:
Traceback (most recent call last):
File "vg_preprocessing.py", line 20, in
QAs = GetAllQAs(DATA_PATH)
File "/home/zhuchen/sources/vqa-mcb/preprocess/visual_genome_python_driver/src/local.py", line 50, in GetAllQAs
output.append(utils.ParseQA(image['qas'], imageMap))
File "/home/zhuchen/sources/vqa-mcb/preprocess/visual_genome_python_driver/src/utils.py", line 100, in ParseQA
qas.append(QA(d['id'], image_map[d['image']], d['question'], d['answer'], qos, aos))
KeyError: 'id'
I guess it is because the json file has been modified since Visual Genome v1.2 was released, because the 'Download question answers' links of both versions lead to the same url....
Is there anything wrong with what I have done? Or do I need the old version of question answer pairs? If so, could you kindly provide the original json file? Thanks!
The text was updated successfully, but these errors were encountered:
Simply use the 1.2 version which is available
Do
visual_genome_python_driver$ git checkout 64b79cfccac2b5fc4d3972eba6e1bf522b832736
As this was the time when they observed it: ranjaykrishna/visual_genome_python_driver@64b79cf
I have downloaded visual_genome_python_driver from the link you provided, and https://visualgenome.org/static/data/dataset/question_answers.json.zip from https://visualgenome.org/static/data/dataset/question_answers.json.zip. The only thing I have modified is DATA_PATH in vg_preprocessing.py.
When running vg_preprocessing.py, it throws following error:
Traceback (most recent call last):
File "vg_preprocessing.py", line 20, in
QAs = GetAllQAs(DATA_PATH)
File "/home/zhuchen/sources/vqa-mcb/preprocess/visual_genome_python_driver/src/local.py", line 50, in GetAllQAs
output.append(utils.ParseQA(image['qas'], imageMap))
File "/home/zhuchen/sources/vqa-mcb/preprocess/visual_genome_python_driver/src/utils.py", line 100, in ParseQA
qas.append(QA(d['id'], image_map[d['image']], d['question'], d['answer'], qos, aos))
KeyError: 'id'
I guess it is because the json file has been modified since Visual Genome v1.2 was released, because the 'Download question answers' links of both versions lead to the same url....
Is there anything wrong with what I have done? Or do I need the old version of question answer pairs? If so, could you kindly provide the original json file? Thanks!
The text was updated successfully, but these errors were encountered: