udacity / CarND-Term1-Starter-Kit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mismatched Keras versions in Behavioral Cloning Workspace and Starter Kit

Zoetic-Zephyr opened this issue · comments

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

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.

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.