I want to deploy an AI model in google cloud but I am getting the following error:
Hi, @sani20.
Could you please let me know which file format you're using to save the model? Based on the logs, it appears you're using Keras 3 and the model format is not compatible with this version. Specifically, Keras 3 only supports the following formats:
Regards,
Mokit
Hi Mokit,
Thank you for your response. I saved the model with the following format and uploaded it in bucke:
Instead of this:
model_day2.save(model_day2_path, save_format="keras")
Can you're saving the model as a .keras file:
model_day2.save(model_day2_path + '.keras')
When loading the model, you can follow the format below:
from tensorflow.keras.models import load_model
model = load_model(model_day2_path + '.keras')
Regards,
Mokit
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |