While following your tutorial, I noticed that the Keras and Python versions need to be compatible with TensorFlow 1.14. Could you specify the exact versions you’re using for training?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi there,
Would you mind confirming which tutorial exactly are you referring to?
I can then forward your feedback to the team.
- Bobby
Heya,
To ensure compatibility with TensorFlow 1.14, the versions of Python and Keras must align with the requirements of TensorFlow. Here’s a breakdown:
Python Version:
Keras Version:
tf.keras
) but is compatible with standalone Keras versions up to 2.2.5.Here’s how you can set up a compatible environment:
# Create and activate a virtual environment (optional but recommended)
python3.6 -m venv tf_env
source tf_env/bin/activate
# Install TensorFlow 1.14
pip install tensorflow==1.14.0
# Install Keras 2.2.5
pip install keras==2.2.5`
tf.keras
), no additional Keras installation is required.tensorflow-gpu==1.14.0
and ensure compatible CUDA (10.0) and cuDNN (7.4) versions are installed.Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.