In this project, we use deep neural networks and convolutional neural networks to clone driving behavior. The model is trained, validated and tested using Keras. The model outputs a steering angle to an autonomous vehicle.
The autonomous vehicle is provided as a simulator. Image data and steering angles are used to train a neural network and drive the simulation car autonomously around the track.
We also want you to create a detailed writeup of the project. Check out the writeup template for this project and use it as a starting point for creating your own writeup. The writeup can be either a markdown file or a pdf document.
The project contains the following files:
- model.py (script used to create the model)
- train.py (script used to train the model)
- drive.py (script to drive the car - feel free to modify this file)
- model.h5 (a trained Keras model)
- writeup file
- video.mp4 (a video recording of the vehicle driving autonomously around the track for one full lap)
This README file describes how to output the video in the "Details About Files In This Directory" section.
The project has been developed on a Linux machine with Python 3.6 with a Tesla K10 GPU. The system was provided by Udacity for this particular project.
The following steps have been provided to run the program on a Windows 10 machine with Python 3.8.8.
Install dependencies
pip install -r requirements.txt
The dataset has been generated by using the Car Simulator provided here. The training can be done directly by running the simulator.
The compiled and collected dataset is available here.
The training can be done by using the command
python train.py
The trained model can be used to run the autonomous car on simulator. Start the simulator in autonomous mode and use the following command to start the code.
python drive.py model.h5
Youtube video for the same.