Skip to content

Can't run flask --debug run . #457

Answered by nealmick
Tanstones630 asked this question in Q&A
Discussion options

You must be logged in to vote

The issue is that the model weights are saved in a format that is incompatible with your tensorflow version.
here is the important bit:
ValueError: File format not supported: filepath=Models/NN_Models/Trained-Model-ML-1699315388.285516. 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(Models/NN_Models/Trained-Model-ML-1699315388.285516, call_endpoint='serving_default') (note that your call_endpoint might have a different name).

The error may have to do with the check…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@Tanstones630
Comment options

Answer selected by Tanstones630
Comment options

You must be logged in to vote
3 replies
@nealmick
Comment options

@Youngstud4321
Comment options

@nealmick
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants