stratospark / food-101-keras

Food Classification with Deep Learning in Keras / Tensorflow
http://blog.stratospark.com/deep-learning-applied-food-classification-deep-learning-keras.html
MIT License
700 stars 232 forks source link

Improper config format while loading model. #16

Open diliplilaramani opened 6 years ago

diliplilaramani commented 6 years ago

I am getting error (below), while loading model. Can you help? -

from keras.models import load_model loaded_model = load_model('model4b.10-0.68.hdf5')

ERROR: deserialize_keras_object raise ValueError('Improper config format: ' + str(config)) ValueError: Improper config format: {u'l2': 0.0005000000237487257, u'name': u'WeightRegularizer', u'l1': 0.0}

I think you're have done the training using Keras 1 & I'm using Keras 2, do you think this can be the issue?

Ref. - https://github.com/keras-team/keras/issues/6382

CCYChongyanChen commented 5 years ago

I also got this error and fixed by using keras 1.2.2