[Python] While saving my model based on siamese network. I am getting a warnings and an error

Discussão em 'Python' iniciado por Stack, Abril 12, 2025.

  1. Stack

    Stack Membro Participativo

    after running

    siamese_model.save("my_model.keras")


    it is showing a warning and an error:
    * WARNING:tensorflow:Compiled the loaded model, but the compiled metrics have yet to be built. model.compile_metrics will be empty until you train or evaluate the model. *
    * ImportError: cannot import name 'version' from 'tensorflow.python.keras' (C:\Users\91939\PycharmProjects\PythonProject.venv\Lib\site-packages\tensorflow\python\keras_init_.py) *

    Continue reading...

Compartilhe esta Página