keras-io icon indicating copy to clipboard operation
keras-io copied to clipboard

Image_captioning: How to save the model?

Open Ebimsv opened this issue 4 years ago • 2 comments
trafficstars

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

Ebimsv avatar Jun 21 '21 06:06 Ebimsv

Did you get any solution to this issue?

krishnaraj-sr avatar Aug 18 '21 08:08 krishnaraj-sr

I think this is also referenced in this issue https://github.com/keras-team/keras-io/issues/1364

shaunaa126 avatar May 18 '23 20:05 shaunaa126

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

sachinprasadhs avatar Jul 23 '24 20:07 sachinprasadhs

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.

github-actions[bot] avatar Aug 07 '24 01:08 github-actions[bot]

This issue was closed because it has been inactive for 28 days. Please reopen if you'd like to work on this further.

github-actions[bot] avatar Aug 22 '24 01:08 github-actions[bot]

Are you satisfied with the resolution of your issue? Yes No

github-actions[bot] avatar Aug 22 '24 01:08 github-actions[bot]