Skip to content

Training NEAT Neural Network With Ray Casting in Unreal Engine 4

Notifications You must be signed in to change notification settings

egebasturk/NEATSelfDrivingCarUE4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Training NEAT Neural Network With Ray Casting in Unreal Engine 4

How It Works:

Each car has 2 sensor components in the front that sends 2 rays. If the rays hit anything they return the distance between the sensor and the object. We feed this information + car's own velocity vector and acceleration vector to our neural network. Neural network is created by a method called NeuroEvolution of Augmenting Topologies (NEAT)

We also have some checkpoints on the map, these are just used for giving additional points to the cars that manage to follow the path so that the population can converge faster.

Current State:

Managed to increase population size to 750 cars. Each car has 2 sensors and each sensor fires 2 rays every frame so that's 3000 rays per frame + other stuff at 30FPS.

Demo Video Here:

References:

Evolving Neural Networks through Augmenting Topologies

About

Training NEAT Neural Network With Ray Casting in Unreal Engine 4

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published