Code Monkey home page Code Monkey logo

deepforspeed's Introduction

DeepForSpeed: Data Wanted

A self-driving car in Need For Speed

The inspiration comes from how Nvidia built a self-driving car with just a single convolutional neural network instead of many fancy algorithms combined. Here my goal is to replicate the amazing results they've gotten but inside a game. But i also tried to create it as a platform/interface in which different architectures can be tested relatively easily, so it can also be used as a benchmark. So it's like a fun driving simulator (of course not an accurate one) that you can test your own neural networks at and maybe conduct some experiments.

Watch The Latest Version

Watch the video note: this is a cherry picked example and many times model will not perform this well. Im hoping to change that in future versions.

Things used

Python 3.9

Pytorch 1.10

Numpy

OpenCV

Matplotlib

Need For Speed: Most Wanted 2005

Base architecture

Nvidia's architecture

How to use it

There is different ways to use it depending on what you want. Additional info can be found inside the scripts.

Creating and processing data

flowchart

Using models

flowchart

Pull requests

TLDR: Basically any improvements are really appreciated.

  • Other Neural Network architectures
  • Refinements in the code
  • Trained Models
  • Anything you can get done on future updates part

For Future Updates:

  • Add tensorflow board
  • Only use np arrays instead of both lists and np arrays in data
  • RGB images instead of gray images
  • Train on more data
  • Increase data resolution
  • Controller or a steering wheel to get the input
  • Different activation functions
  • Try Weight Decay
  • Add merging data function for easing data creation
  • Save models whilst training

References:

paper by nvidia: https://images.nvidia.com/content/tegra/automotive/images/2016/solutions/pdf/end-to-end-dl-using-px.pdf

Sentdex's PyGta5 playlist: https://www.youtube.com/watch?v=ks4MPfMq8aQ&list=PLQVvvaa0QuDeETZEOy4VdocT7TOjfSA8a

NFS:MW mods are taken from: https://github.com/ExOptsTeam/NFSMWExOpts

deepforspeed's People

Contributors

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