We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When using the callback ModelCheckpoint, the path argument for saving the model must end with .weights.h5, or else it raises an error like this:
ModelCheckpoint
.weights.h5
ValueError: The filename must end in `.weights.h5`. Received: filepath=/tmp/model.keras
The text was updated successfully, but these errors were encountered:
Hi,
Thanks for reporting the issue.
Below is the recommended way of saving model weights in new Keras 3.
Keras 3
model.save('my_model.keras') # (recommended)``` to save the weight file using .h5, save it like below. `model.save_weight('my_model.weights.h5`)`
Sorry, something went wrong.
keras-team/keras#18613 (comment)
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.
sachinprasadhs
No branches or pull requests
When using the callback
ModelCheckpoint
, the path argument for saving the model must end with.weights.h5
, or else it raises an error like this:The text was updated successfully, but these errors were encountered: