Keras Model AttributeError:’str‘ object has no attribute ’call‘

created at 10-02-2021 views: 2

This problem is because you use single quotation marks when using load_model, and double quotation marks are always used on Python

keras_model = tf.keras_models.load_model("./test.h5")

Use double quotes when writing

open("./test1.tflite","wb").write(tflite_model)
Please log in to leave a comment.