Closed randaller closed 6 years ago
I have found the solution, this is really not keras.js, but Keras issue. Instead of loading all the model, just load only the weights, when you want to continue training.
model = load_model('my_first.h5')
# replace with
model.load_weights('my_first.h5')
# and then my_second.h5 will be the same size as my_first and keras.js will load converted .bin file well
keras==2.1.2 keras.js==latest only browser, no nodejs or so
Let me show it using MNIST example:
and the error is:
I am loading models using only .bin file, and it works great (except of this case). Probably, need to load models using json, weights & pb file?
It is not so easy to train my networks without interruption sometimes, but I'm unable to use models, that have been stopped and then continued training, may be anybody else faced this issue?