Self-driving!
Now, you could start running manual_control_drive.py
, maybe instructing it to use a lower resolution, using the --res 480x320
parameter.
If you press the D key, the car should start to drive by itself. It's probably quite slow, but it should run, sometimes nicely, sometimes less nicely. It might not always take the turns that it is supposed to take. You can try to add images to the dataset or improve the architecture of the neural network – for example, by adding some dropout layers.
You could try to change the car or increase the speed. You might notice that at a higher speed, the car starts to move more erratically, as if the driver was drunk! This is due to the excessive latency between the car getting in the wrong position and the neural network reacting to it. I think this could be fixed partly with a computer fast enough to process many FPS. However, I think a real fix would be to also record higher speed runs, where the corrections would be stronger...