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
Видео Build an Mario AI Model with Python | Gaming Reinforcement Learning канала Nicholas Renotte
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
Видео Build an Mario AI Model with Python | Gaming Reinforcement Learning канала Nicholas Renotte
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
![How to Code a AI Trading bot (so you can make $$$)](https://i.ytimg.com/vi/c9OjEThuJjY/default.jpg)
![I used LLaMA 2 70B to rebuild GPT Banker...and its AMAZING (LLM RAG)](https://i.ytimg.com/vi/SedGB8m2XLM/default.jpg)
![Run GPT4All LLMs with Python in 8 lines of code? 🐍](https://i.ytimg.com/vi/kcfA3J3PNmc/default.jpg)
![Guess who's MC'ing again? 😅](https://i.ytimg.com/vi/XviSeTiE1ls/default.jpg)
![I tested a STACK of FREE Large Language Models...here's how it went.](https://i.ytimg.com/vi/5JpPo-NOq9s/default.jpg)
![I built a GPT Investment Banker using this 312 PAGE document](https://i.ytimg.com/vi/u8vQyTzNGVY/default.jpg)
![LangChain Crash Course: Build a AutoGPT app in 25 minutes!](https://i.ytimg.com/vi/MlK6SIjcjE8/default.jpg)
![Building AI LLM Apps with LangChain (and more?) - LIVE STREAM](https://i.ytimg.com/vi/M-2Cj_2fzWI/default.jpg)
![Working with the ChatGPT API?!](https://i.ytimg.com/vi/ZGPl3YR0U9E/default.jpg)
![I'm giving away a FREE GPU, it's a 40**!?!](https://i.ytimg.com/vi/pekEMLmYx34/default.jpg)
![Do you ACTUALLY NEED math for Machine Learning?](https://i.ytimg.com/vi/RF53NPPhBmE/default.jpg)
![How to use the ChatGPT API with Python!!](https://i.ytimg.com/vi/ZkFKF-ohsKk/default.jpg)
![How to Code a Machine Learning Lip Reading App with Python Tensorflow and Streamlit](https://i.ytimg.com/vi/FMPYShYLg3o/default.jpg)
![BEST Python Libraries when getting started in Machine Learning!](https://i.ytimg.com/vi/VUoM7p_Fb1k/default.jpg)
![NumPy makes Linear Algebra for ML wayyyy easier!](https://i.ytimg.com/vi/3nN8ntjJPpw/default.jpg)
![How I Learn ANYTHING TECHNICAL...and don't FORGET it.](https://i.ytimg.com/vi/of4hjw_Vm5Y/default.jpg)
![SooOOooo...just how FAST is this PYTHON library for Data Science?](https://i.ytimg.com/vi/pkJtIAsJIxU/default.jpg)
![Is THIS the MOST UNDERRATED skill in tech?](https://i.ytimg.com/vi/Xy-kOqWvmKE/default.jpg)
![MusicLM is a GAMECHANGER for ML Text to Music Generation](https://i.ytimg.com/vi/F4WEGvFAwv8/default.jpg)
![Oh…you can do WHAT with the Python @ Symbol?!](https://i.ytimg.com/vi/HBQOj_ebQX8/default.jpg)
![DO NOT start your MACHINE LEARNING journey like this...](https://i.ytimg.com/vi/FmS3iPmkRXM/default.jpg)