import tensorflow as tf # Load SavedModel model = tf.keras.models.load_model('.') # Save sebagai .h5 model.save('model.h5', save_format='h5') print("Model converted to .h5")