AI Cars learn to drive - UE4 Blueprints

  Рет қаралды 39,911

Slothful Studios

Slothful Studios

Күн бұрын

Using UE4 blueprints, machine learning and genetic algorithms, I created a car which learns to drive a track.
It uses a neural network with 6 input nodes, 2 hidden layers with 6 nodes each, and 2 output nodes. Each hidden node and output node also has a bias.
A population of 19 cars run simultaneously (but do not interact with each other). After each round, the top 5 cars are chosen based on their fitness score. Their neural networks are mutated randomly by 10%, and they form the next population.

Пікірлер: 50
@SynxVII
@SynxVII 4 жыл бұрын
would really like a good tutorial on how to make something like this with blueprints
@dankpotato9578
@dankpotato9578 3 жыл бұрын
This is probably not blueprint based.
@bingbongbangbingboom
@bingbongbangbingboom 3 жыл бұрын
@@dankpotato9578 It is.
@_FLOROID_
@_FLOROID_ 2 жыл бұрын
@@bingbongbangbingboom the machine learning part isn't
@bingbongbangbingboom
@bingbongbangbingboom 2 жыл бұрын
@@_FLOROID_ oh
@joantonio6331
@joantonio6331 2 жыл бұрын
Honestly that does not sound too complicated, line traces then orient the car where the trace do not hit... If none hit the keep straight
@TheEclipse1989
@TheEclipse1989 3 жыл бұрын
Did you ever think about scaling rays according to speed? So if it drives faster it can detect the walls earlier on
@lucasromano2795
@lucasromano2795 Жыл бұрын
This reminds me a Genetic Algorithm. I once implemented something similar but individuals should learn a way to escape a labyrinth without going through no exit paths. Very interesting.
@badrequest5596
@badrequest5596 3 жыл бұрын
i did something very similar a couple of years ago too, but in full c++ which is more versatile and readable in making a neural network. but because it was being a little slow to understand to drive in a straight line instead of zig zagging i fed it some recorded data of me driving and let it run through that data and decide for itself. much faster results
@davidestiz9672
@davidestiz9672 Жыл бұрын
@slothfulstudios are you available for new projects?
@yannmassard3970
@yannmassard3970 4 жыл бұрын
u can t do machine learning with Bps only (unless you go full math). That s a very, very cool video. I wish UE had python support.
@badrequest5596
@badrequest5596 3 жыл бұрын
u can write the neural network into c++ as ue4 classes. that will take some time though. i did that from a c# neural network i had for unity and re-wrote it into c++
@travesty-studios
@travesty-studios 2 жыл бұрын
Should try on different maps as well
@giadonovan233
@giadonovan233 3 жыл бұрын
But, how to do it with Blueprints?
@maddiehad
@maddiehad Жыл бұрын
it appears to be memorising the track but not really how to drive.
@xianweiwu1843
@xianweiwu1843 Жыл бұрын
Wanna know what activation functions you are using lol
@tanzhang4994
@tanzhang4994 2 жыл бұрын
Damn,this is so cool
@DarkRodFR
@DarkRodFR Жыл бұрын
share project for learn please :(
@bernardosardinha
@bernardosardinha 3 жыл бұрын
Cool! But...What´s going with the music? O.o
@boquangdong
@boquangdong 3 жыл бұрын
Canh you show me your code
@mb.3d671
@mb.3d671 2 жыл бұрын
How would you even start this lol
@mp3ha
@mp3ha 3 жыл бұрын
hi very good can make video tutorial for this video thx
@RobertAllsopp
@RobertAllsopp 4 жыл бұрын
hey any chance you could make a tutorial on how it was made ? i cant find any good videos on machine learning with blueprints
@neillunavat
@neillunavat 3 жыл бұрын
You can learn Neuroevolution at YT channel called Coding Train. This is Neuroevolution... Genetic Algorithm and Neural Networks... After that you should learn c# then you will get it. Its easy.
@RobertAllsopp
@RobertAllsopp 3 жыл бұрын
@@neillunavat This isn't a form of being selfish we are here because we are looking to learn in the first place. and yes since I posted that comment 11 months ago I have been able to recreate this and build upon it because I found more resources and learning material.
@Simon-pi9qx
@Simon-pi9qx 3 жыл бұрын
@@RobertAllsopp can you help me to search for more information about this ? Please :)
@neillunavat
@neillunavat 3 жыл бұрын
@@Simon-pi9qx bro i just gave all info u need. Search the terms on google and youtube. Ull find your path.
@HaloDude557
@HaloDude557 2 жыл бұрын
@@neillunavat you gave terrible info. Genetic Algorithms are not very good. I am interested in if the video uploader used back propagation. Also, this is UE. No C# at all.
@FINALFORMSTUDIOS
@FINALFORMSTUDIOS 4 жыл бұрын
Would love to try this out. project files by any chance?
@williambeaulieu2046
@williambeaulieu2046 4 жыл бұрын
How Do you calculate the fitness score to know which 5 are the best
@AVANLOR-qx1cf
@AVANLOR-qx1cf 4 жыл бұрын
How to make?
@MrMoonwalkingBear
@MrMoonwalkingBear 4 жыл бұрын
I liked the song and also want a tutorial please.
@LuukAsh
@LuukAsh 4 жыл бұрын
kzbin.info/www/bejne/l3SZhJKMqreBfc0
@mikethegamedev
@mikethegamedev 4 жыл бұрын
@@LuukAsh it's tutorial not music!
@NR_5tudio
@NR_5tudio 6 ай бұрын
BRUH try to make a simple tutorial ....
@UnrealSolver
@UnrealSolver Жыл бұрын
Dang mate, that's hella cool! 🔥 Was working on something similar in the past but instead of learning the vehicle was just 'seeing' its surroundings and was setup a way that it will react to the environment and finish the race, but your Machine Learning thing kicks such idea up to the sky!🔥🔥🔥 Great job!😎
@sedatbilece
@sedatbilece 2 жыл бұрын
can you share doc. or project file please ? for the analysis
@hasanrizvihr
@hasanrizvihr Жыл бұрын
This is amazing. If i may ask when are you releasing the tutorial? 🙏
@mike_gread
@mike_gread Жыл бұрын
little advice : make the car spawn at random locations on the map
@NOTORIOUS4545
@NOTORIOUS4545 2 жыл бұрын
But will it drift?? …
@marcthornton2900
@marcthornton2900 4 жыл бұрын
Another request for more info / tutorial on how to do this in bp's or project files. Thank you.
@xianweiwu1843
@xianweiwu1843 Жыл бұрын
neural networks lol
Training an unbeatable AI in Trackmania
20:41
Yosh
Рет қаралды 14 МЛН
GIANT Gummy Worm Pt.6 #shorts
00:46
Mr DegrEE
Рет қаралды 89 МЛН
I Made an AI with just Redstone!
17:23
mattbatwings
Рет қаралды 1 МЛН
ALL OF PHYSICS explained in 14 Minutes
14:20
Wacky Science
Рет қаралды 2,8 МЛН
How are memories stored in neural networks? | The Hopfield Network #SoME2
15:14
How AIs, like ChatGPT, Learn
8:55
CGP Grey
Рет қаралды 10 МЛН
Why Does Diffusion Work Better than Auto-Regression?
20:18
Algorithmic Simplicity
Рет қаралды 324 М.
CAR ANIMATION IN UNREAL ENGINE | Production Pipeline
14:18
Post Processed
Рет қаралды 141 М.
AI Learns To Swing Like Spiderman
15:29
b2studios
Рет қаралды 6 МЛН
AI Learns to Run Faster than Usain Bolt | World Record
10:22
cozmouz
Рет қаралды 879 М.
AI Learns to Play Tag (and breaks the game)
10:29
AI Warehouse
Рет қаралды 3,5 МЛН
AI Invents New Bowling Techniques
11:33
b2studios
Рет қаралды 3,4 МЛН