lukas / ml-class

Machine learning lessons and teaching projects designed for engineers
https://www.youtube.com/channel/UCBp3w4DCEC64FZr4k9ROxig
GNU General Public License v2.0
2.37k stars 1.17k forks source link

issue with model weights in keras-puzzle/weights.py #26

Closed nikohartline closed 4 years ago

nikohartline commented 7 years ago

Errored when loading in perceptron.h5 (running code as is):

File "weights.py", line 49, in weight0, bias0 = load_weights_from_keras_perceptron('perceptron.h5') File "weights.py", line 33, in load_weights_from_keras_perceptron bias = f['model_weights']['dense_1']['dense_1']['bias:0'][()] KeyError: "Unable to open object (object 'model_weights' doesn't exist)"