Тёмный

Mario Bros is too easy for INSANE AI 

AI Tango
Подписаться 20 тыс.
Просмотров 123 тыс.
50% 1

#ai #mariobros #reinforcementlearning
AI uses a variant of the Reinforcement Learning algorithm Rainbow DQN to learn how to play a level of New Super Mario Bros within a day.
0:00 Intro
2:34 Coding
4:23 Training
9:10 Final AI
Github I need help on:
github.com/Felk/dolphin/issue...
Also thank you to my editor for editing this video!
www.benji-bott.com

Игры

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

 

22 май 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 295   
@JoziGlitzh
@JoziGlitzh 9 месяцев назад
You should make it so that collecting coins rewards it. Coins in Mario levels are often used to tell the player they're doing something right, so if the AI tried to get the coins it would probably learn faster
@JasonWThompson
@JasonWThompson 9 месяцев назад
It may be possible that the AI is learning that coins are good naturally. That is, it might begin to "believe" that collecting coins is going to have a higher probability of receiving a higher reward.
@TheGhostWinner
@TheGhostWinner 9 месяцев назад
@JoziGlitzh So from what I understood from the video, the AI is making decisions only based on the pixels that it “sees” - the pixels + the feedback from the reward function. It will try to maximize the rewards based on that (pretty much like a human). I’m guessing, then, giving rewards for coins would make things harder as you would need to gather data from the game aside from the images. If you think about it, deep down the AI probably does predicts rewards based on coin locations, as they mostly indicate the right path to ending the level.
@JoziGlitzh
@JoziGlitzh 9 месяцев назад
​@@TheGhostWinner I understand, maybe if the AI received colored images it could then detect coins, though, for it not to confuse anything yellow with a coin, it'd have to detect its shape too, which could be quite complex and it may still confuse other yellow things for coins, especially if they're round. And yes, what you say is true. If it sees that the path it has to follow for it to be rewarded has coins, it would probably associate coins with playing the game correctly, however, that would take a lot of time, making it so just collecting a coin rewards it would speed up this process a lot, and as a consequence, it would probably learn quicker how to beat the level.
@randomnessproductions4212
@randomnessproductions4212 9 месяцев назад
*proceeds to put it in a Mario Maker troll level where all coins lead to death*
@stylextv
@stylextv 9 месяцев назад
@@TheGhostWinner How would retrieving the coin count from the game and using that as a reward function pose any problem? As I understand the AI is already being rewarded for increasing its x position and punished for dying. Couldn't you just drop and replace that x position with the coint count?
@marshalllindeman7914
@marshalllindeman7914 10 месяцев назад
i feel bad that you don't really get enough attention from people because the content you are creating recently are good but also are getting better and better! just keep up the good work and make those ai's shine brighter than ever!
@aitango
@aitango 10 месяцев назад
Thanks! Good to hear you think its improving, hoping that if I stick at it for a while and the content is good, the channel will grow!
@marshalllindeman7914
@marshalllindeman7914 9 месяцев назад
@@aitango For sure! well let's hope first that there is a way to get the shaking to work within dolphin!
@BigSizzle69
@BigSizzle69 9 месяцев назад
@@aitangoit definitely will!
@alansmithee419
@alansmithee419 9 месяцев назад
I think one of the things that really stumped the AI could've been moving platforms. Not because they're hard, but because it can't see that they're moving. If it only gets a still image at a time, and outputs a movement for what it should do based on that image, when the next image is given to it it's forgotten where the rotating platforms were in the previous frame, so it can't compare and see that they're rotating. This can lead to it landing on what it thinks is a walkable surface, only for that surface to then rotate out from under it and become a slope that it falls off.
@aitango
@aitango 9 месяцев назад
That's a good point! I forgot to mention this in the video, but the AI isn't actually given just a single frame, but rather than last 4 (this is often called framestacking). Giving it the last 4 frames tries to rectify this problem by at least giving it some sense of motion
@xemorr
@xemorr 9 месяцев назад
@@aitango What frame rate were these last 4 frames at?
@John-gs3qw
@John-gs3qw 9 месяцев назад
That is an interesting point. I wonder if the pure reward for going right, excluding the penalty for death, is partly responsible for the slow training. For instance, I have noticed that it rarely chooses to do nothing when that might be beneficial on the rotating platforms. What it does instead is go right too much, then corrects by going left, then tries to go right again because all it learns is to go right. This process makes it more likely to die from failing at attempting a leftward correction. My first thought is to introduce a penalty for going left, but that could also slow training. My second thought is to introduce a penalty for rapidly changing direction (i.e. moving right/left immediately after moving left/right) because that indicates you're correcting a suboptimal decision. You could make the penalty for changing direction decrease with the number of frames that the action "None" is taken in between changing direction. This could introduce problems with learning concepts like wall jumping, so further modifications would be needed, but the point is that "teaching" only to move right as much as possible might lengthen the training time for navigating moving platforms.
@ThePureSynergist
@ThePureSynergist 9 месяцев назад
What’s really fascinating is being able to visualize the predictions, knowing it’s the same thing that your brain is doing in real time every time you pick up a controller.
@Zosh_
@Zosh_ 9 месяцев назад
It would be insane to train the AI playing Mario Maker. Maybe being able to do Super expert endless or something.
@zanmolecules4105
@zanmolecules4105 9 месяцев назад
That would be absolutely sick
@tubbyszabo6586
@tubbyszabo6586 9 месяцев назад
that's legit a genius idea
@nobafan7515
@nobafan7515 7 месяцев назад
I wonder if this would count as an adversial generated network (gan). One ai builds levels, one plays.
@duckdudette
@duckdudette 10 месяцев назад
Really impressive! Would love to see an AI against even harder Mario levels at some point!
@benji.botterill
@benji.botterill 10 месяцев назад
I think if the he can figure out a way to use the shake function and the nunchuck through the forum in the video then that will most likely be a future video.
@aitango
@aitango 10 месяцев назад
I will definitely be doing more Mario levels in the future! As mentioned, at current an annoying number of levels do require shaking, but at least for now I'll try and find some good ones that don't require the shake
@RipLeEpic
@RipLeEpic 9 месяцев назад
AI v.s champion's road
@PROPLAYEN
@PROPLAYEN 9 месяцев назад
​@@aitangoI'd love to see it beat an entire game someday
@AllToastersToastToast
@AllToastersToastToast 9 месяцев назад
I’m kinda curious how it’d tackle a tower level. I imagine it’s way harder to teach an AI that already likes just going right that “ _sometimes_ go up = good, _sometimes_ go right = good,” and I think that could be interesting.
@superpuppy3478
@superpuppy3478 9 месяцев назад
It would be cool to see 4 player AI.
@musicviolamusician4392
@musicviolamusician4392 9 месяцев назад
there tiktok lives that sometimes show that
@segamatthews5023
@segamatthews5023 8 месяцев назад
@Thisaintarealemail lol that would be insane
@smb2fds
@smb2fds 2 месяца назад
​@@musicviolamusician4392TAS
@renakunisaki
@renakunisaki 9 месяцев назад
It's a good thing you put that reminder at the end! The three popup animations and bell sounds were obnoxious enough to win me over, but I can't possibly be expected to remember for that long! There's three whole minutes between them! I mean, I wasn't going to subscribe at all, but that nag really convinced me. I'd have completely forgotten about the buttons I can clearly see on my screen if I hadn't heard that bell!
@cozmothemagician7243
@cozmothemagician7243 7 месяцев назад
Great work again. I'm loving your stuff. Thanks again.
@MayroSMM
@MayroSMM 9 месяцев назад
This is so interesting! I wonder how long it would take for AI to beat the game.
@aitango
@aitango 9 месяцев назад
Really glad you think so! I would be very curious too! I think some levels would require so changing of the rewards though, since some levels require you to go up and down rather than just right! I will have to try the AI on some harder levels though so I can give you an idea haha
@TheFurry
@TheFurry 9 месяцев назад
oh hi mayro
@balt.
@balt. 9 месяцев назад
it'd need to train on every level at random probably, since just training it on one dataset causes massive overfitting issues
@jamieever4046
@jamieever4046 9 месяцев назад
I'm so excited to see another AI channel! Here's my subscription and like, you're doing great!
@aitango
@aitango 9 месяцев назад
That's really great to hear, thank you so much! I'll try my best to keep making videos people want to see!
@gammaboy4568
@gammaboy4568 9 месяцев назад
It seems that the AI hasn't gained the experience necessary to associate damage with failure. It's made the connection for the koopas at the end, since the stun from the hit greatly increases the chance of falling into a pit... however, in other parts the AI walks through koopas when they don't directly affect the ability to clear the level. I think part of this is that the trial contains so few enemies as a whole that the idea of retaining a powerup to make handling enemies easier is lost. Since the AI likely never encounters enough enemies directly in any run to get any sense that getting hit is seen as a bad response (low impact on forecast rewards) it never makes a route which directly avoids them optimally. I think stages that focus less on pits or contain more direct stage hazards (castle levels, for instance) would be interesting to see, as the AI would learn the value of Mario's powerups naturally as they give a great margin for error when moving through the stage. It would also be interesting to see if the AI learns how to acquire powerups to increase it chances of success.
@lucascastro8609
@lucascastro8609 9 месяцев назад
This is really cool. By the looks of your next video, it seems that you’ve figured out the motion issue, but if you haven’t Dolphin has a pretty great way to emulate the motion within its own settings. Shaking, tilting, and pointing are all mappable to any keyboard or controller input. If the AI can input through either method, you should be able to circumvent the need for a gyrometer. Best of luck. These projects are really cool.
@aitango
@aitango 9 месяцев назад
Really glad you like it! I haven't actually figured out the motion issue yet, the Mario Kart video uses the gamecube controller since Mario Kart allows it. I've looked at Dolphin's settings, but sadly I'm using a modded version of Dolphin which allows Python code to interact with the game, but it doesn't have nunchuck/motion input yet :(
@Hack--rz1io
@Hack--rz1io 8 месяцев назад
​@@aitango I think dolphin's pipe input could help here it lets you use python / whatever language that can open files as an input method it might be harder than the modded dolphin tho
@nidicey
@nidicey 9 месяцев назад
just discovered this channel, don't know why this channel is so small because the content's legitimately pretty good
@aitango
@aitango 9 месяцев назад
Thanks, glad you like it
@burningflamesofdivinedragon
@burningflamesofdivinedragon 9 месяцев назад
Good job on this it was amazing to see how Mario Bros worked with the AI playing.
@aitango
@aitango 9 месяцев назад
Thanks, I hope to do some harder levels in the future
@hugom2317
@hugom2317 9 месяцев назад
Hi, I really like your channel and I'm impressed by the progress since the first video on ia for mario kart ! I was so inspired that I too wanted to get involved in reinforced learning for dolphin games. But I'm having some problems setting up the environment. You used the dolphin fork with integrated python, right? In the video, you don't run the script from dolphin but from a custom interpreter. Is it possible to find out how to do this? Thanks, and good luck with the youtube channel, with quality like this it's only a matter of time before it blows up!
@aitango
@aitango 9 месяцев назад
Hey, its cool to see others trying to work on this kind of stuff! Sadly setting up the environment was a real pain and took months... The way I did it was by using a custom interpreter (which controlled the AI) to launch instances of dolphin with a script running from command line. I then used sockets to communicate between the main program and dolphin. The main program would run most of the AI code, and the dolphin side would just take actions, and get the state and reward. Was not easy though. Thanks for the good wishes though, I'm very much hoping it blows up at some point!
@simoneboccadoro93
@simoneboccadoro93 9 месяцев назад
I'm going to let my kid play smb 24 hours straight, punching him every time he dies and giving him candies every time he gets to the end, he'll learn eventually❤
@aitango
@aitango 9 месяцев назад
Real life reinforcement learning, I like it haha (minus the punching children of course)
@Skyliner_369
@Skyliner_369 9 месяцев назад
I would have suggested nsmb for the DS to start this out, as every button can be mapped more easily. It also helps that the ds is naturally low rez. If you were to do a game like sm64ds, I'd recommend a much bigger 'brain' and a much more complex reward structure. Probably something outside your scope.
@Portablesounds
@Portablesounds 9 месяцев назад
I'm curious if any of the AI you've trained have been able to generalize their skills to other levels? I guess the issue would be that any new items or platforms or enemies would be incredibly hard to deal with unless the AI had developed some good generic edge detection or something. Could be interesting to see someday, even if its awful lol.
@aitango
@aitango 9 месяцев назад
This AI probably wouldn't be able to generalize very well since it was only trained on one track, but I imagine if an AI was trained on a few at the same time it could start to generalize. I'm definitely looking to do a video on this in the future!
@SupaGamersAlt
@SupaGamersAlt 9 месяцев назад
I would love to see Google and Nintendo collaborate on training an AI to beat the ORIGINAL NES SMB1. A bit of an "I scratch your back, you scratch mine" scenario, where Google gets to show off its AI technology in an interesting proof-of-concept that nearly ANYONE would understand, and Nintendo could get some support from Google in their future tech problems as a favor for loaning their game rights (i.e. How do I make the fastest and most optimal secret area layouts to incentivize users?).
@novexGD
@novexGD 9 месяцев назад
thought this video had millions of views for some reason, this is amazing! I'm going to subscribe
@aitango
@aitango 9 месяцев назад
Thanks! I hope it gets millions of views haha
@jaythecoderx4623
@jaythecoderx4623 9 месяцев назад
@@aitango How the hell are you this underrated. EXPLAIN YOURSELF
@aitango
@aitango 9 месяцев назад
I'm not sure I can explain that one, but I'm hoping it changes soon!@@jaythecoderx4623
@jaythecoderx4623
@jaythecoderx4623 9 месяцев назад
I hope so @@aitango
@tubbyszabo6586
@tubbyszabo6586 9 месяцев назад
Your channel theme of training AI in classic video games has INSANE potential
@norn-sama3407
@norn-sama3407 9 месяцев назад
Very coool video, you deserve more attention :3 Do you consider teaching other people how to program something like this in future? I would be very interested in learning more about this ^^
@aitango
@aitango 9 месяцев назад
Thank you very much! I have considered it before, I’m not sure it would get as much attention as videos like this, but I’d really like to help people get into AI so it’s something I’ve thought about a lot!
@Xvladin
@Xvladin 9 месяцев назад
Im working on something like this, but im struggling with this one aspect. How do you determine when Mario has moved right in the stage? Is it just as simple as when hes pushing right reward him? Or is there some other way you were able to determine Marios rightward progress across the stage? I saw that you said you have a dolphin mod that allows you to read/write from memory. What are you using for this and how did you determine which memory adresses to look at?
@theconiferoust9598
@theconiferoust9598 8 месяцев назад
subscribe button right as you explain reinforcement learning...well done :)
@aitango
@aitango 8 месяцев назад
Welcome aboard, thank you!
@ricardotrillo887
@ricardotrillo887 24 дня назад
Bro this is amazing, thanks for sharing.
@aitango
@aitango 24 дня назад
Thank you for watching!
@SpaikeeTheEevee
@SpaikeeTheEevee 9 месяцев назад
Honestly, one thing I really want to see is how well an ai trained on one level does in a different level
@Photo650D
@Photo650D 8 месяцев назад
it would fail directly
@thepiratepeter4630
@thepiratepeter4630 8 месяцев назад
@@Photo650D But how long would it take to learn a second level? Less than the first?
@Snozzer
@Snozzer 9 месяцев назад
5:50 “Hopefully it would grow out of its phase of being mostly incompetent…” Same, little AI… same.
@migue897
@migue897 9 месяцев назад
I want to see AI beating Ganondorf in TOTK
@M.N.9
@M.N.9 9 месяцев назад
9:45 how the hell did that fireball go up here?
@ederdalpizzol
@ederdalpizzol 6 месяцев назад
Great content!!! I just have one question, how you pass to the AI the x cordinates of mario, so it can get a reward for going right?
@l-bear_0528
@l-bear_0528 9 месяцев назад
Here’s a thought that you don’t have to do since it’d be a LOT of work but something I’d like to share! If you taught an ai all the levels of Super Mario Bros Wii, I wonder how long it would take. Comparing its time to a professional speed runner would be really interesting!
@MudakTheMultiplier
@MudakTheMultiplier 9 месяцев назад
I find it interesting that the confidence in *all* possible actions goes up. The actual margome of difference between different action is actually pretty low most of the time. I wonder what would happen if instead of picking the highest action only you did a random action above a certain threshhold, or within a range of thd top one, to encourage the ai to be sure of its actions.
@thedoubleabattery9417
@thedoubleabattery9417 9 месяцев назад
This video needs more views.
@MrCanKnotNot
@MrCanKnotNot 8 месяцев назад
It's interesting to see it damage boost on the first screw knowing the fire flower got restored upon reporting.
@lukasq1565
@lukasq1565 8 месяцев назад
very cool video! would it be possible to do an ai like this in stronghold (2)? Would love to have stronger ais. Probably a lot more complicated but technically still possible?
@peavri
@peavri 9 месяцев назад
@AI Tango I am wondering how long it will take for the AI to discover that to progress in the "teleporting screw", it will be necessary to stop the temporary progress to the right, "shake", and jump near a range of appropriate timing.
@MySharif1
@MySharif1 9 месяцев назад
I love this video. AI is such a fascinating thing to look at in games. ...But also, what in the world did you just call a 0?
@MySharif1
@MySharif1 9 месяцев назад
Also, I barely use C++, but I am willing to look into helping you figure out the issue!
@aitango
@aitango 9 месяцев назад
Really glad you're enjoying the content! I can't even remember what I called a 0, this video was a while ago haha Thanks, that really means a lot of you're willing to have a look around, I'd love to try and play other games that use the nunchuck!
@notauntarctic
@notauntarctic 8 месяцев назад
Imagine someone trains an AI to speedrun Super Mario 64
@x144x
@x144x 8 месяцев назад
Love the content! Please use different b-roll footage however! It's the same in every video
@aitango
@aitango 8 месяцев назад
Really glad you enjoyed it! Yeah I'll keep that in mind
@likrecelineation
@likrecelineation 9 месяцев назад
you should give it a reward for finishing, and a penalty for losing your powerup
@nobafan7515
@nobafan7515 8 месяцев назад
I know this is a big ask so i wont expect anytime soon, but could you make an ai that can get the sword and shield in ocarina of time? Im mainly just curious how hard it would be, how big the resolution the screen would have to be, and as well as it handling complex 3d environment.
@CasualGamerDude
@CasualGamerDude 9 месяцев назад
You should change the rewards to add Points to the rewards. Cause generally, the more points you get, the better you are doing. Plus is would make the levels look more cool as the AI collects as many Coins as it can, goes further to the end, and even the flag pole gets you points, so the AI would be heavily influenced to grab the flag. thus beating levels.
@pablovonpablo2590
@pablovonpablo2590 9 месяцев назад
1:30 Me listening: "Nutboy numbnut won?" Why is THAT a reward?
@yarma02
@yarma02 10 месяцев назад
I love youre videos about ais and I wonder in what programming language you write. Is it python? if yes how do i write reinforced nerual networks?
@aitango
@aitango 10 месяцев назад
I do write in Python! The Python library I use for neural networks is called PyTorch, which makes most of the really hard stuff a lot easier. If you want to learn more, there are lots of great resources on Deep Reinforcement learning out there. My favourite however is a course by the channel Deep Lizard
@yarma02
@yarma02 10 месяцев назад
@@aitango thx o heard about it. My only steps i took where with tensorflow but this is a good tip
@CrispyPotatoChip
@CrispyPotatoChip 9 месяцев назад
I love how developers do these out of their free time for nice competitive programmer profiles. I'm gonna miss these chads once AI becomes your daily website maker
@oxyacetylene_
@oxyacetylene_ 8 месяцев назад
i thought that the nunchuk was already fully supported and shaking could be done with the input script editor?
@dezzorad896
@dezzorad896 9 месяцев назад
What would happen if for these games you set a big reward for ‚get to the end ´ i would be curious to see the kinds of pathways and solutions ai comes up with. From what I understand about that would take forever I guess ?
@aitango
@aitango 9 месяцев назад
So currently the AI does get a pretty big reward for reaching the end, just to encourage it to do exactly what you say! I include the rewards throughout the level though, as you are right that without them it would take forever to train since the AI wouldn't be given much guidance
@Monterowicz
@Monterowicz 9 месяцев назад
Wait, so the AI needed 24 hours to beat one NSMBW level, so does it mean that technically to beat every NSMBW level, the ai would need (24x76) 1824 hours, so around 76 days?
@aitango
@aitango 9 месяцев назад
So if it was a single AI, it would likely get faster as it could use what it learned on one level to help with another. Much of what the AI learns early on is things like detecting objects, edges and learning what the different actions do. That said, I have no idea how the AI would handle some of the levels on later worlds!
@bigfatbrowncat
@bigfatbrowncat 3 месяца назад
Astonishing. But this video raises two very interesting questions. 1. After training the AI on this particular level, will it beat another level? (at least, a simpler one) 2. How many levels should it learn to pass in order to beat the whole game (any level)? And another, technical question. Which topology are you using? How many layers, which kinds?
@barryschalkwijk9388
@barryschalkwijk9388 9 месяцев назад
I like how it goes from fumbling to speedrunning strats before ever finishing the level
@phabrick8r21
@phabrick8r21 9 месяцев назад
Introducing Super Guide! Lets go Luigi 🔥🔥🔥🔥🔥
@alganpokemon905
@alganpokemon905 9 месяцев назад
So how did you actually measure the features for the reward? U said 0.001 reward per pixel to the right but what were the details in being able to figure out how many pixels mario has moved?
@ivan5328
@ivan5328 8 месяцев назад
Would it be possible to make the ai output 2 buttons at the same time when it wants to ?
@thepigvillage1197
@thepigvillage1197 9 месяцев назад
I wonder how much its strategy would differ if you rewarded it for the game’s built-in score meter instead of moving right! It would go for coins, enemy kills, star coins, and the top of the flagpole instead of just focusing on moving forward. Could it 100% the level?
@huevonesunltd
@huevonesunltd 8 месяцев назад
After fully training the AI try to also run it on different but similar looking levels to see if it picks up on any general learning
@aitango
@aitango 8 месяцев назад
Yeah that would be cool, I'm looking to do that on Mario Kart as well. I doubt after learning a single level it'll generalise too well, but I think it could if it trained it on a few simultaneously
@macmadness5932
@macmadness5932 8 месяцев назад
im curious, what would happen if you took this exactly as it is, and put it in a different stage?
@Darlypants
@Darlypants 9 месяцев назад
How exactly are you interfacing with the controls? All the controls in Dolphin can be remapped precisely and extensively. Why is it not possible for you to remap "shake wiimote" to any key on the keyboard, and then just have the AI send that key? I do this all the time to remap motion controls to standard buttons on a traditional game controller.
@Draconic404
@Draconic404 2 месяца назад
It would be really interesting making an ai beat the whole of mario wii on it's own, you could reward coin collection, x value (even though some levels require backtracking) and score
@linkesocke4533
@linkesocke4533 9 месяцев назад
That AI really got good. And indeed does look somewhat like a speedrun strat.
@Zosh_
@Zosh_ 9 месяцев назад
Would it be possible for the AI to play the whole game? Like maybe training it to speedrun or something.
@MonadoBoy42
@MonadoBoy42 8 месяцев назад
One problem: boo mansions
@ChaossX77
@ChaossX77 8 месяцев назад
5:51 That was my parent's hope for me too. Sorry mom and dad.
@AmaroqStarwind
@AmaroqStarwind 9 месяцев назад
Maybe you should try making a Dolphin plugin for better emulator integration, giving it more access to the controls and possibly even allowing it to look at memory addresses and shit
@aitango
@aitango 9 месяцев назад
The current modded version of Dolphin I'm using already allows me to read and write memory addresses! The mod is really good, all it needs is support for other controllers!
@wowawesome745
@wowawesome745 9 месяцев назад
This puts TAS on a whole new level
@denzelwilliams9337
@denzelwilliams9337 9 месяцев назад
Can the AI react to individual situations or is it more like memorizing the level?
@Xvladin
@Xvladin 9 месяцев назад
Probably both, but it's definitely learning to react to individual situations. If you plopped it into a different level, it should be able to apply its skills and what it learned in the previous level, so it could continue to deal with common things like bottomless pits or enemies.
@ReconissanceMa
@ReconissanceMa 9 месяцев назад
24 hours: "Well I've let it run this long, might as well let it run some more" 254 years: "Wellll I've let it run this long, might as well let it run some more"
@aitango
@aitango 9 месяцев назад
Unquestionable logic I know
@thomasmewily4012
@thomasmewily4012 9 месяцев назад
6:16 How did Mario's fireballs kill the red koopa on the yellow mushroom platform ? He didn't even jump !
@TheSlimHim
@TheSlimHim 9 месяцев назад
Could you share what library you used? Ive never done ML but would love to try it
@aitango
@aitango 9 месяцев назад
All of my AIs are written in PyTorch!
@TheSlimHim
@TheSlimHim 9 месяцев назад
@@aitango thank you!
@memelord8769
@memelord8769 9 месяцев назад
What is my purpose? You play mario.
@gamingstation0608
@gamingstation0608 9 месяцев назад
I'm curious to know what would have happened if the AI had videos of the areas, as it appears to be learning step by step. 1st it learned that platforms are moving, then it learned that enemies were moving...and in the process it learned how to not die and everything of course... but... I'm thinking it could have skipped some learning with more info given. Then again I know nothing about coding and how important images are... I'm just here wondering how would low quality videos have worked
@gamingstation0608
@gamingstation0608 9 месяцев назад
You know... If our brain manages to process moving images I'm sure AI can too!
@mgames3209
@mgames3209 9 месяцев назад
Nice video,
@WTZWBlaze
@WTZWBlaze 9 месяцев назад
Your gameplay at the beginning remind me of those “this game is so hard” mobile ads I’m not gonna lie
@aitango
@aitango 9 месяцев назад
Oh no what have I done haha
@WTZWBlaze
@WTZWBlaze 9 месяцев назад
@@aitango Hey, don’t worry about it bro. I was just messing with you, the rest of the video absolutely makes up for it. Watched your Mario Kart video just the other day too, you got some good stuff going here.
@sixtysource
@sixtysource 8 месяцев назад
this man boutta be the first victim in the robot uprising
@raphael849
@raphael849 7 месяцев назад
At a very certain point, the AI will always loose its ablility to shoot fireball. Maybe you can try to decrease the reward when AI loses its ablilty to shoot fireball. Plus, you can let AI to start from a small mario, too.
@notlunalust
@notlunalust 9 месяцев назад
Fr, idk what that skeleton dragon is as your desktop background, but that's so based. Is it like, elder drake?
@aitango
@aitango 9 месяцев назад
I just put it as my wallpaper because I thought it was cool, but a friend later told me its actually from world of warcraft, even though I've never played it haha
@notlunalust
@notlunalust 9 месяцев назад
@@aitango That's so badass lol /gen Also, could I add you on league? (I'm half asking as a bit, because it would be dope to play a match with a youtuber gldkhlkshg)
@notlunalust
@notlunalust 9 месяцев назад
@@tylerclark3870 I was asking the uploader lol. I saw the shortcut on their desktop. Who're you? /gen /nm
@aitango
@aitango 9 месяцев назад
Not sure who the imposter was, but I also happen to have stopped playing league after I hit diamond haha in a very very similar way. Oh that makes sense you saw it on my desktop
@notlunalust
@notlunalust 9 месяцев назад
@@aitango Yo that's totally valid! I hit plat and I'm starting to lose the drive to play dibsksbsksbsken
@beauporter8440
@beauporter8440 Месяц назад
Why does the AI throw out so many fireballs? How does it calculate fireballs into the mix? Does it have a reward for kills? Does it remember that it shot say 100 fire balls and got X rewards? And what if it got X rewards but only shot 90 fire balls. I'm curious about fireballs cause you can get through the level not even using 1 fireball.
@wilsonhooker4875
@wilsonhooker4875 9 месяцев назад
Does the AI’s skill more or less reset every level, or will it eventually get to the point where it could sight-read levels if left to its devices for long enough?
@dinamiteurdinamiteur2324
@dinamiteurdinamiteur2324 9 месяцев назад
But is the ai good only on that level or also decent on any other ones
@Ender_Onryo
@Ender_Onryo 9 месяцев назад
I wonder if the same ai could be put into other levels. Or if it's too specialized for this level in particular. Would also be cool to give a big reward for getting star coins. Another thing that could be interesting is just make the reward identical to the in game score tracker and see what happens. Might find new high score tech. Lol
@him9104
@him9104 9 месяцев назад
You should also encourage it to get a high score/coins or get powerups
@aitango
@aitango 9 месяцев назад
Yeah that would probably be interesting! I think I like seeing it go full speedrunner mode though :)
@him9104
@him9104 9 месяцев назад
Make 2 variants 1 is high score 2 is spedrun mode
@xehP
@xehP 9 месяцев назад
I'm assuming this AI is blind and cannot actually see the entities?
@Pomodorosan
@Pomodorosan 9 месяцев назад
4:24 you say "our AI" but the subtitles go "REI", heh
@aitango
@aitango 9 месяцев назад
I've seen that on a couple of videos, I never seem to spot it when looking over the subtitles :(
@go5083
@go5083 8 месяцев назад
You gotta send it up against a rubber Ross level in Mario maker
@jinxeddefault1874
@jinxeddefault1874 9 месяцев назад
5:50 is what my mum said about me
@aitango
@aitango 9 месяцев назад
😂
@error622
@error622 8 месяцев назад
If you do something like this in the original mario, I wonder if it could learn warp pipes or even glitches at enough time
@timseguine2
@timseguine2 8 месяцев назад
Since the levels are deterministic, it is highly probable that by then end it was overtrained on this specific level, and that it would fail miserably at any other level.
@scottpeltier3977
@scottpeltier3977 9 месяцев назад
I’d love to see an AI try to 100% this game. It would take forever but the fact that it would inevitably figure it out and optimize it is amazing
@aitango
@aitango 9 месяцев назад
It would take ages, but I'd love to see it slowly progress through all the levels too, learning and optimizing!
@sebastienmorin5149
@sebastienmorin5149 9 месяцев назад
If i understand... the ia is trying to beat the level by beeing blind and deaf and the only way it have to know how good it does is by a score... no wonder it learn so slow... if there was a way to makes him recognise the platforms and the objects arround him or at least a way to makes a "virtual map" of what it have discovered (just like you remember the layout of your house and could replicate the path from your chair to the kichen while beeing into a big empty room)... it would probabily be far better in no time...i mean... if it is just a random number generator who is refuse to repeat the failed combinaisons... it would takes an eternity but would eventualy succede...
@thesvengallideck
@thesvengallideck 8 месяцев назад
It would be interesting to see it's performance on a level it has not seen before. In theory it recognises enemies and gaps and knows it needs to jump over them. So how would it fair against a totally new environment given it's current knowledge
@kongicorn
@kongicorn 27 дней назад
i feel you this level was one of the hardest ones
@OmegaChip
@OmegaChip 9 месяцев назад
Imagine if you played multiplayer with your ai
@aitango
@aitango 9 месяцев назад
I'm currently trying to see if this is possible, because its something I'd love to do. Especially doing online so I could have an AI playing in a full room
@BlastKetchup
@BlastKetchup 9 месяцев назад
@@aitangome when I’m lonely. Lol but seriously could you imagine playing smash bros online with your ai co-op against real players? Would be dope.. but wrong lol
@XbroxBroxii
@XbroxBroxii 9 месяцев назад
So this is a mid game level would be interesting what the learning curve is like when it’s learned as intended from the beginning
@johno378
@johno378 9 месяцев назад
What size neural network did you end up with?
@aitango
@aitango 9 месяцев назад
I think this network had something like 10M parameters
@TheFurry
@TheFurry 9 месяцев назад
Even using AI for the captions! nice
@aitango
@aitango 9 месяцев назад
Thanks, glad you like them!
@NinetyLegos
@NinetyLegos 9 месяцев назад
I wonder if in the future they could use AI to create human limit TASes
@ShaulLeket-Mor
@ShaulLeket-Mor 8 месяцев назад
Why is standing still not an option for the AI? Sometimes, the solution to Mario levels is to wait for something on screen to pass to be able to proceed. I'm also curious if you would out this AI into another level, if it would be able to transfer some of its knowledge from this level to help it complete the other level. Someone in another comment said that the AI might learn that coins are a helpful indicator for a correct path. Maybe this would help it in other levels.
@ShaulLeket-Mor
@ShaulLeket-Mor 8 месяцев назад
The reason I'm saying this is because, ideally, the AI would be able to learn eventually not just how to play one level, but be able to complete the game, including learning to collect star coins and powerups. I think this would require a more complex reward system, and I'm not exactly sure what it would need...maybe a requirement of collecting all 3 star coins before completing the level. But then, how would it understand hidden blocks? A lot of questions, but I'm sure that AI tech will get complex enough to be able to do that.
@Mamma1999
@Mamma1999 10 месяцев назад
get it to play the star world next!
@aitango
@aitango 10 месяцев назад
Would love to try the star world at some point haha. Might ease into it a little first though and try some worlds inbetween
@RedStoneMatt
@RedStoneMatt 9 месяцев назад
I mean, the thumbnail has a picture of NSMB (for the DS), the video is about NSMBW and the title just says Mario Bros .-. No but seriously, nice video I have to say, as an eternal NSMBW fan I find it quite awesome to see an AI mario
@aitango
@aitango 9 месяцев назад
I know its from DS, but I just thought it was a cool thumbnail haha. Glad you liked the video anyway though!
@thesuperphan
@thesuperphan 9 месяцев назад
Could you teach AI to play multiplayers? (eg. Ai 4 players on New Super Mario Bros Wii)
@Gedigadidago
@Gedigadidago 8 месяцев назад
Ai decided after 20-24 hours of training Ima speedrun this YOLOOOO
Далее
AI Learns to Play MORTAL KOMBAT
16:50
Просмотров 145 тыс.
I Wrote Minecraft for a Calculator
14:43
Просмотров 1,3 млн
Super Mario Galaxy 63 - Trailer (2022)
1:31
Просмотров 27 тыс.
AI Learns LASER HOCKEY
10:01
Просмотров 18 тыс.
AI gets eaten by clam
8:33
Просмотров 4,4 тыс.
The History Of Mario Kart 7’s Most Broken TAS
29:34
Просмотров 540 тыс.
CPUs troll AI with Items | Mario Kart Wii
10:17
Просмотров 161 тыс.
БУЛЛИ СОБИРАЕТСЯ В ЛАГЕРЬ
0:34
Просмотров 486 тыс.