Git Product home page Git Product logo

realtime-self-driving-car's Introduction

Realtime self driving car implementing DNN

Install dependencies and create environment

First install the Anaconda distribution and install all the required dependencies.Create the virtual environment tf-gpu (for eg)

conda create --name tf-gpu

install supported verson of python by tensorflow and proceed to below steps

Run the pretrained model(model-010.h5)

Turn on all the connections to esp32 and H-bridge driver and wait for five seconds while the servo returns to the centre

python drive.py model-010.h5

To train the model

You'll need the data folder which contains the training images.

The folder is created automatically when you run

python train.py

This creates a folder named training_data and run below code corresponding to the created folder!

python model.py

if you run python train.py more than once the code automatically creates training_data1 and so on!

After running model.py it will generate a file model-<epoch>.h5 whenever the performance in the epoch is better than the previous best. For example, the first epoch will generate a file called model-000.h5.Models are saved after every epoch so run the latest model when you run the drive.py

alt text

alt text

alt text

Also,plese checkout the video by clicking on the thumbnail below:

IMAGE ALT TEXT HERE

realtime-self-driving-car's People

Contributors

abastola0 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.