I have trained a keras sequential model in a linux 64 machine and saved to a .h5 file.
It this PC I can load the model and do predictions without problems.
Now I'm implementing the prediction in a Raspberry Pi 3 that have installed keras, tensorflow, h5py and python3.
when I load the model
from keras.models import load_model
model = load_model('model-0.6358.h5')
, I'm getting:
usr/lib/python3.4/importlib/_bootstrap.py:321: 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`.
return f(*args, **kwds)
/usr/local/lib/python3.4/dist-packages/keras/models.py:291: UserWarning: Error in loading the saved optimizer state. As a result, your model is starting with a freshly initialized optimizer.
warnings.warn('Error in loading the saved optimizer '
But... it looks like it predicts right.
How can I avoid that warning message?