-
Notifications
You must be signed in to change notification settings - Fork 8
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: 'program_parsed'" when running the program #1
Comments
Getting the same error. If I modify 'inner()' function in train.py when 'is_train=False' to estimate 'program parsed' and 'program_parsed_encoded' just like when 'is_train=True' , the code will proceed further, but will fail as the downloaded parser cannot parse test questions. That is, the first 10 questions from the test set:
And the parser will process them in the following way (showing the first two):
Could you please have a look at this? I suspect the parser provided cannot process meta concept words like 'synonym'.. |
Update to my previous comment: have been testing the parser separately, and while in
|
Same issue here. @anette123 may I know if you have solved this problem? |
I'd also like to call for the authors' attention to this issue @vacancy @Glaciohound |
Hi. I tried to test the pretrained model using the test data from CLEVR dataset but had a error 'KeyError: 'program_parsed''. The command I typed in is as follows.
jac-crun 0 scripts/main.py --mode run-experiment --task CLEVR --model VCML --experiment synonym_generalization --log_dir ../data/log --data_dir ../data/ --pretrained --in_epoch test
and the error message shown is as follows.
0:00:52.63 | => epoch 0
|
0:00:52.85 | -----> Testing
Traceback (most recent call last):
File "scripts/main.py", line 44, in
main()
File "scripts/main.py", line 34, in main
run_experiment.run(args)
File "/home/dule/Desktop/NN/AAAI_21/nuero-symbolic_ai/VCML/scripts/run_experiment.py", line 181, in run
processes[0]._target(*processes[0]._args)
File "/home/dule/Desktop/NN/AAAI_21/nuero-symbolic_ai/VCML/scripts/run_experiment.py", line 151, in ready_go
train(coach, args)
File "/home/dule/Desktop/NN/AAAI_21/nuero-symbolic_ai/VCML/scripts/utils/train.py", line 223, in train
run_epoch(coach, args, coach.epoch)
File "/home/dule/Desktop/NN/AAAI_21/nuero-symbolic_ai/VCML/scripts/utils/train.py", line 192, in run_epoch
True, False
File "/home/dule/Desktop/NN/AAAI_21/nuero-symbolic_ai/VCML/scripts/utils/train.py", line 142, in any_epoch
inner()
File "/home/dule/Desktop/NN/AAAI_21/nuero-symbolic_ai/VCML/scripts/utils/train.py", line 128, in inner
loss, outputs = run_batch(data, model, args)
File "/home/dule/Desktop/NN/AAAI_21/nuero-symbolic_ai/VCML/scripts/utils/train.py", line 82, in run_batch
losses, outputs, debugs, objects = model(data)
File "/home/dule/anaconda3/envs/VCML/lib/python3.6/site-packages/torch/nn/modules/module.py", line 547, in call
result = self.forward(*input, **kwargs)
File "/home/dule/Desktop/NN/AAAI_21/nuero-symbolic_ai/VCML/models/model/vcml_model.py", line 87, in forward
program = data['program_parsed']
KeyError: 'program_parsed'
ipdb>
Any suggestions how to fix this issue? Thank you very much!
The text was updated successfully, but these errors were encountered: