Skip to content

shohne/CarND-Behavioral-Cloning

Repository files navigation

Behaviorial Cloning Project

Udacity - Self-Driving Car NanoDegree

This repo contains the written code to complete the project Behaviorial Cloning on Udacity Self-Driving Car Nanodegree. The goal is to enable a deep learning model to control and drive a car safely on track.

Prerequisites

To run this project, it is necessary Anaconda 4.5.1 installed. It was tested and developed in Windows 10 with CUDA 9.

Installation

First, clone the repository:

git clone https://github.com/shohne/CarND-Behavioral-Cloning.git

Change current directory:

cd CarND-Behavioral-Cloning

Create the conda environment with all dependencies:

conda env create -f environment.yml

The name of created environment is carnd-behaviorial-cloning-hohne.

Activate the created conda environment:

activate carnd-behaviorial-cloning-hohne

Running the Simulator

The file model.h5 contains a pretrained keras model that could be used to control steer when driving. To use it, first launch Self-Driving Car Simulator in Autonomous Mode and select track 1. Now, in terminal, execute python program that send control signals to the simulator:

python drive.py model.h5

The controller should be able to drive for a long time. A recorded video of this execution could be seen in:

Track 1

This model is able to drive on track 2 (at reduced speed) too. To test it, choose Autonomous Mode, track 2 and execute the controller:

python drive.py model.h5 25

Track 2

List of Main Files

  • drive.py python program responsible to receive images from the simulator and predict steering angle to keep car on track;
  • model.py python script that build keras neural model and train it;
  • model.h5 pretrained keras model (using model.py);
  • video_1.mp3 recorded video of simulator in Autonomous Mode driving on track 1 with model.h5;
  • video_2.mp3 recorded video of simulator in Autonomous Mode driving on track 2 with model.h5;
  • data (directory) must contain dataset file driving_log.csv and IMG folder with captured images and labels;
  • environment.yml python dependencies;
  • README.md;
  • report.md.

Training and Implementation Details

For more details on tranining and implementation of model.h5, please visit report.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages