Giter Club home page Giter Club logo

autonomousvehiclecontrol's Introduction

Self-Driving Car Project

This project implements a self-driving car using behavioral cloning techniques. The main components of the project include the model training in a Jupyter notebook and a Python script to run the trained model and control the car.

Project Structure

  • Behavioural_cloning.ipynb: Jupyter notebook containing the implementation of the behavioral cloning model.
  • Drive.py: Python script to run the trained model and control the car in a simulated environment.

Files Description

1. Behavioural_cloning.ipynb

This Jupyter notebook includes the following steps:

  • Data Collection: Using a simulator to collect driving data.
  • Data Preprocessing: Processing the images and steering angles for training.
  • Model Architecture: Building a convolutional neural network (CNN) to predict steering angles from images.
  • Model Training: Training the CNN with the processed data.
  • Model Evaluation: Evaluating the model performance on a validation set.
  • Model Saving: Saving the trained model for later use in the driving script.

2. Drive.py

This Python script uses the trained model to drive the car in a simulated environment. It includes:

  • Model Loading: Loading the pre-trained model.
  • Real-Time Prediction: Capturing images from the simulator, preprocessing them, and predicting the steering angle using the model.
  • Control Commands: Sending control commands (steering angle, throttle) to the simulator.

Requirements

To run this project, you need the following dependencies:

  • Python 3.x
  • Keras
  • TensorFlow
  • NumPy
  • OpenCV
  • Flask (for the driving script)
  • A self-driving car simulator (e.g., Udacity's Self-Driving Car Simulator)

You can install the required Python packages using:

pip install -r requirements.txt

Running the Project

1. Train the Model

Open the Behavioural_cloning.ipynb notebook and run all the cells to train the model. The trained model will be saved as model.h5.

2. Run the Driving Script

Run the driving script using the following command:

python Drive.py model.h5

Make sure the simulator is running and configured to the correct mode (e.g., autonomous mode) to receive the control commands from the script.

Acknowledgements

This project was inspired by the behavioral cloning project from the Udacity Self-Driving Car Nanodegree program.

autonomousvehiclecontrol's People

Contributors

anjali-sv 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.