Hello,
A really great tutorial!
Just what I was looking for. When I am trying this with a custom Keras model,the load_model() seems to be failing. I have a custom model trained in Keras that I am trying to bundle it as an android app.
model = load_model('my_weights_tensorflow.h5')
ValueError Traceback (most recent call last)
in ()
----> 1 model = load_model('my_weights_tensorflow.h5')
/usr/local/lib/python2.7/dist-packages/keras/models.pyc in load_model(filepath, custom_objects)
138 model_config = f.attrs.get('model_config')
139 if model_config is None:
--> 140 raise ValueError('No model found in config file.')
141 model_config = json.loads(model_config.decode('utf-8'))
142 model = model_from_config(model_config, custom_objects=custom_objects)
ValueError: No model found in config file.
I could load your model without any problem.
Any input would be of great assistance.
Thanks in advance!