Skip to content
New issue

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

Upgrade model files to Keras v3 #9

Open
mostafa opened this issue Mar 24, 2024 · 0 comments
Open

Upgrade model files to Keras v3 #9

mostafa opened this issue Mar 24, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@mostafa
Copy link
Member

mostafa commented Mar 24, 2024

This is the error from a failed workflow:

ValueError: File format not supported: filepath=sqli_model/1. Keras 3 only supports V3 `.keras` files and legacy H5 format files (`.h5` extension). Note that the legacy SavedModel format is not supported by `load_model()` in Keras 3. In order to reload a TensorFlow SavedModel as an inference-only layer in Keras 3, use `keras.layers.TFSMLayer(sqli_model/1, call_endpoint='serving_default')` (note that your `call_endpoint` might have a different name).

Resources

@mostafa mostafa added the enhancement New feature or request label Mar 24, 2024
@mostafa mostafa added this to the v0.0.x milestone Mar 24, 2024
@mostafa mostafa self-assigned this Mar 24, 2024
@mostafa mostafa changed the title Upgrade model files to Keras V3 Upgrade model files to Keras v3 Mar 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant