This is the code for "How to Simulate a Self-Driving Car" by Siraj Raval on Youtube
430
stars
306
forks
source link
Running the Pre-trained model, getting error on keras. can't figure out what the problem is. also where do i need to put the simulator? in the same folder where the drive scripts are? #24
Traceback (most recent call last):
File "drive.py", line 124, in
model = load_model(args.model)
File "C:\Users\ihtes\Anaconda3\lib\site-packages\keras\models.py", line 243, in load_model
model = model_from_config(model_config, custom_objects=custom_objects)
File "C:\Users\ihtes\Anaconda3\lib\site-packages\keras\models.py", line 317, in model_from_config
return layer_module.deserialize(config, custom_objects=custom_objects)
File "C:\Users\ihtes\Anaconda3\lib\site-packages\keras\layers__init__.py", line 55, in deserialize
printable_module_name='layer')
File "C:\Users\ihtes\Anaconda3\lib\site-packages\keras\utils\generic_utils.py", line 144, in deserialize_keras_object
list(custom_objects.items())))
File "C:\Users\ihtes\Anaconda3\lib\site-packages\keras\models.py", line 1373, in from_config
model.add(layer)
File "C:\Users\ihtes\Anaconda3\lib\site-packages\keras\models.py", line 467, in add
layer(x)
File "C:\Users\ihtes\Anaconda3\lib\site-packages\keras\engine\topology.py", line 619, in call
output = self.call(inputs, kwargs)
File "C:\Users\ihtes\Anaconda3\lib\site-packages\keras\layers\core.py", line 663, in call
return self.function(inputs, arguments)
File "model.py", line 34, in
Traceback (most recent call last): File "drive.py", line 124, in
model = load_model(args.model)
File "C:\Users\ihtes\Anaconda3\lib\site-packages\keras\models.py", line 243, in load_model
model = model_from_config(model_config, custom_objects=custom_objects)
File "C:\Users\ihtes\Anaconda3\lib\site-packages\keras\models.py", line 317, in model_from_config
return layer_module.deserialize(config, custom_objects=custom_objects)
File "C:\Users\ihtes\Anaconda3\lib\site-packages\keras\layers__init__.py", line 55, in deserialize
printable_module_name='layer')
File "C:\Users\ihtes\Anaconda3\lib\site-packages\keras\utils\generic_utils.py", line 144, in deserialize_keras_object
list(custom_objects.items())))
File "C:\Users\ihtes\Anaconda3\lib\site-packages\keras\models.py", line 1373, in from_config
model.add(layer)
File "C:\Users\ihtes\Anaconda3\lib\site-packages\keras\models.py", line 467, in add
layer(x)
File "C:\Users\ihtes\Anaconda3\lib\site-packages\keras\engine\topology.py", line 619, in call
output = self.call(inputs, kwargs)
File "C:\Users\ihtes\Anaconda3\lib\site-packages\keras\layers\core.py", line 663, in call
return self.function(inputs, arguments)
File "model.py", line 34, in
and our steering commands as our output data
SystemError: unknown opcode