llSourcell / How_to_simulate_a_self_driving_car

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

Open ihteshamraza opened 6 years ago

ihteshamraza commented 6 years ago

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

causten commented 6 years ago

Found the solution in issue #19 . Move to py3.5 and your problems are solved

Rajshreegupta commented 5 years ago

I am also having a similar problem but is not solved by changing to python = 3.5