rzai@rzai00:~/prj/visual-qa/scripts$ python evaluateMLP.py -model ../models/lstm_1_num_hidden_units_lstm_512_num_hidden_units_mlp_1024_num_hidden_layers_mlp_3.json -weights ../models/mlp_num_hidden_units_1024_num_hidden_layers_3_epoch_00_loss_5.10.hdf5 -results ../results/mlp_1024_3_ep0.txt
Using Theano backend.
Using gpu device 0: GeForce GTX 1080 (CNMeM is disabled)
Traceback (most recent call last):
File "evaluateMLP.py", line 102, in
main()
File "evaluateMLP.py", line 21, in main
model = model_from_json(open(args.model).read())
File "/usr/local/lib/python2.7/dist-packages/keras/models.py", line 197, in model_from_json
return layer_from_config(config, custom_objects=custom_objects)
File "/usr/local/lib/python2.7/dist-packages/keras/utils/layer_utils.py", line 25, in layer_from_config
class_name = config['class_name']
KeyError: 'class_name'
rzai@rzai00:~/prj/visual-qa/scripts$
rzai@rzai00:~/prj/visual-qa/scripts$ python evaluateMLP.py -model ../models/lstm_1_num_hidden_units_lstm_512_num_hidden_units_mlp_1024_num_hidden_layers_mlp_3.json -weights ../models/mlp_num_hidden_units_1024_num_hidden_layers_3_epoch_00_loss_5.10.hdf5 -results ../results/mlp_1024_3_ep0.txt Using Theano backend. Using gpu device 0: GeForce GTX 1080 (CNMeM is disabled) Traceback (most recent call last): File "evaluateMLP.py", line 102, in
main()
File "evaluateMLP.py", line 21, in main
model = model_from_json(open(args.model).read())
File "/usr/local/lib/python2.7/dist-packages/keras/models.py", line 197, in model_from_json
return layer_from_config(config, custom_objects=custom_objects)
File "/usr/local/lib/python2.7/dist-packages/keras/utils/layer_utils.py", line 25, in layer_from_config
class_name = config['class_name']
KeyError: 'class_name'
rzai@rzai00:~/prj/visual-qa/scripts$