Keras model params are all “NaN”s after reloading
问题 I use transfer learning with Resnet50. I create a new model out of the pretrained model provided by Keras (the 'imagenet'). After training my new model, I save it as following: # Save the Siamese Network architecture siamese_model_json = siamese_network.to_json() with open("saved_model/siamese_network_arch.json", "w") as json_file: json_file.write(siamese_model_json) # save the Siamese Network model weights siamese_network.save_weights('saved_model/siamese_model_weights.h5') And later, I