Description
I performed installation as it said in tutorial, succesfully run trainMLP.py
But when i try to run demo_batch.py I get error
File "demo_batch.py", line 71, in <module> main() File "demo_batch.py", line 34, in main model = model_from_json(open(args.model).read()) File "/home/deep/temp/vqa_web_demo/vqa/local/lib/python2.7/site-packages/keras/models.py", line 166, in model_from_json return model_from_config(config, custom_objects=custom_objects) File "/home/deep/temp/vqa_web_demo/vqa/local/lib/python2.7/site-packages/keras/models.py", line 177, in model_from_config model = container_from_config(config, custom_objects=custom_objects) File "/home/deep/temp/vqa_web_demo/vqa/local/lib/python2.7/site-packages/keras/utils/layer_utils.py", line 44, in container_from_config init_layer = container_from_config(layer) File "/home/deep/temp/vqa_web_demo/vqa/local/lib/python2.7/site-packages/keras/utils/layer_utils.py", line 35, in container_from_config init_layer = container_from_config(layer) File "/home/deep/temp/vqa_web_demo/vqa/local/lib/python2.7/site-packages/keras/utils/layer_utils.py", line 44, in container_from_config init_layer = container_from_config(layer) File "/home/deep/temp/vqa_web_demo/vqa/local/lib/python2.7/site-packages/keras/utils/layer_utils.py", line 102, in container_from_config base_layer = get_layer(name, layer_dict) File "/home/deep/temp/vqa_web_demo/vqa/local/lib/python2.7/site-packages/keras/utils/layer_utils.py", line 168, in get_layer instantiate=True, kwargs=kwargs) File "/home/deep/temp/vqa_web_demo/vqa/local/lib/python2.7/site-packages/keras/utils/generic_utils.py", line 18, in get_from_module return res(**kwargs) File "/home/deep/temp/vqa_web_demo/vqa/local/lib/python2.7/site-packages/keras/layers/recurrent.py", line 559, in __init__ super(LSTM, self).__init__(**kwargs) File "/home/deep/temp/vqa_web_demo/vqa/local/lib/python2.7/site-packages/keras/layers/recurrent.py", line 132, in __init__ super(Recurrent, self).__init__(**kwargs) File "/home/deep/temp/vqa_web_demo/vqa/local/lib/python2.7/site-packages/keras/layers/core.py", line 47, in __init__ assert kwarg in allowed_kwargs, 'Keyword argument not understood: ' + kwarg AssertionError: Keyword argument not understood: truncate_gradient
Why this error happen and how can i fix it? Thanks