How to use Machine Learning AI in Unity! (ML-Agents)

preview_player
Показать описание
🌍 Let's learn how to get started unlocking the POWER of Machine Learning AI in Unity!
👍 Learn to make awesome games step-by-step from start to finish.

00:00 What is Machine Learning, ML-Agents
01:22 Installation (Python, PyTorch, CUDA, ML-Agents)
10:10 New Unity Project
12:00 Create Agent
13:35 Agent Actions
17:21 Test Training
19:46 Agent Observations
24:10 Agent Reward
27:57 Heuristics Testing
29:38 Training
34:22 Use Trained Brain Model
40:04 Improve Brain Model
40:55 TensorBoard Visualization
43:25 Final Result

Teach your AI! Imitation Learning with Unity ML-Agents!

🌍 Get Code Monkey on Steam!
👍 Interactive Tutorials, Complete Games and More!

If you have any questions post them in the comments and I'll do my best to answer them.

See you next time!

#unitytutorial #unity3d #unity2d

--------------------------------------------------------------------

Hello and welcome, I am your Code Monkey and here you will learn everything about Game Development in Unity 2D using C#.

I've been developing games for several years with 7 published games on Steam and now I'm sharing my knowledge to help you on your own game development journey.

--------------------------------------------------------------------

Рекомендации по теме
Комментарии
Автор

💬 Machine Learning AI in Unity!
Lots of people requested this topic so here it is. It's a really awesome toolset and learning the basics in this video will enable making some really awesome scenarios.
This was a ton of work to make in so if you find it helpful please hit the like button!

CodeMonkeyUnity
Автор

I saw this 2 months ago and finally had the time to not just watch but follow along and can I just say again, this is perfection. MLAgents always seemed to clunky / obtuse to use, but this made it straight forward. This tutorial took me straight through and I am amazed at what I was able to train on and get done. This just opens up a world of possibilities I can't wait to dive into, thanks again for this amazing tutorial!

seanloughran
Автор

Quick Tip: In windows explorer, in the folder you want in cmd, just type cmd in the address bar. it will open cmd.exe to that folder

Agent
Автор

Our graduation project is with Unity ML Agents and this video helped me to get the basics. Thank you!

cookiejar
Автор

Awesome work, thank you so much man !

For people joining the bandwagon around July/August 2022 :

- Take the ML-Agents package manager version 2.2.1-exp.1 (at least)
- When launching Tensorboard, don't hesitate to give the folder where the results are in the command you type (ex: logdir=C:/user/MLProject/results), instead of typing "results"
- If you know your way around the Python environment, feel free to use Anaconda, works just as good

(I'll update this comment if I find any other stuff that changed since)

arandomfrenchdev
Автор

Hi from 2023! I had some trouble instaling the python enviroment but I made it work.
Unity: 2022.3.14f1
Python 3.9.13

Before venv:
py -3.9 -m venv venv

After venv:
python -m pip install --upgrade pip
pip install mlagents
pip3 install torch torchvision torchaudio
pip install protobuf==3.20.3
pip install packaging

Works fine! Hope so u too :D

JJ-rnys
Автор

After a few days of following your tutorial little by little (sorry I'm still a newbie), , finally I can understand what you teach, even though there are many changes to the ML-Agents.. but thank you so much Mr.hugo for the knowledge this is very useful for me curious about machine learning.

mrri
Автор

I can't imagine the the work you had to put into this, Really appreciate all your work, Thank you CM!!✨

blackspear
Автор

Concise and straight to the point as always, but at the same time very detailed explanations. Long time patron and a fan.

adamodimattia
Автор

your manner of speaking is clear, to the point and easy to follow, thank you

FractalPrism.
Автор

This video was so much fun to follow along with!!! Simply awesome

LazerMarsupial
Автор

What an amazing tut bro!, just everything that you need to get started with this demon. As you say barely at the end, when you finally manage to make it work its jus like magic!. Thanks a lot for the effort!. Marvelous man!

willigoen
Автор

Thanks so much for the tutorial. Iv wanted to dip my toes into Unity's ML-Agents for a while now. And you helped me to do that!
I cant help but watch the little move around the screen as he learns :)

Socom.x
Автор

Amazing work. I just watched it all the way through and next time I'm going to step through with you!

seanloughran
Автор

So hyped about this video!! Awesome topic and I can't wait to see your project man!

chrisdavillas
Автор

Great work Code Monkey! You are pumping out quality content like no one else. This topic is very interestig and not many tutorials on this. Very very good work man.

cryptojanne
Автор

LIFE SAVER. this helped me get this running. thank you!

Notagamer
Автор

I will be waiting for you always, soo thank you sir, for your learning. this means a lot to me.

dimasd_
Автор

wth This is the video I was looking for!!!! Awesome

animationjourney
Автор

Followed along this tutorial and was able to train my first agent. Great tutorial and attention to details. Thanks!

OrangeBoyAdventures
visit shbcf.ru