Coder Social home page Coder Social logo

aravinda89 / self-driving-car-javascript Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bakoushin/self-driving-car-javascript

0.0 1.0 0.0 99 KB

Run a self-driving car using JavaScript and TensorFlow.js

Home Page: https://medium.com/p/run-a-self-driving-car-using-javascript-and-tensorflow-js-8b9b3f7af23d?sk=549ee7230aa2b05fead0e68210982cf8

License: MIT License

JavaScript 100.00%

self-driving-car-javascript's Introduction

Run a self-driving car using JavaScript and TensorFlow.js

This project demonstrates how to train a self-driving car to steer and to drive autonomously in Udacity Self-Driving Car Simulator using TensorFlow.js.

See also detalied explanation of this project in a Medium publication: Run a self-driving car using JavaScript and TensorFlow.js.

Usage

  1. Clone this project.
  2. Download Udacity Simulator for Term 1.
  3. Record data using the simulator.
  4. Train the model using recorded data.
  5. Run the simulator in autonomous mode.
  6. Drive the car using the trained model.

Cloning and initialization

git clone https://github.com/bakoushin/self-driving-car-javascript.git
cd self-driving-car-javascript
npm install

Note: the code in this project is expected to run on Node.js 12 or greater.

Training a model

node train.js [--data DATA_DIRECTORY] [--model [MODEL_DIRECTORY] [--epochs NUMBER_OF_EPOCHS]

# Example:

node train.js --data ~/Documents/track1 --epochs 3

Default values:

  • data = 'data' directory within the project directory
  • model = 'model' directory within the project directory
  • epochs = 10

Driving a car

node drive.js [--model MODEL_DIRECTORY] [--speed SPEED_LIMIT]

# Example:

node drive.js --speed 20

Default values:

  • model = 'model' directory within the project directory
  • speed = 30

Author

Alex Bakoushin

License

MIT

self-driving-car-javascript's People

Contributors

bakoushin avatar

Watchers

James Cloos 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.