Behavioral-cloning-Steering-angle-prediction

DOI

BEHAVIORAL CLONING

DEMO in Autonomous Mode:

DEMO

The codes are written in Python 3.6 keras version: 2.1.5 The libraries required are:

  1. scipy
  2. matplotlib
  3. keras
  4. tensorflow
  5. numpy
  6. pillow
  7. opencv3 (cv2)
  8. h5py
  9. flask-socketio
  10. seaborn
  11. pandas
  12. imageio

If the models are not compatible, check the versions of your libraries.

Codes: There are six models that have been trained.

  • To train the models, say MODEL1, run the file with the name MODEL1 in it.
  • To test, say MODEL1.h5, open Predict_MODEL1.py and run it.

The simulated dataset has been provided. Keep all the files in the working directory. The actual dataset is too big to be attached. So, the actual dataset can be forund in:

https://github.com/udacity/self-driving-car/blob/master/datasets/CH2/Ch2_002.tar.gz.torrent

Download the torrent. You will have 6 ROS bag files.

To extract ROSbag files, Follow the instructions given in this repo:

https://github.com/rwightman/udacity-driving-reader

The drive_car.py can only take MODEL1.h5 to MODEL3.h5. The other models cannnot be driven on the simulator.

Simulator need to be run on Windows. You will need to have unity installed.

The rest is self explanatory.