Code Monkey home page Code Monkey logo

behavioral_cloning_udacityp04's Introduction

Behavioral Cloning

The steps of this project are the following:

  1. Collecting data by driving the car in the simulator:
    I drove the track with recording on to get the training data. I drove the track two times, I tried to drive in the center of the road, and recovering back from left/right to the center of the road.

Image

Image

  1. In model.py, I build my model on multiple stages:

    a. Preprocessing Data:
    I considered the three camera images, and adjust the measurement accordingly(steering), so finally I have 3 images for every instant and three measurements. I added a correction factor 0.2 so if the image is taken from the left camera, I added the correction factor, and I subtracted it in case of right image.

    b. Data Augmentation:
    I flipped the images and the steering measurements in order to have more images to train the network.

    c. Building a convolution neural network:
    I used NVIDIA architecture, I added a cropping layer to remove pixels from the up and the bottom of the image that are not helpful. I faced also an overfitting problem where the training loss error was good while the validation loss was increasing so I removed one convolution layer at the end.

    Image

    d. Compiling the model, I used adam optimizer, so I don’t have to change the learning rate manually.

    e. I trained the model on training and validation set and observe the mean squared error to determine the overfitting and underfitting.

  2. Drive the car autonomously using the model created (model.h5), the car drives the track without leaving the road.

behavioral_cloning_udacityp04's People

Contributors

mariam-h-mostafa 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.