xiaochus / Vehicle_Tracking

OpenCV 3 & Keras implementation of vehicle tracking with video data.
MIT License
117 stars 41 forks source link

ValueError: Improper config format: #1

Closed CColten closed 6 years ago

CColten commented 6 years ago

thanks for the program ! when I run the program,the error appeared in model = load_model('model/weights.h5) like this: ValueError: Improper config format: {u'l2': 0.0005000000237487257, u'name': u'L1L2Regularizer', u'l1': 0.0}

i'm working in Python 2.7, do you know the reason .

xiaochus commented 6 years ago

@CColten This program is based on python 3.6 and keras 1.2.2. If you are using keras 2, the structure of the saved model file will be different and causing an error when loading h5 model.

You can change the keras version or re-train the cnn model.

CColten commented 6 years ago

thank you for your reply. the problem is what you said