keras-team / keras-io

Keras documentation, hosted live at keras.io
Apache License 2.0
2.74k stars 2.03k forks source link

Add model saving and reloading sections to code example #1235

Closed innat closed 1 year ago

innat commented 1 year ago

It would be good practice to demonstrate model saving and re-loading options while writing code example. Practitioner use keras code example and in some cases, they face issue to successfully save and reload the model. Here are some issue asked in stack.

nkovela1 commented 1 year ago

Thanks for the request! Would you be interested in contributing sections to these tutorials regarding saving and loading for these models?

innat commented 1 year ago

Sure. I will.

Additionally, I think this should be documented in keras io contribution guidelines. WDYT?

nkovela1 commented 1 year ago

Good idea! We will add to the contribution guide under "Model development best practices." We are in the process of rolling out a new default saving format for Keras and will update the guide once this is in a new stable release.

SuryanarayanaY commented 1 year ago

Hi @innat ,

The proposed PR has been merged now and the changes will affect soon. Shall we mark it as resolved ?

Thanks!

innat commented 1 year ago

Not really. Or, I am not sure. In the keras-core repo, contributors converts the keras code example to backend agnostoc api. Those update should now run on tf, torch and jax. I am not sure if they were suggested to add section for saving and reloading with keras_v3 format.