You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a car with the latest version of Donkey Car. It runs tensorflow 2.2
However, when I run the colab script, it is creating a model with tensorflow 2.5.
I am able to create the model, mypilot.h5, download it, and transfer it to my car.
However when I start the car and load the model: python3 manage.py drive --model ./models/mypilot.h5
I get the following error:
"get_model_by_type" model Type is: linear
Created KerasLinear
loading model ./models/mypilot.h5
Loading model ./models/mypilot.h5
Traceback (most recent call last):
File "manage.py", line 719, in <module>
meta=args['--meta'])
File "manage.py", line 418, in drive
load_model(kl, model_path)
File "manage.py", line 383, in load_model
kl.load(model_path)
File "/home/pi/projects/donkeycar/donkeycar/parts/keras.py", line 50, in load
self.model = keras.models.load_model(model_path, compile=False)
File "/home/pi/env/lib/python3.7/site-packages/tensorflow/python/keras/saving/save.py", line 184, in load_model
return hdf5_format.load_model_from_hdf5(filepath, custom_objects, compile)
File "/home/pi/env/lib/python3.7/site-packages/tensorflow/python/keras/saving/hdf5_format.py", line 178, in load_model_from_hdf5
custom_objects=custom_objects)
File "/home/pi/env/lib/python3.7/site-packages/tensorflow/python/keras/saving/model_config.py", line 55, in model_from_config
return deserialize(config, custom_objects=custom_objects)
File "/home/pi/env/lib/python3.7/site-packages/tensorflow/python/keras/layers/serialization.py", line 109, in deserialize
printable_module_name='layer')
File "/home/pi/env/lib/python3.7/site-packages/tensorflow/python/keras/utils/generic_utils.py", line 362, in deserialize_keras_object
config, module_objects, custom_objects, printable_module_name)
File "/home/pi/env/lib/python3.7/site-packages/tensorflow/python/keras/utils/generic_utils.py", line 321, in class_and_config_for_serialized_keras_object
raise ValueError('Unknown ' + printable_module_name + ': ' + class_name)
ValueError: Unknown layer: Functional
I have tried setting Google Colab to match tensorflow versions:
%tensorflow_version 2.2
But I can't set 2.2.. I'm stuck with the latest version, tensorflow 2.5:
%tensorflow_version` only switches the major version: 1.x or 2.x.
You set: `2.2`. This will be interpreted as: `2.x`.
TensorFlow 2.x selected.
Any suggestions on how to either A) Set tensorflow v 2.2 on google colab, or B) allow my car to read a model created with tensorflow 2.5?
Thanks!
The text was updated successfully, but these errors were encountered:
I have a car with the latest version of Donkey Car. It runs tensorflow 2.2
However, when I run the colab script, it is creating a model with tensorflow 2.5.
I am able to create the model, mypilot.h5, download it, and transfer it to my car.
However when I start the car and load the model:
python3 manage.py drive --model ./models/mypilot.h5
I get the following error:
I have tried setting Google Colab to match tensorflow versions:
%tensorflow_version 2.2
But I can't set 2.2.. I'm stuck with the latest version, tensorflow 2.5:
Any suggestions on how to either A) Set tensorflow v 2.2 on google colab, or B) allow my car to read a model created with tensorflow 2.5?
Thanks!
The text was updated successfully, but these errors were encountered: