Skip to content

Improper config format while loading model. #16

@diliplilaramani

Description

@diliplilaramani

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. - keras-team/keras#6382

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions