udacity / CarND-Term1-Starter-Kit

MIT License
495 stars 602 forks source link

Mismatched Keras versions in Behavioral Cloning Workspace and Starter Kit #114

Closed Zoetic-Zephyr closed 3 years ago

Zoetic-Zephyr commented 5 years ago

The Keras version provided in the provided environment.yml is 2.0.9. Yet as I download the model.h5 trained by the remote Behavioral Cloning Workspace with GPU enabled to test in the simulator on my local machine using drive.py, I notice that the model is created by Keras version of 2.2.4, causing a mismatch that prevents me to load the model. The exact error message is below:

You are using Keras version b'2.0.9' , but the model was built using b'2.2.4'

How should I fix this? session.txt

Zoetic-Zephyr commented 5 years ago

I fixed this myself by a pip install keras==2.2.4 in the Starter Kit environment. It automatically installed keras-2.2.4 keras-applications-1.0.8 keras-preprocessing-1.1.0 to my machine, and uninstalled the outdated Keras 2.0.9. Since the versions of Keras on the Workspace and my local machine are now matched, I am able to test the remotely-trained model on my local simulator.

However, I do think that the Keras version provided in the envionment.yml should be updated.

UAnjali commented 3 years ago

Hi @Zoetic-Zephyr Though we are a little delayed in responding, thanks for reporting. We have updated the configure_via_anaconda.md file based on your suggestion.