keras-io
keras-io copied to clipboard
Image_captioning: How to save the model?
Hello I get this error when I try to save the model:
cannot be saved because the input shapes have not been set. Usually, input shapes are automatically determined from calling .fit() or .predict(). To manually set the shapes, call model.build(input_shape).
please help me if you know how to resolve this Error
Did you get any solution to this issue?
I think this is also referenced in this issue https://github.com/keras-team/keras-io/issues/1364
Hi, In order to save the model with custom object using Keras saving format .keras you need to override the get_config() method, for detailed steps follow the guide here https://keras.io/guides/serialization_and_saving/#custom-objects
This issue is stale because it has been open for 14 days with no activity. It will be closed if no further activity occurs. Thank you.
This issue was closed because it has been inactive for 28 days. Please reopen if you'd like to work on this further.