Self Driving Car Simulation Using Genetic Algorithm In Unity3D by varunsingh3000 - 1

NetworkInputs

In this project we have trained an evolving Neural network by using Genetic Algorithms in Unity Game Engine using the ML-agents provided by them. By repeated simulation of the agent in the environment, using this we have created an agent which learns unique features from the environment based on its input and generates a forecast permitting the vehicle to drive without requiring external commands from the player.

Unity 2018.2.14f1Unknown LicenseUpdated 27 days agoCreated on August 25th, 2020
Go to source

Self-Driving-Car-Simulation-using-Genetic-Algorithm-in-Unity-3D

In this project we have trained an evolving Neural network by using Genetic Algorithms in Unity Game Engine using the ML-agents provided by them. By repeated simulation of the agent in the environment, using this we have created an agent which learns unique features from the environment based on its input and generates a forecast permitting the vehicle to drive without requiring external commands from the player. For simplicity purposes the ability of the agents to brake or reverse was not added.

Note- This project was created on Unity3D version 2018.2.14f1. You will need Barracuda package (ver 0.4).

The simulation environment was chosen to be a forested environment.

simulation environment

Closeup of the environment.

closeupshot

Raycasts emerging from the agents are used to calculate the distances from the obstacles and accordingly the agents turn without crashing.

raycasts

A bunch of agents spawn at once in which many will crash however as the generation increases, the performance of the agents gets better as well.

population of cars spawning

This project was created as a fun project while exploring unity3d game engine and ml-agents.

Show all projects by varunsingh3000