AI Learns How To DRIVE

  Рет қаралды 10,636

Tyler Mommsen

Tyler Mommsen

Күн бұрын

Пікірлер: 91
@ceefour11
@ceefour11 5 ай бұрын
Bro you need more subs, super underrated.
@Shivam-Cr-7
@Shivam-Cr-7 5 ай бұрын
He's right
@ospy_edits
@ospy_edits 5 ай бұрын
Yup
@HungryKittyCat
@HungryKittyCat 5 ай бұрын
Agreed no more talk
@Baller628
@Baller628 5 ай бұрын
"Ai learns NUCLEAR LAUNCH CODES" your welcome for the quality idea
@Punch_Card
@Punch_Card 3 ай бұрын
how do you implement that lol
@pro100lalka4
@pro100lalka4 5 ай бұрын
I think you should've let it run for hundred or more generations more, I would love to see an AI not only to learn it and complete it, but to MASTER it, and show some crazy stuff, like cutting the perfect angles on the turns, doing max possible speed at every given circumstances, etc. I recommend you next time to try some game where an AI can learn some far from human abilities, and reach them, it would be so interesting to see how far they can go, just add time variable, so they were rewarded not only for not dying, but also for doing something faster than before! But anyway you're super underrated youtuber, I never liked the content from channel with 4k subs so much, keep it up!😊
@TylerMommsen
@TylerMommsen 5 ай бұрын
Thanks for the support man! Sure, I'll try do that with future videos then. Any recommendations for some games that'd be interesting to watch an AI do that? Maybe I'll also just try to make a 3D version of this which would be pretty cool.
@gattasara
@gattasara 5 ай бұрын
I also believe they should
@CatSplat9018
@CatSplat9018 5 ай бұрын
@@TylerMommsen I personally would like to see AI trying Crossy road (loving your content btw, keep up the amazing work)
@TylerMommsen
@TylerMommsen 5 ай бұрын
Thanks for the support! Okay I'll keep Crossy road in mind for the future
@picxelz2284
@picxelz2284 5 ай бұрын
@@TylerMommsen You can also check out the trackmania AI videos they show some pretty cool stuff. Not sure if its the exact same as what you're doing but yea.
@GemedetAdept
@GemedetAdept 5 ай бұрын
I really appreciate that you leave in and show off the actual programming process in addition to the end result. The result is always fun, but as a programmer I love seeing someone else's process and how they figure out solutions.
@sketchychillandchill
@sketchychillandchill 4 ай бұрын
Put it in a random track from a pool on each generation
@mr-nafari7355
@mr-nafari7355 5 ай бұрын
Good job man, you obviously deserve more subs. Keep up the good work 👏
@minheepark4896
@minheepark4896 5 ай бұрын
You should add like a hour long Timelapse of all the generations and stuff in a separate video for people to watch the “evolution”
@TylerMommsen
@TylerMommsen 5 ай бұрын
Maybe I'll consider opening a second channel for timelapses only
@minheepark4896
@minheepark4896 5 ай бұрын
@@TylerMommsen ok 👌
@CuberrOfficial
@CuberrOfficial 5 ай бұрын
Rare footage of me driving
@ammarbumadan2258
@ammarbumadan2258 5 ай бұрын
What an amazing video dude, I'm not a coding nerd and i found this super entertaining to watch. Keep at it 💪🏾
@TylerMommsen
@TylerMommsen 5 ай бұрын
Thank you, I appreciate it!
@The0Stroy
@The0Stroy 5 ай бұрын
Next step - they see each other and can collide.
@ThunderFound
@ThunderFound 4 ай бұрын
Hey! Would be great if you record a video explaining how Reinforcement Learning works. You are very underrated
@TylerMommsen
@TylerMommsen 4 ай бұрын
Thanks! Yeah ill release something in the future
@gabrielnieto6813
@gabrielnieto6813 8 күн бұрын
Great content!! hey few ideas, now that they can finish the lap, what if you add a new reinforcement of time so that for each generation they learn doing the lap faster is better, it would be interesting to see lap record, faster way to get there etc
@hinakremec
@hinakremec 5 ай бұрын
Man when you will be a big youtuber, remeber us viewers who were there since the beginning
@Hellllloagain
@Hellllloagain 5 ай бұрын
here
@Poppieandboefje
@Poppieandboefje 5 ай бұрын
this guy is underrated
@dahonigerdnussbrot6934
@dahonigerdnussbrot6934 5 ай бұрын
Pleeeeeeez make the AI go faster! I would enjoy this extremely! (Also... u need more subs, how is your channel so small??)
@TylerMommsen
@TylerMommsen 5 ай бұрын
Sure no problem! Maybe i'll upload a follow up to this video or another one but in 3D 👀
@qfurgie
@qfurgie 4 ай бұрын
can you do this again, but instead of distance, it’s time based? they don’t die when they hit the edges, and they are killed off after say 30 seconds, then if any car beats that arbitrary threshold, that begins the new kill point (lets say 25 seconds) until the cars reach a threshold that is physically impossible to beat and you have best optimized route.
@TylerMommsen
@TylerMommsen 4 ай бұрын
Yeah maybe that would have been more interesting. I did implement a time related scoring system with regards to each cars average speed but the main focus was distance traveled. Your method probably would have been better
@SMGSEBASTIANSMG
@SMGSEBASTIANSMG 28 күн бұрын
Hella underrated bro
@Psygenz
@Psygenz 5 ай бұрын
Good shit, keep up the amazing work! 👍
@PhantomGamer80
@PhantomGamer80 5 ай бұрын
There are cars!
@Almancea
@Almancea 5 ай бұрын
Edge surf next?
@TylerMommsen
@TylerMommsen 5 ай бұрын
I'll definitely consider it for a future video
@Tiger_Cub0
@Tiger_Cub0 5 ай бұрын
“F1 cars don’t drift” Max verstappen in an alpha tauri
@rkom4104
@rkom4104 3 ай бұрын
You should've tried to add a punishment for each seconds of existence for cars (if this AI training model supports it though). The cars will do their best to receive minimum punishment points so that's equal to drive as fast as possible
@AgastyaSondhi
@AgastyaSondhi 5 ай бұрын
Could you add laptime as a reward so the cars are incentivized to go faster?
@TylerMommsen
@TylerMommsen 5 ай бұрын
Yes you can, you can use laptime and the average speed over the duration they are alive
@Ryan_Swivet
@Ryan_Swivet 5 ай бұрын
I love your stuff man
@timur.shhhhh
@timur.shhhhh 2 ай бұрын
0:21 JavaScript? There is no JavaScript, only Assembly
@Tantalium1
@Tantalium1 5 ай бұрын
I thought this was gonna be trackmania for a minute xd
@Croissan_
@Croissan_ 5 ай бұрын
Bro hearts almost every comment Edit: even this one!
@TylerMommsen
@TylerMommsen 5 ай бұрын
Damn right i do
@eli_0625
@eli_0625 5 ай бұрын
Very Nice!
@RealPacse
@RealPacse 17 күн бұрын
I'm really interested in AI and was wondering, do you recommend any tutorials for getting started with NEAT in Unity? I have experience with Python, C and HTML, but have no experience with JavaScript or Unity. Any pointers would be appreciated :) Your video's are amazing!
@JEXC_NITROTYPE
@JEXC_NITROTYPE 3 ай бұрын
You should do trackmania.
@WhatAmIDoingHereOnYoutube
@WhatAmIDoingHereOnYoutube 2 ай бұрын
as an actual bahraini thank you for recognizing my country😭😭
@krstev29
@krstev29 5 ай бұрын
Question: If one car makes it, for the end of time, will you get always perfect runs after that?
@TylerMommsen
@TylerMommsen 5 ай бұрын
Yes, but only for the one car that makes it as he will be pushed to the next gen. The way NEAT works is it allows worse performing players (cars) to go on to the next generation because maybe they have some genetics that will be more useful later on many generations later, so that's why even though one car is significantly better than the rest, the next generation will not be a ton of copies of that car
@pika28samson
@pika28samson 21 күн бұрын
Nice vid :D I am also training a similar AI, may I know the fitness data, input, and details on specific training values? Tysm ❤
@DebugBug
@DebugBug 5 ай бұрын
I have a question, and if someone can explain, that would be great. I once tried to code machine learning, and it technically worked, but at that time I didn't know much about AI, and really, the ai worked by a thread. So here is the question: What operation goes on in the node? Ik most of the time its a weighted variable, but how do you decide? is it predetermined? if so, you have practically made everything. If its not, then how does it decide what mathematical equation to put on that node? thank you to whoever answers!
@TylerMommsen
@TylerMommsen 5 ай бұрын
A node will take the sum of all the weighted connections to it as an input and then it will apply what is called an activation function to that total to normalize the input. Common examples are sigmoid and tanh. Then it's output will simply be that value. The decision on what activation function depends on the situation. Sometimes you want values between 0 and 1 and sometimes you want it between -1 and 1
@DebugBug
@DebugBug 5 ай бұрын
@@TylerMommsen but does the AI have to decide the function itself, or is it predetermined. Anyways, Thank you so much!
@TylerMommsen
@TylerMommsen 5 ай бұрын
@@DebugBug No problem! The function is predetermined. At least for all my AI's that is. The activation function i used for my nodes in this particular AI was the tanh function to map values between -1 and 1 which worked perfectly for left/right steering and reverse/accelerating
@Litger
@Litger 3 ай бұрын
Hello Tyler i want to learn about neural networks and teaching ai cool things like you,can you teach us how can we do these or can you sell lessons? (Sorry for bad english)
@חננאלרועיארבל
@חננאלרועיארבל 5 ай бұрын
Do you program the NEAT network from scratch? If you do, is there a chance you can make a tutorial on how to make a simple network? If not, can you provide a link to where you learned it?
@TylerMommsen
@TylerMommsen 5 ай бұрын
Yes, it's programmed from scratch in JavaScript. In the future I plan to make some tutorials or course on how to write it up completely, but for now you can check out The Coding Train on KZbin, he has a full 64 video playlist on AI which helped me a lot to learn. But before that make sure you are familiar with a coding language
@kylemorris5338
@kylemorris5338 5 ай бұрын
@@TylerMommsen How did you manage to wire a JavaScript AI into a Unity project? Most of what I found on a quick google search was a combo of "you shouldn't do that", "you CAN'T do that", and "there was maybe a way that halfway worked but it was discontinued by the company".
@TylerMommsen
@TylerMommsen 5 ай бұрын
@@kylemorris5338 oh damn sorry I made a mistake in my previous reply. I already had my NEAT code written in JavaScript from previous projects and I just had it converted into C# for Unity.
@kylemorris5338
@kylemorris5338 5 ай бұрын
@@TylerMommsen ah, that makes a lot more sense. Cheers!
@aceldama
@aceldama 5 ай бұрын
just curious (and too lazy to read teh whitepapers), how does your neat algorithm choose when and where to add new nodes?
@TylerMommsen
@TylerMommsen 5 ай бұрын
NEAT adds new nodes and new connections based on a random mutation chance. For this AI it had a 5% chance of adding a new connection, 1% chance of adding a new node and a 80% chance of changing the existing connections weights. These happen with every new generation. As for where, new nodes will always be placed in the 'hidden' layer which is just between the inputs (left side) and the outputs (right side).
@bloxfy-bh7rz
@bloxfy-bh7rz 5 ай бұрын
Nice!
@The_Doorser
@The_Doorser 4 ай бұрын
Day 2 of asking him to make snake from chrome
@erkot000
@erkot000 5 ай бұрын
But does the ai know how to drive or did it only memorise this one track
@TylerMommsen
@TylerMommsen 5 ай бұрын
In general since the AI uses rays as inputs, it will be able to use those inputs on any track they are placed on but in order to make them really good, it would be more ideal to train them on multiple unique tracks
@erkot000
@erkot000 5 ай бұрын
@@TylerMommsen Thanks for the answer
@tusharjadhav721
@tusharjadhav721 5 ай бұрын
nice bro...
@demongod9120
@demongod9120 5 ай бұрын
Bro can you tell me how I can do such code recently I have been trying to learn machine learning and ai stuff in python but I still can't figure it out and yet I am still interested
@TylerMommsen
@TylerMommsen 5 ай бұрын
Sure, firstly make sure you are fully familiar with Python or any other language of your choice and then you can check out The Coding Train on KZbin, he has great videos in JavaScript and some in Python for writing AI. You can also check out Tech With Tim. He primarily focus on Python and he makes great Python tutorials and he has tons of vids on AI/Machine learning stuff. Hope this helps!
@lucryc
@lucryc 5 ай бұрын
nice vid
@egbfilmz5839
@egbfilmz5839 4 ай бұрын
ai learns chess pls
@random_precision_software
@random_precision_software 5 ай бұрын
Have u got the project files?
@TylerMommsen
@TylerMommsen 5 ай бұрын
In the description
@random_precision_software
@random_precision_software 5 ай бұрын
Yea I've seen the source code but no project files. i.e grfx​@@TylerMommsen
@Mineninja12
@Mineninja12 4 ай бұрын
why did you not just use rigidbody 2d?
@TylerMommsen
@TylerMommsen 4 ай бұрын
I did use rigidbody2d, what do you mean?
@ChimbroDaPro
@ChimbroDaPro 5 ай бұрын
Let's GOO
@lurelleru
@lurelleru 5 ай бұрын
Молодец 👏👏👏👏👏👏👏👏👏👍👍👍🎉🎉🎉🎉🎉🎉
@Shivam-Cr-7
@Shivam-Cr-7 5 ай бұрын
Yep i did like lat video
@ninacooks1
@ninacooks1 5 ай бұрын
👌👏👏👏👏👏👏👏
@gslive6197
@gslive6197 2 ай бұрын
Please sir make auto play free fire game bot for level up in android
@bryceblazegamingyt9741
@bryceblazegamingyt9741 4 ай бұрын
Everyone watch this video on 0.25 speed on loop while ur out doing whatever to boost the algorithm!!
@flameaep
@flameaep 4 ай бұрын
if even ai can, why women can't?
@cantaloupeduckofdoom
@cantaloupeduckofdoom Ай бұрын
wowowoowow
@Tybek1
@Tybek1 4 ай бұрын
Nice copied thumbnail
Training an unbeatable AI in Trackmania
20:41
Yosh
Рет қаралды 14 МЛН
I Made an AI with just Redstone!
17:23
mattbatwings
Рет қаралды 1,2 МЛН
FOREVER BUNNY
00:14
Natan por Aí
Рет қаралды 31 МЛН
Noodles Eating Challenge, So Magical! So Much Fun#Funnyfamily #Partygames #Funny
00:33
AI Learns How To Play Doodle Jump
12:02
Tyler Mommsen
Рет қаралды 308 М.
AI Boxing Got me Wheezing
15:06
cozmouz
Рет қаралды 478 М.
Making another pickproof lock (but better)
15:14
Works By Design
Рет қаралды 4,8 МЛН
AI Learns Insane Monopoly Strategies
11:30
b2studios
Рет қаралды 10 МЛН
Dear Game Developers, Stop Messing This Up!
22:19
Jonas Tyroller
Рет қаралды 731 М.
How I Made Geometry Dash In Minecraft
32:13
CraftyMasterman
Рет қаралды 925 М.
Every Softlock in Portal
43:08
Marblr
Рет қаралды 901 М.
They turned MATH into a factory game...
21:34
Real Civil Engineer
Рет қаралды 1,8 МЛН
Making a difficult game about fitting in - Acerola Jam 0
19:17
jess::codes
Рет қаралды 429 М.
FOREVER BUNNY
00:14
Natan por Aí
Рет қаралды 31 МЛН