[Python] How deploy a prediction model in Google Cloud? [closed]

Discussão em 'Python' iniciado por Stack, Janeiro 2, 2025.

  1. Stack

    Stack Membro Participativo

    my model is in keras format but getting the following error:


    {"message":"File format not supported: filepath=/tmp/tmpiehi1dx3. 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(/tmp/tmpiehi1dx3, call_endpoint='serving_default') (note that your call_endpoint might have a different name).","status":"error"}
    ​

    I saved the model in keras format.

    Continue reading...

Compartilhe esta Página