save model and load model giving different model.predict results (keras)

My keras model achieved a test accuracy of 98%. I ran model.predict on the test data within the same script and got pretty much the same results. I then tried and tf.keras.models.load_model() within the same script that I trained in and got the same results with model.predict. But when I load the model in a different script, and then do model.predict on the test data, accuracy is 0%. I have tensorflow 2.7.0. Has this happened for anyone else?

submitted by /u/berimbolo21
[visit reddit] [comments]

Leave a Reply

Your email address will not be published. Required fields are marked *