Тёмный

AI Learns to Speedrun Mario 

Kush Gupta
Подписаться 8 тыс.
Просмотров 542 тыс.
50% 1

#ai #mario #reinforcementlearning
SUBSCRIBE and I'll make your AI ideas.
This video is absolutely insane. I made an AI that speedruns Mario, and it might have hit the speedrun record. You have to watch to find out :)
Huge shoutout to uvipen on github. I literally could not create this without them.
follow my twitter (or X): / _kushgupta

Наука

Опубликовано:

 

27 авг 2023

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 663   
@kartingman5961
@kartingman5961 4 месяца назад
"For every second Mario stays alive, he receives negative punishment" 💀
@eyescreamcake
@eyescreamcake 2 месяца назад
Welcome to the human condition, Mario.
@moliver_xxii
@moliver_xxii 2 месяца назад
that's a biological process called "ageing".
@user-th6ii9oe6e
@user-th6ii9oe6e Месяц назад
@@eyescreamcake lol
@luisff7030
@luisff7030 26 дней назад
What is a positive punishment?
@user-th6ii9oe6e
@user-th6ii9oe6e 25 дней назад
@@luisff7030 Whipping
@happyboy07685
@happyboy07685 6 месяцев назад
5:58 I actually think you go faster with a backwards jump. Granted, it only saves a few miliseconds, but it counts that the AI knows how and to do it.
@mariotheundying
@mariotheundying 6 месяцев назад
That looks like an useless backwards jump tho as the AI did not go over the pipe and keep momentum, instead just landed on the floor and kissed the pipe
@jackmartin6502
@jackmartin6502 6 месяцев назад
This is a trick called fast acceleration. The AI didn't really do this since he hit the pipe right after.
@NotJenSen
@NotJenSen 6 месяцев назад
backwards jumping indeed make the player slightly faster
@EebstertheGreat
@EebstertheGreat 6 месяцев назад
That probably is why the AI does it, because you do accelerate faster this way if you aren't already at max speed. The AI is wasting a lot of time by jumping too high though, because it's not very good at it. The thing is that it is hitting the walking speed cap in midair, and it can't accelerate to running speed until it hits the ground while holding B. But it doesn't understand that yet. It's a lot easier to just figure out that jumping backwards is faster, at least briefly. Of course, it didn't matter in this run because it bonked anyway, but surely it didn't always bonk while training.
@jimster1111
@jimster1111 6 месяцев назад
seemed like it knew where the plants hitboxes were too. as it skid over the op of one by mere pixels during its world record run
@helloyanis
@helloyanis 6 месяцев назад
The best way to train an AI on a game is to not do the same level over and over again. Or the AI will be godlike at one single level and just very bad at others. If you diversify the training process il will take longer but the AI will be way better. Try doing this and then putting the AI on a level it has never seen before and you'll be surprised by how quick it learns it!
@KushGupta1
@KushGupta1 6 месяцев назад
You’re right! I was trying to train the AI on the whole game but due to that 1 bug at the very end it wasn’t working out so I switched to training level by level!
@Floxxoror
@Floxxoror 6 месяцев назад
And....what was this bug? If I could program myself, I wouldn't watch other people do it. It's like making the whole video in English and then an erratum at the end in Mandarin.@@KushGupta1
@bitonic589
@bitonic589 4 месяца назад
​@@KushGupta1when part 2
@kyoobqa
@kyoobqa 4 месяца назад
​@@KushGupta1 when part 2
@onionphilosopher
@onionphilosopher 4 месяца назад
@@KushGupta1 when part 2
@jamiepiccione3853
@jamiepiccione3853 7 месяцев назад
Next you should try to make an AI beat FNAF. (Even though someone probably already did that.)
@KushGupta1
@KushGupta1 7 месяцев назад
Sure, I'll add it to my list!
@demopan1067
@demopan1067 6 месяцев назад
Ai learns to manipulate rng
@Sandstheskeleton
@Sandstheskeleton 6 месяцев назад
@@demopan1067the impossible
@KushGupta1
@KushGupta1 6 месяцев назад
That's my next video haha @@demopan1067
@Monkeyface678
@Monkeyface678 6 месяцев назад
For that, the ai would need to be a model that responds to certain inputs, rather than one that memories the level
@blitzgerald
@blitzgerald 6 месяцев назад
this kind of content is so entertaining, if you continue to make video game content like this I will absolutely support you!
@parth971
@parth971 6 месяцев назад
Yeah he needs to continue at it. It's been few months already and he only has one video on his site. I have seen others doing this on RU-vid as well with Pokemon and stuff. So the competition is there for sure. I do agree though that content like this is going to blow up soon as it already seems like it is.
@Octobeann
@Octobeann 6 месяцев назад
6:00 i don't know the exact reason but due to a quirk with the physics mario actually accelerates faster backwards, TAS speedruns will also use backwards jumps to reach top speed as fast as possible.
@arfansthename
@arfansthename 6 месяцев назад
with backwards jumps (the smb speedrunning community calls it fast accels) it's only applicable in tases since it requires you to press both left and right in the same frame, something that physically can't apply in rta runs because of the d-pad, even then the backwards jump the ai did there wastes time as it's walking speed
@animowany111
@animowany111 6 месяцев назад
@@arfansthename Nah, pressing left+right is only required for the fastest possible execution of a fast acceleration. Even without left+right, if you do a fast accel frame-perfectly you'll be slightly faster.
@mariotheundying
@mariotheundying 6 месяцев назад
Useless backwards jump tho as the AI just used it to hug the pipe as fast as possible, unless im wrong
@Chrischi3TutorialLPs
@Chrischi3TutorialLPs 4 месяца назад
You would be surprised how much theory goes into SMB1 speedruns at the top level. People will literally spend thousands of hours on improving by a few milliseconds, that is how optimized the game is at this point.
@amanvir
@amanvir 7 месяцев назад
Content like this is simply amazing, I just know you're about to blow up soon! Happy to be an early viewer to a massively underrated channel!
@KushGupta1
@KushGupta1 7 месяцев назад
I appreciate the kind words :)
@happyboy07685
@happyboy07685 6 месяцев назад
first video and he already has 1K, he probably had the good idea of going in with experience
@amanvir
@amanvir 6 месяцев назад
​@@happyboy07685 Totally! The video is so well produced, and the topic is very interesting as well! I'm excited for more content from Kush!
@korbynalmendariz9554
@korbynalmendariz9554 7 месяцев назад
You might only have 190 subscribers but this content is one of a kind. Keep making videos!
@KushGupta1
@KushGupta1 7 месяцев назад
Thanks for the kind words! I’ll try my best.
@videoactif
@videoactif 4 месяца назад
@@KushGupta1 What about part 2 ?
@lunaticko5639
@lunaticko5639 Месяц назад
totally agree with you!!! waiting for part 2!!!
@NyteMunkey
@NyteMunkey 20 дней назад
He's got way more now :) He is busy making part 2, I'm sure!
@Rikysonic
@Rikysonic 6 месяцев назад
6:20 Speedrunners: we must save this 0,35s framerule somehow AI: I'm 15s away from the record, 𝙡𝙞𝙩𝙚𝙧𝙖𝙡𝙡𝙮 𝙖𝙡𝙢𝙤𝙨𝙩 𝙩𝙝𝙚𝙧𝙚 :𝘿 jk, obv great video and great work, but it made me laugh lol
@rolen47
@rolen47 5 месяцев назад
Your editing and commentary is really good. I'm surprised you only have 1 video, good quality like this usually takes youtubers a lot longer to achieve.
@KushGupta1
@KushGupta1 5 месяцев назад
Thanks, I appreciate the kind words!
@OpaqueSleet7802
@OpaqueSleet7802 7 месяцев назад
After the AI masters SMB1 I would like to see it attempt the lost levels, it's much harder so I wonder how the AI would figure out how to get past some of the harder parts, specifically ones where hidden blocks are required to progress, or how to use the wind to do longer jumps. Since SMB1 and the lost levels have the same physics the same AI could probably be used. I subscribed to see your next uploads! :)
@KushGupta1
@KushGupta1 7 месяцев назад
Thanks for the support! Thats a good idea. I’m to add it to the list. The same AI couldn’t really be used, since I’d still have to train it on the level which costs money because I have to rent a very powerful but expensive gpu. Nevertheless, I’m going to try that in the future for sure!!
@MonkeyMod
@MonkeyMod 6 месяцев назад
@@KushGupta1ok
@user-xe7kx7yi5z
@user-xe7kx7yi5z 6 месяцев назад
@@KushGupta1 Please use cheat codes to get money then buy the gpu and stuff so you can make more of these videos.
@Atlas_Redux
@Atlas_Redux 3 месяца назад
@@KushGupta1 How much processing power does it need? I'm running some Learnfun/Playfun, but that is entirely CPU based. Got an RTX 4090 on an AMD 7950X3D.
@lightningmc0935
@lightningmc0935 6 месяцев назад
this was great i really hope part 2 comes out soon
@chilaamyu3272
@chilaamyu3272 3 месяца назад
Bro learned the AI how to go the fastest, but forgot the pipe in 1-1
@theflightwrightsprogrammin4410
@theflightwrightsprogrammin4410 5 месяцев назад
Amazing video, the animations and commentary is very nice. I thought that you must have millions of subscribers and was shocked to see 3K. I guess this shows how high the bar has been set in order to go viral on RU-vid.
@someone4229
@someone4229 6 месяцев назад
That is *amazing!* For sure want to see second video about this
@brendawoodard5007
@brendawoodard5007 6 месяцев назад
6:24 This is why money should be outlawed, and I am ashamed that you wouldn’t even TRY to steal. How would training an AI even COST money?!?! *HOW are you even putting UP with that?!?!*
@stratonikisporcia8630
@stratonikisporcia8630 6 месяцев назад
Unless he literally BURNS his GPU each time, the only reason to lose money is the electricity bill which... isn't that much... Edit: he said it in a comment that he rents a virtual GPU
@jorgejuegajuegos4044
@jorgejuegajuegos4044 6 месяцев назад
First video, doing very good. Nice job man! 73k views and 1,55k subs are really good for only a first video. You got this!
@XX-xv6xe
@XX-xv6xe 4 месяца назад
Gonna check back for part two cuz this is 🔥
@realbenactually
@realbenactually 4 месяца назад
I’m excited to see part 2, but more excited to see what direction your channel takes. Great start!
@emdf7electromotivedieseltr622
@emdf7electromotivedieseltr622 6 месяцев назад
this seems to be your one and only video, I will watch your career with great interest. Definitely earned a subscribe from me.
@Somos2011
@Somos2011 4 месяца назад
I'm really hyped for part 2, keep it up :)
@blingmememaster
@blingmememaster 7 месяцев назад
I think a fun game for the AI to speedrun would be a game like Wario Land 4 or pizza tower, as they are really fast paced and I want to see how the AI works in fast situations.
@KushGupta1
@KushGupta1 7 месяцев назад
added it to the list!
@Its_bloon.yt2011
@Its_bloon.yt2011 6 месяцев назад
@@KushGupta1pikmin?
@blackgustavogaming
@blackgustavogaming 6 месяцев назад
@@KushGupta1 I would love to see that
@blackgustavogaming
@blackgustavogaming 6 месяцев назад
idk if it will be possible though
@leebeeskee
@leebeeskee 4 месяца назад
The entertainment factor of this video left me flabbergasted when I discovered you only have one video! I can't believe it. When can we expect part 2?
@xecogenanimations
@xecogenanimations 3 месяца назад
I actually enjoyed this keep the good work and i hope you become more famous in the future :)
@NotSoUselessFacts
@NotSoUselessFacts 3 месяца назад
noice
@grumly85
@grumly85 4 месяца назад
Wow. Excellent first video. Now subscribed. Waiting for part 2 😊
@iron09
@iron09 6 месяцев назад
Some thing you should probably do are: 1) have more poses for your character 2) get him out of the way of the screen while showing off what You did (if you are so scared someone is going to steal your content just put something half trasparent on the vidioso it so be as much in the way)
@KushGupta1
@KushGupta1 6 месяцев назад
You’re right! I’m going to try to draw more poses & use him less so people can focus on whats on the screen. Thanks for the feedback.
@siLveRscOpe13x
@siLveRscOpe13x 4 месяца назад
Okay you got my sub. I look forward to part 2 ;)
@happyboy07685
@happyboy07685 6 месяцев назад
my man made the smart idea of making the channel with experience
@rarebrockstark6219
@rarebrockstark6219 6 месяцев назад
This is like Mark Rober "I may suck at Mario, but im really good at coding (mark=engineering), so im actually *really* good at Mario
@KushGupta1
@KushGupta1 6 месяцев назад
Thanks! I love mark rober vids :)
@rarebrockstark6219
@rarebrockstark6219 6 месяцев назад
@@KushGupta1 yeah
@Crafty_Jumper
@Crafty_Jumper 3 месяца назад
You: says one dash two Me; Punches you in the face until you don't say punctuation
@mulone-the-cool-guy
@mulone-the-cool-guy 6 месяцев назад
"ill have to make the whole game, from scratch." *proceeds to open unity* what about ScartcH
@johnlarson505
@johnlarson505 5 месяцев назад
This video was very good. Any chance we'll see part 2?
@Kanha0321
@Kanha0321 5 месяцев назад
Waiting for part 2 this was awesome 😎❤
@LeWolfYT
@LeWolfYT 6 месяцев назад
i loved it also what is that one music that’s amazing that isn’t metal mario
@JamesMcFuckin
@JamesMcFuckin 7 месяцев назад
I agree with the sentiment of victory.
@cozmothemagician7243
@cozmothemagician7243 6 месяцев назад
Great job. Looking forward to more (:
@brosephstinson1297
@brosephstinson1297 4 месяца назад
where part 2, I'm invested now
@twk4977
@twk4977 Месяц назад
How do my guy not know about the shortcuts? I know not everyone is a big fan of mario games but the pipes and going down them, is literally a staple of pop culture and gaming culture itself
@TheAwesomeCap
@TheAwesomeCap 7 месяцев назад
Hi Kush! Do you have a link to your GitHub repository that you can share?
@glitchysilver
@glitchysilver 6 месяцев назад
damn your pretty underrated! hope ya get popular in the future :D
@antoineschneider2822
@antoineschneider2822 3 месяца назад
damn i love your video. definitely gonna stick around to see how it goes
@CharmingCharles30
@CharmingCharles30 6 месяцев назад
bro this is ur1st video!? pls keep up this quality of editing its really good
@ILikeChangingPfp
@ILikeChangingPfp 6 месяцев назад
Bro really didnt know about the 1-1 underground bonus area💀💀
@KushGupta1
@KushGupta1 6 месяцев назад
☠️
@tjeerdbakker160
@tjeerdbakker160 4 месяца назад
I love this content, keep it up!
@YoudonknowwhoIam
@YoudonknowwhoIam 6 месяцев назад
awesome video! Can’t wait for part 2
@Echo-fo2nf
@Echo-fo2nf 6 месяцев назад
I checked your channel and this is your first video?! I've never seen a channel blow up so fast! Be warned though, you'd better follow up on a sequel or they might all leave. Don't waste this wonderful chance you have.
@juapatral
@juapatral 6 месяцев назад
I was going to comment the exact same thing! Surprising that this is a young channel with just 1 vid. Keep doing a good job!
@albert836dx5
@albert836dx5 6 месяцев назад
BROOO THIS IS A REALLY GOOD NEW CHANNEL
@WilliamXu210
@WilliamXu210 3 месяца назад
Friendly reminder AI is still not taking over
@channel12849
@channel12849 7 месяцев назад
nice video and cant wait for part 2!!
@MAMAMIAAWOODENBOY
@MAMAMIAAWOODENBOY 23 часа назад
“This is the world’s fastest Super Mario Bros. Speedrun” That is 18 minutes
@joelhummel779
@joelhummel779 7 месяцев назад
Part 2 Please
@ChristianSandviknes
@ChristianSandviknes 3 месяца назад
0:22 - you didn't die to the same goomba, you died to the other one.
@asy42699
@asy42699 3 месяца назад
after 4 months... im still waiting for part 2
@brendenbonokoski9177
@brendenbonokoski9177 6 месяцев назад
i like this content your a great youtuber im exited for a pt 2
@Simeeow
@Simeeow 3 месяца назад
Brooo we need part 2!
@kabirminecraft9617
@kabirminecraft9617 6 месяцев назад
i love that ai so much and the music in the background motivates me to make ssomething like this so please tell me waht music u used
@KushGupta1
@KushGupta1 6 месяцев назад
It’s called Dedede’s Royal Payback (Kirby Triple Deluxe)
@TetraFan1000
@TetraFan1000 7 месяцев назад
Highly underrated! Nice work.👍
@cheesydinos
@cheesydinos 6 месяцев назад
ooo subbed. this is very underrated
@thesamesunrise5297
@thesamesunrise5297 4 месяца назад
Yo just binged watched all your videos
@Shadow_gd420
@Shadow_gd420 3 месяца назад
amazing content for your first vid! keep going remember me when u hit 1m subs
@ClarkPotter
@ClarkPotter 4 месяца назад
Nice, bro! Wtg! Amazing. Preferred your AI for style points, too.
@16dvnk7
@16dvnk7 6 месяцев назад
please make part two so you can try to beat the entire game
@user-hf8qv9ms9m
@user-hf8qv9ms9m 6 месяцев назад
4:17 this is Kirby music
@bloonyTheOriginal
@bloonyTheOriginal 7 месяцев назад
Remember us when this channel gets famous
@KushGupta1
@KushGupta1 7 месяцев назад
Of course! Thanks for the support!
@AquaQuokka
@AquaQuokka 6 месяцев назад
​@@KushGupta1This randomly got recommended to me, and I just subscribed!
@kasebrotpodcast2237
@kasebrotpodcast2237 6 месяцев назад
Pls make part 2 I watched this the 3rd time
@crabpaste
@crabpaste 4 месяца назад
We need part 2?!?! Great video 🎉
@yoshi_drinks_tea
@yoshi_drinks_tea 4 дня назад
Alternative title: Teaching an AI to end the suffering as fast as possible
@Inkling2
@Inkling2 6 месяцев назад
Do this with celeste. I know it has been done before, but it would be really cool to see the AI progress.
@YokoX23
@YokoX23 4 месяца назад
Ok you got me. I subscribed. For only having one video on your channel, it's a pretty cool one. I do hope the 4 month gap isn't a sign of things to come, but rather just shows how hard you're working on the next cool video ^_^ Also an idea - I just want to see this ai finish the entire game with the actual speedrun record. I know it may hard though, and it's ok to post other videos before you get to that one. Focusing on one project too long and spinning your wheels can be worse than just jumping to something else for a bit. Also I'd love to see an AI speedrun Ocarina of Time and see if it finds the glitched out shortcuts. Let it put in those inputs faster than a human ever could. I understand this is a massive challenge though, so maybe just the first dungeon would be ok :)
@KushGupta1
@KushGupta1 4 месяца назад
I’m working on multiple videos at once and progress has been a bit slow. But I’m really close to finished. Part two will come out sometime in Jan!
@thelastwormbender7086
@thelastwormbender7086 6 месяцев назад
Very good video, hope to see more in the future😊
@strobbery2523
@strobbery2523 6 месяцев назад
late viewer, but i really love these types of AI learning videos, keep goin man :D
@LocalToaster.
@LocalToaster. 6 месяцев назад
late? this is the first video by this channel!
@lleguily
@lleguily 4 месяца назад
pretty cool man im waiting for part 2
@coinboy_coin
@coinboy_coin 3 месяца назад
you know what ima sub u at 6.16k as im doing so wonder if that'll be something cool soon
@kokodi01
@kokodi01 6 месяцев назад
good job for your first vid! +1 sub
@BlastTheBat
@BlastTheBat 6 месяцев назад
Masked Dedede theme sounds so badass. Shows it really has trained.
@SuperNKM9
@SuperNKM9 6 месяцев назад
And so a new Code Bullet has appeared except a lot less chaotic.
@eavn5389
@eavn5389 3 месяца назад
its been FOUR MONTHS AND WE NEED A PART 2
@MikeEllberry
@MikeEllberry 4 месяца назад
Alt title: pavloving mario until he gets a wr
@Kisini03
@Kisini03 5 месяцев назад
1:22 is when the ai is born and took 6mins and 44secs to get a record, scary.
@Kisini03
@Kisini03 5 месяцев назад
Well, it only took 2,100 tries.
@frespect
@frespect 4 месяца назад
WE DEMAND PART 2
@samuelv5978
@samuelv5978 3 месяца назад
Wait... THIS IS YOUR ONLY VIDEO? THIS IS SO FREAKING GOOD WTH
@xdkristofsaltacc
@xdkristofsaltacc 6 месяцев назад
I know this is the only video on your channel so far, you're going to become famous one day!
@cheeseboiYT
@cheeseboiYT 6 месяцев назад
make part 2 RN
@sheltongolden4394
@sheltongolden4394 4 месяца назад
Interesting video! I will be back for part II.
@ScottPIayz
@ScottPIayz 6 месяцев назад
Hope to see a continuuation too see it beat every level someday, thay would be sick!
@johntippin
@johntippin 3 месяца назад
Excited for the sequel!
@rereerer1815
@rereerer1815 6 месяцев назад
This editing is wayyyy to good to have less than 1k subs
@youreyesarebleeding1368
@youreyesarebleeding1368 4 месяца назад
in before this channel blows up. current subs: 5.17k I was surprised to see such a new channel making such good content
@AmaJein
@AmaJein 5 месяцев назад
Really interesting video. Good job!
@iainballas
@iainballas 4 месяца назад
Will sub on part two :p
@user-7jskch72oq
@user-7jskch72oq Месяц назад
WE NEED PART 2
@cezarysmorawski6755
@cezarysmorawski6755 6 месяцев назад
great video but you can make more pngs for the character it will help (:
@reonicer
@reonicer 4 месяца назад
we need part 2, been 3 months 😔
@denizcakan5969
@denizcakan5969 5 месяцев назад
Dudeeeee, part 2!!
@justachannel3874
@justachannel3874 6 месяцев назад
Can’t wait for the next episode
@CreeperITA104
@CreeperITA104 4 месяца назад
Imagine the ai starts doing TAS stuff
@Somos2011
@Somos2011 4 месяца назад
It kinda already doe
@U_Lambda
@U_Lambda 6 месяцев назад
Great video! Would you be able to share reward function to help a brother out? No matter how many times I tweak it, the little guy never seems to get better 😂
@studid55
@studid55 4 месяца назад
Bro, I LOVE your humor! had me dying laughing on the shuttle ride to school :D look at me funny, yes, but ur missing out on this sweet drugs, I mean funny youtube vids :D
@KushGupta1
@KushGupta1 4 месяца назад
Thanks!
@NeweRen
@NeweRen 6 месяцев назад
underrated as frick, you really should make more
Далее
Training an unbeatable AI in Trackmania
20:41
Просмотров 12 млн
This Guy is Literally TOO GOOD at Speedrunning
19:58
McDonald’s MCNUGGET PURSE?! #shorts
00:11
Просмотров 3,2 млн
AI beats multiple World Records in Trackmania
37:18
Просмотров 2,4 млн
AI Learns Insane Monopoly Strategies
11:30
Просмотров 10 млн
Could You SURVIVE in Super Mario 64?
13:42
Просмотров 219 тыс.
AI vs. AI in 100m Dash (deep reinforcement learning)
11:13
AI Learns to DESTROY old CPUs | Mario Kart Wii
9:54
Просмотров 1,2 млн
AI Learns To Play Golf
13:57
Просмотров 335 тыс.
How Speedrunners Conquered The World's Hardest Game
54:46
Phone sees the future ! 📲🫣👽
0:38
Просмотров 11 млн
Я Создал Новый Айфон!
0:59
Просмотров 563 тыс.
Интел подвинься, ARM уже в ПК!
14:06
Broken Flex Repair #technology #mobilerepair
0:55
Просмотров 15 млн