Skip to content

mollahsabbir/self-driving-car

Repository files navigation

Self Driving Car Using Random Mutations

This is an example of Reinforcement Learning model training without gradients. This implementation mainly uses Numpy and PyGame. Training Demo

The program mainly has three different modes, which can be selected by changing the GAME_MODE parameter in the Configuration file.

  • TRAIN : Populates many cars with sensors that try to finish the track and keep improving each generation.
  • SELFDRIVING : Populates a single car with sensors that is controlled by the best model found by training.
  • KEYBOARD : Populates a single car controllable with a keyboard.

Usage

  1. Create a new environment
conda env create --name envname --file=environments.yml
  1. Change the values in the Configuration file, or keep it as it is for the default mode.
  2. Run the main.py file.
python main.py

About

An example of a self driving car on a 2D track that uses random mutations of neural networks to train itself.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors