How To Create Your Own Flappy Bird AI - Unity Ml-Agents

  Рет қаралды 5,766

Dapper Dino

Dapper Dino

Күн бұрын

Пікірлер: 29
@melodywillson
@melodywillson 2 жыл бұрын
15:39 For anyone watching in 2022 getting errors, you need python version 3.9.10 for mlagents-learn to work. If you have a later version, you can install the earlier version (without adding it to the path) and use virtualenv to make a virtual environment using the older python version. You may need to also do pip install torch once in the venv, as it is a dependency of mlagents. Took me a lot of googling to figure this out so hopefully this helps others :)
@LoneXeaglE
@LoneXeaglE 3 жыл бұрын
Great video !! For the raycast radius what it does is help you detect small objects by making the radius bigger you will actually have more chances of getting a hit when going by a small object instead of just missing it.
@skizooooooooo
@skizooooooooo 4 жыл бұрын
Awesome tutorial! Thanks for sharing ^.^ I definitely need to try this
@DapperDinoCodingTutorials
@DapperDinoCodingTutorials 4 жыл бұрын
Have fun :)
@thealexguy1486
@thealexguy1486 4 жыл бұрын
thanks for the awesome tutorial! How long did you leave the AIs running for before they learnt enough? I've left mine learning for 2 hours with 4.1mil steps and yet it still can barely make it past the first couple. All my other settings are basically the same as yours except for the rays I had 10 instead of 8. Am I missing anything, or does it really just take that long to learn?
@JasonPesadelo
@JasonPesadelo 4 жыл бұрын
I made one flappy bird 2D ML agents - I put reward between the walls and penalties in the sky---it works pretty good, it takes 8 hours to trainning ---it is not perfect.
@lennyroche8089
@lennyroche8089 4 жыл бұрын
Exactly what I needed! Thanks!
@squaresweets857
@squaresweets857 4 жыл бұрын
Is there any way to train the bird inside the unity editor without having to use the python things. Like if I wanted to make a mobile game where you trained your own flappy bird in-game would I be able to do that? Great vid BTW :)
@ivanpolkanov3273
@ivanpolkanov3273 4 жыл бұрын
Hey bro. You probably have a tone ways but if math doesnt scare u mb u can check jaff heaton channel as variant for begginer.
@DapperDinoCodingTutorials
@DapperDinoCodingTutorials 4 жыл бұрын
I don't think Ml-Agents are designed to be trained outside of the editor. It "might" be possible but I'm not aware of any way to do it.
@DonGroutsVideos
@DonGroutsVideos 4 жыл бұрын
Great video! Is there any way to use this to determine if the level is too difficult or too easy? Then to figure out if the pipes need to be spawned further apart or closer together, or the gap to be increased or decreased?
@DapperDinoCodingTutorials
@DapperDinoCodingTutorials 4 жыл бұрын
I guess you can write some code in the OnEpisodeBegin method that takes the mean reward and then adjusts the pipe handler settings accordingly. I wouldn't recommend it though as it's up to you to make it as easy/difficult as you want and then assuming that you've set up the agent well and that the level is possible, with enough training and with a good enough simulation environment, it should become good enough to play "almost" perfectly.
@holstjt
@holstjt 4 жыл бұрын
Thanks for the tutorial. Helped a lot! And as always, I learned that the details are important... I missed the part where the bird is sat with a collider as a trigger, so it kind of didn't work as a start.
@Cranky72
@Cranky72 4 жыл бұрын
Great video and good explanation. thank you
@DapperDinoCodingTutorials
@DapperDinoCodingTutorials 4 жыл бұрын
Glad you enjoyed!
@samirehman4565
@samirehman4565 4 жыл бұрын
Amazing video man.
@DapperDinoCodingTutorials
@DapperDinoCodingTutorials 4 жыл бұрын
Glad you enjoyed it!
@JasonPesadelo
@JasonPesadelo 4 жыл бұрын
Thanks for the tutorial, great help!!!!
@MienMerk
@MienMerk 4 жыл бұрын
Thankyou for sharing 😁
@DapperDinoCodingTutorials
@DapperDinoCodingTutorials 4 жыл бұрын
No problem 👍
@DailyFootballEditsDFE
@DailyFootballEditsDFE 4 жыл бұрын
very nice
@DapperDinoCodingTutorials
@DapperDinoCodingTutorials 4 жыл бұрын
Very nice
@giangbuitam4868
@giangbuitam4868 4 жыл бұрын
i have a question. Can i use a ml-agents in real project ?
@gelis07
@gelis07 4 жыл бұрын
what?
@Sovreighn7
@Sovreighn7 4 жыл бұрын
And now to train them for WAR! MWHAHAHAHA!
@DapperDinoCodingTutorials
@DapperDinoCodingTutorials 4 жыл бұрын
You've got the right idea :D
@dripyman6146
@dripyman6146 Жыл бұрын
Hey does anyone know how to get the trainer config
@gamingglyphss
@gamingglyphss 4 жыл бұрын
first
@DapperDinoCodingTutorials
@DapperDinoCodingTutorials 4 жыл бұрын
Noiceeeee
How To Control Shaders With Scripts - Shader Graph
12:44
Dapper Dino
Рет қаралды 19 М.
Teach your AI! Imitation Learning with Unity ML-Agents!
16:18
Code Monkey
Рет қаралды 101 М.
How Many Balloons To Make A Store Fly?
00:22
MrBeast
Рет қаралды 150 МЛН
A.I. Learns to play Flappy Bird
7:46
Code Bullet
Рет қаралды 14 МЛН
How To Train Your Own Models - Unity ML-Agents
10:47
Dapper Dino
Рет қаралды 7 М.
AI Learns to Drive a Car! (ML-Agents in Unity)
13:13
Code Monkey
Рет қаралды 76 М.
How To Create An Advanced Save System In Unity
16:00
Dapper Dino
Рет қаралды 32 М.
Automated Parking Using RL, a Unity ML-Agents Tutorial.
41:40
Thomas Van Iseghem
Рет қаралды 14 М.
5 Ways to use AI in Game Development in 2024!
5:12
Sloyd
Рет қаралды 46 М.
Unity ML-Agents - Demonstration Recorder for Imitation Learning
10:14
Immersive Limit
Рет қаралды 14 М.
Unity ML-Agents - 5 things you didn't know about - Version 1.0+
12:07
Sebastian Schuchmann
Рет қаралды 9 М.
How to Build a Flappy Bird A.I. in 10 Minutes!!!
13:46
The A.I. Whisperer
Рет қаралды 8 М.