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

Error Google Colab Training #18

Open
GabbyLiz opened this issue Sep 30, 2022 · 1 comment
Open

Error Google Colab Training #18

GabbyLiz opened this issue Sep 30, 2022 · 1 comment

Comments

@GabbyLiz
Copy link

Hi! I'm would like to say thank you, This proyect helps my a lot.
Mi computer in not good at all, so I decided to use google colab and it works. I install the requeriments with a txt file and my training was perfect. But when I dowload the .hdf5 files and use it in my Pycharm proyect the files doesn't work. This is my error:

File "C:\Users\Usuario\anaconda3\envs\ic_gpu\lib\site-packages\keras\engine\saving.py", line 419, in load_model
model = _deserialize_model(f, custom_objects, compile)
File "C:\Users\Usuario\anaconda3\envs\ic_gpu\lib\site-packages\keras\engine\saving.py", line 251, in _deserialize_model
if weight_names:
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

I don't know how fix it.

@asgard-waala
Copy link

Hi @GabbyLiz
In this particular case, it seems like there might be an issue with the version of Keras you are using, or possibly with the model you are trying to load.
Try these options:

  1. Update Keras.
  2. Make sure that the model you are trying to load was saved with a compatible version of Keras. If you are trying to load a model that was saved with a different version of Keras, you might run into compatibility issues.
  3. If you're still experiencing problems, you may want to try using the Keras library packaged with TensorFlow, as this can sometimes resolve compatibility issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants