THE FUTURE IS HERE

Build an Mario AI Model with Python | Gaming Reinforcement Learning

Teach AI to play Super Mario

In this video you’ll learn how to:
Setup a Mario Environment
Preprocess Mario for Applied Reinforcement Learning
Build a Reinforcement Learning model to play Mario
Take a look at the final results

Get the code: https://github.com/nicknochnack/MarioRL

Links:
Super Mario RL: https://pypi.org/project/gym-super-mario-bros/
Nes Py: https://pypi.org/project/nes-py/
OpenAI Gym: https://gym.openai.com/
PyTorch: https://pytorch.org/get-started/locally/
PPO Algorithm: https://stable-baselines3.readthedocs.io/en/master/modules/ppo.html
Intro to RL Loss: https://spinningup.openai.com/en/latest/spinningup/rl_intro3.html

0:00 – Start
0:18 – Introduction
0:44 – Explainer
1:58 – Client Interview 1
2:02 – Animation 1
2:30 – Tutorial Start
3:22 – Setting Up Mario
10:44 – Running the Game
18:26 – Understanding the Mario State and Reward
20:44 – Client Interview 2
21:38 – Preprocessing the Environment
26:22 – Installing the RL Libraries
31:11 – Applying Grayscaling
35:32 – Applying Vectorization
36:56 – Applying Frame Stacking
42:46 – Client Conversation 3
43:05 – Animation 3
44:00 – Importing the PPO Algorithm
47:33 – Setting Up the Training Callback
50:13 – Creating a Mario PPO Model
55:30 – Training the Reinforcement Learning Model
1:02:40 – Client Conversation 4
1:02:56 – Animation 4
1:04:01 – Loading the PPO Model
1:06:10 – Using the AI Model
1:15:56 – Client Conversation 5
1:16:37 – Ending

Oh, and don’t forget to connect with me!
LinkedIn: https://bit.ly/324Epgo
Facebook: https://bit.ly/3mB1sZD
GitHub: https://bit.ly/3mDJllD
Patreon: https://bit.ly/2OCn3UW
Join the Discussion on Discord: https://bit.ly/3dQiZsV

Happy coding!
Nick

P.s. Let me know how you go and drop a comment if you need a hand!
#ai #python