import tensorflow as tf # Load the existing model model = tf.keras.models.load_model('./plant_disease_detection_saved_model') # Save it in the SavedModel format model.save('./plant_disease_detection_saved_model', save_format='tf')