Open monajalal opened 6 years ago
same here +1
Similar error
/usr/local/lib/python3.6/site-packages/h5py/init.py:36: FutureWarning: Conversion of the second argument of issubdtype from float
to np.floating
is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type
.
from ._conv import register_converters as _register_converters
Using TensorFlow backend.
/usr/local/lib/python3.6/site-packages/keras/preprocessing/text.py:172: UserWarning: The nb_words
argument in Tokenizer
has been renamed num_words
.
warnings.warn('The nb_words
argument in Tokenizer
'
/usr/local/lib/python3.6/site-packages/keras/engine/topology.py:1271: UserWarning: The dropout
argument is no longer support in Embedding
. You can apply a keras.layers.SpatialDropout1D
layer right after the Embedding
layer to get the same behavior.
return cls(config)
/usr/local/lib/python3.6/site-packages/keras/engine/topology.py:1271: UserWarning: Update your Embedding
call to the Keras 2 API: Embedding(trainable=False, name="embedding_1", activity_regularizer=None, input_dtype="int32", mask_zero=False, input_dim=20000, batch_input_shape=[None, 100..., output_dim=200, input_length=1000, embeddings_initializer="uniform", embeddings_regularizer=None, embeddings_constraint=None)
return cls(config)
Traceback (most recent call last):
File "predict.py", line 41, in
We should have same version of keras installed in your system and the trained model.
When I run your code I get this error:
How should I fix it?