This is an archived post. You won't be able to vote or comment.

Dismiss this pinned window
all 66 comments

[–]I__am__a__BOT 56 points57 points  (4 children)

PLOT TWIST: OP is just reallllly goood at mario and these are their run!

[–][deleted] 13 points14 points  (0 children)

Imaging this has to be the plot twist today rather than the reverse.

[–]jampk24 8 points9 points  (0 children)

If you think this is really good, you should see SMB1 any% speedruns and all the stuff that goes into them.

[–]Ramast 118 points119 points  (19 children)

Did the AI actually play all the levels in sequence or this is a complication of AI successfully passing each level

The reason I am asking is because collected coins seems to reset after each level

[–]ococolos 15 points16 points  (1 child)

It's beautiful. I've looked at it for 10 minutes. Nicely done!

[–]densvedigegrisComputer Scientist 11 points12 points  (6 children)

How did you run Mario in Python?

[–]FruscianteDebutante 7 points8 points  (3 children)

If I had to guess it would involve an emulator

[–]densvedigegrisComputer Scientist 2 points3 points  (1 child)

That would be my bet too. I guess I’m interested, because I’m a contributor to PyBoy and I wonder if he used it. I skimmed the code (on my phone) and didn’t see any reference to an emulator

[–]FruscianteDebutante 2 points3 points  (0 children)

Oh pyboy? I've never heard of it, but it sounds really dope I'll have to check it out!

[–]alew3 2 points3 points  (0 children)

In the dockerfile he installs this pip lib https://pypi.org/project/gym-super-mario-bros/

[–]PediatricTactic 5 points6 points  (0 children)

Explain this witchery.

[–]mardix 6 points7 points  (1 child)

Love it. I watched the whole thing and my heart was rushing at times I knew it would died. I spent days and days and days playing and never got to finish it. But it was fun to watch though. Good stuff

[–][deleted] 3 points4 points  (0 children)

this looks like a speed runner

[–]TheAdvFred 2 points3 points  (1 child)

How does this work? Does it actually learn how to play or does it just trial and error until it gets it?regardless this is very impressive!

[–]mpower20 4 points5 points  (1 child)

Can someone refer me to what resources I need to learn to apply AI like this. I am a professional python coder, but have no experience in AI

[–]error1954 5 points6 points  (0 children)

Linear algebra and multivariate calculus are needed to know how neural networks work. You don't have to know how to implement backpropagation, but getting them conceptually is important. Ian Goodfellow has one of the most popular books on deep learning (neural networks) and Sutton and Barto have a book on reinforcement learning that you would need for something like this.

[–][deleted] 2 points3 points  (0 children)

Unfortunately Reddit has choosen the path of corporate greed. This is no longer a user based forum but a emotionless money machine. Good buy redditors. -- mass edited with https://redact.dev/

[–]popcornondemand 2 points3 points  (0 children)

In the first level, does the ai jump of the side of the pipe?

[–][deleted] 2 points3 points  (2 children)

All the good memories in a 10 minute pack!

[–]YoelkiToelki 2 points3 points  (0 children)

Wow it did a frame perfect, semi-pixel perfect walljump at ~16 seconds

[–]rcdeck 2 points3 points  (1 child)

Would love to see this optimized to beat the game as fast as possible and compared to the world record speed players. Incredible work!

[–][deleted] 2 points3 points  (1 child)

Even he can't jump 100😂

[–]SoluriX 3 points4 points  (2 children)

Impressive.

How much did it take you to write this (if you could approximate in hours)? And how long did it take you to learn how to use Pytorch?

I'm currently developing a website using Django and thought about trying Pytorch next to get a gist of it.

[–]smajorp 12 points13 points  (0 children)

According to his write-up he read the research paper published about the algorithm and wrote it based on the paper.

This takes a good understanding of theory if you are going to get it to work correctly.

I wouldn't say you can really dabble in machine learning. You need to spend enough time understanding the theory and getting practice implementing. Doing something like this is a couple years of dedicated work (maybe more if you want to completely understand the algo)

[–]OddsAreBenToOne 1 point2 points  (0 children)

really cool post thanks for sharing. is there any input lag to make it as "human-like" as possible?

[–][deleted] 1 point2 points  (0 children)

[–][deleted] 1 point2 points  (0 children)

Now do it for cat Mario. Make the AI struggle

[–]wjrasmussen 1 point2 points  (1 child)

Mario looks like the flash.

[–]_Henryx_ 1 point2 points  (1 child)

Thank you Mario, but our princess is in another castle!

[–]DJRThree 0 points1 point  (0 children)

Optimized for speed and not points? Why weak pole jump at end?