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

The models you given in the Instructions is not useable #20

Closed
zhenglm opened this issue Nov 7, 2017 · 2 comments
Closed

The models you given in the Instructions is not useable #20

zhenglm opened this issue Nov 7, 2017 · 2 comments

Comments

@zhenglm
Copy link

zhenglm commented Nov 7, 2017

python predict.py --batch_size 100 --dev_data data/dev_data_str.pkl models/31-t3.05458271443-v3.27696280528.model prediction.json
Preparing model...Traceback (most recent call last):
File "predict.py", line 33, in
model = load_model(args.model, custom_objects())
File "/usr/local/lib/python2.7/dist-packages/keras/models.py", line 233, in load_model
model = model_from_config(model_config, custom_objects=custom_objects)
File "/usr/local/lib/python2.7/dist-packages/keras/models.py", line 307, in model_from_config
return layer_module.deserialize(config, custom_objects=custom_objects)
File "/usr/local/lib/python2.7/dist-packages/keras/layers/init.py", line 54, in deserialize
printable_module_name='layer')
File "/usr/local/lib/python2.7/dist-packages/keras/utils/generic_utils.py", line 139, in deserialize_keras_object
list(custom_objects.items())))
File "/usr/local/lib/python2.7/dist-packages/keras/engine/topology.py", line 2450, in from_config
process_layer(layer_data)
File "/usr/local/lib/python2.7/dist-packages/keras/engine/topology.py", line 2447, in process_layer
layer(input_tensors, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/keras/engine/topology.py", line 571, in call
self.build(input_shapes)
File "/home/zhengliming/Keras_2.0.6/R-NET-in-Keras/layers/QuestionPooling.py", line 26, in build
assert(isinstance(input_shape, list) and len(input_shape) == 5)
AssertionError

@MartinXPN
Copy link
Member

MartinXPN commented Nov 7, 2017

This issue is caused because of the same problem addressed in Issue #13

Please see the solution suggested there

@zhenglm
Copy link
Author

zhenglm commented Nov 10, 2017

OK, Thanks

@zhenglm zhenglm closed this as completed Nov 10, 2017
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

2 participants