Giter VIP home page Giter VIP logo

caraisimulator's Introduction

Selfdriving Car AI and Simulator

This project contains a neural network for driving a car in a simulator. The simulator is also part of the project. The goal with not using a existing game/simulator is to allow more control over the data being fed to the AI, which made some experimentation possible.

Simulator

The simulator is made with unity. It generates random terrains in order to create varied learning situations. The simulator communicates with the AI through a local socket, this means that often both the simulator and the AI have to be started.

AI

The AI receives the following input:

  1. A color image.
  2. A grayscale image created from the depth and normal buffers (a LADAR scanner would be the real life equivalent).
  3. The current speed of the car.

The output is acceleration and turning values.

Download

A windows version of the simulator can be downloaded here. The trained network is unfortunately too big to distribute here (maybe the fully connected layers coud be smaller).

Usage

Here is the normal flow for using the AI:

  1. Use the simulator and the record.py script to to create examples of how humans drive.
  2. Train the AI on the recorded examples using the learn.py script.
  3. Improve the AI with reinforcement learning, using the simulator and the train.py script.
  4. Let the AI drive in the simulator with the drive.py script.

Dependencies

  • Python 3
  • Tensorflow
  • Unity (2017.2)

caraisimulator's People

Contributors

aggrathon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

caraisimulator's Issues

does not work

ye the cars vision is shown but the ai dont work defo some bugs

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.