Train a model to drive car like a human.This project is from udacity self-driving car project.The aim is to train a model that can drive a car like a human.It mainly use convolutional neural network to predict the steering angle.
- Keras
- Opencv
- sklearn
We can use the dataset provided by udacity.Or we can collect our own dataset by using the simulator provided by udacity. At first I collected my own dataset.But the result is not good.Maybe my driving skill is bad.So I use the datacity data. Its result is good.
The training dataset came from the track 1.The track 2 is much darker than track.And track 2 has a lot of shadow. To make the model more robust to environment impact and prevent overfitting,we have to do some data aumentation. For example,use image flip to balance the left and right turnig image,use hsv adjust or gamma corrction to change the lightness.
Here I use a nvidia-like model.The nvidia paper is here.The model is as follows
driving images.
track 1 | track 2 |
---|---|