-
Notifications
You must be signed in to change notification settings - Fork 88
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
Assertion Error problem #25
Comments
I am also having this issue. @YvesHarrison were you able to make any progress? @mahnerak @MartinXPN are you aware of a solution? |
Are you sure the python preprocessing.py data/dev_parsed.json --outfile data/dev_data_str.pkl --include_str |
@mahnerak Yes, I just ran it again to double check. I'm running Theano==1.0.0 and Keras==2.0.6, are those appropriate versions? I printed the input shape right before the assertion, and got this: |
i'm very new in this field. can you help me solve the Assertion Error problem. i ran the code keras = 2.0.6 , python = 2.7 version. But i got an issue: Using TensorFlow backend. |
I used this command to predict:
python predict.py --batch_size 100 --dev_data data/dev_data_str.pkl models/31-t3.05458271443-v3.27696280528.model prediction.json
But I came across an assertion problem:
Preparing model...Traceback (most recent call last):
File "predict.py", line 33, in
model = load_model(args.model, custom_objects())
File "build/bdist.linux-x86_64/egg/keras/models.py", line 233, in load_model
File "build/bdist.linux-x86_64/egg/keras/models.py", line 307, in model_from_config
File "build/bdist.linux-x86_64/egg/keras/layers/init.py", line 54, in deserialize
File "build/bdist.linux-x86_64/egg/keras/utils/generic_utils.py", line 139, in deserialize_keras_object
File "build/bdist.linux-x86_64/egg/keras/engine/topology.py", line 2450, in from_config
File "build/bdist.linux-x86_64/egg/keras/engine/topology.py", line 2447, in process_layer
File "build/bdist.linux-x86_64/egg/keras/engine/topology.py", line 571, in call
File "/home/lxz/nlpProject/R-NET-in-Keras/layers/QuestionPooling.py", line 26, in build
assert(isinstance(input_shape, list) and len(input_shape) == 5)
AssertionError
What should I do to fix it?
The text was updated successfully, but these errors were encountered: