Giter Club home page Giter Club logo

clonning_behaviour's Introduction

Behavioral Cloning


Behavioral Cloning Project

The goals / steps of this project are the following:

  • Use the simulator to collect data of good driving behavior
  • Build, a convolution neural network in Keras that predicts steering angles from images
  • Train and validate the model with a training and validation set
  • Test that the model successfully drives around track one without leaving the road
  • Summarize the results with a written report

Rubric Points

Here I will consider the rubric points individually and describe how I addressed each point in my implementation.


Files Submitted & Code Quality

1. Submission includes all required files and can be used to run the simulator in autonomous mode

My project includes the following files:

  • model.py containing the script to create and train the model
  • drive.py for driving the car in autonomous mode
  • model.h5 containing a trained convolution neural network
  • writeup_report.md or writeup_report.pdf summarizing the results

2. Submission includes functional code

Using the Udacity provided simulator and my drive.py file, the car can be driven autonomously around the track by executing

python drive.py model.h5

3. Submission code is usable and readable

The model.py file contains the code for training and saving the convolution neural network. The file shows the pipeline I used for training and validating the model, and it contains comments to explain how the code works.

Model Architecture and Training Strategy

1. An appropriate model architecture has been employed

First, the model 'cut' the sky and front of car, with the function Cropping2D after that, normalize the data and centering this.

Like I said before, I use the NVIDIA neural network, which contain 5 convolutional layer and 3 Dense. The first 3 convolutional layer use 5x5 filter and 2x2 strides and the other 2 use 3x3 filters and 1x1 stride. After this, flatten the data and put 3 Dense layer.

2. Attempts to reduce overfitting in the model

I use augmented data for reduce overfitting.

3. Model parameter tuning

The model used an adam optimizer, so the learning rate was not tuned manually.

4. Appropriate training data

Training data was chosen to keep the vehicle driving on the road. I used a combination of center lane driving, recovering from the left and right sides of the road and take smooth and slow curve to learn better the stearing on the road.

Model Architecture and Training Strategy

1. Solution Design Approach

I choose the NVIDIA model. I put the architecture and training for 7 epochs, the training and validation loss are almost the same (0.023, 0.024). The most important thing I can see was the amounnt of data that we need to train the model.

The unique change on the model was, the convolutional layers had valid padding, I used from the second layer same padding. With this configuration I have better results.

2. Final Model Architecture

Here is a visualization of the architecture. alt text

3. Creation of the Training Set & Training Process

I drive for 3 laps in the center of the road, sometimes I go to the edges and recover the center. I drive the last lap slow for take smooth curve.

With this amount of data I add a little more with cv2.flip, with this is "like we drive counter clockwise".

The preprocessing step was made with lambda function.

The 80% of the data was for training, the rest was use for validation.# clonning_behaviour

clonning_behaviour's People

Contributors

aleamar264 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.