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

Model usage in Google Colab #39

Open
Geoka1 opened this issue Jan 6, 2024 · 0 comments
Open

Model usage in Google Colab #39

Geoka1 opened this issue Jan 6, 2024 · 0 comments

Comments

@Geoka1
Copy link

Geoka1 commented Jan 6, 2024

Hello everyone,

I wanted to share a quick fix for those who are trying to use the model in Google Colab with the latest versions of TensorFlow.

Issue:
When using the the model in Colab with the newer TensorFlow versions, there are be compatibility issues due to the updated CUDA version that cannot be downgraded to cuda 11.2 anymore and GPU cannot be used. If you use the latest TensorFlow training fails because the optimizers cannot be loaded.

Solution:
You can switch 'tf.keras.optimizers.Adam' in models.py to 'tf.keras.optimizers.legacy.Adam' instead so that the model becomes compatible with the latest tensorflow version.

I hope this helps anyone facing similar 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

1 participant