Unity ML-Agents 1.0 – A.I. Shooting Game (FULL WALKTHROUGH)
Unity’s ML-Agents Machine Learning framework is a great way to get started with the topic. Many people have requested a shooting style game, so here it is.
Support me on Patreon:
Support me on Patreon:
Keep in touch:
I have created a Discord Channel for everybody wanting to learn ML-Agents. It’s a place where we can help each other out, ask questions, share ideas, and so on. You can join here:
Hello everybody! I have created a Discord Channel for everybody wanting to learn ML-Agents. It's a place where we can help each other out, ask questions, share ideas, and so on. You can join here: https://discord.gg/wDPWsQT
That kiwi guy making friends is now everywhere.
Thank you for the video, it was fun to watch!
WOW Top videos make more plese
Really great channel! Could you make an agent which doesn't use raycasts?
You should make videos more often 🙂
soooo good!! Time to revamp good old visual studio 😀Thanks for videos like this one!
Really great video!
Hey Hey, the newest release! Fantastic!
Very unique content 😀 Fully watched & liked. New friend here to stay. Thanks!
Great content, you should do a video on training agents in teams like the two vs two soccer demo!
Your tutorials are really good man! You should consider making videos on other aspects of Machine Learning too (that is, stuff other than Unity ML). Looking forward to more content from you!
Just wanted to say thanks for teaching me MLAgents. I made my own model and upload it to the unity3d subreddit where it's the top post right now. I mentioned you in the comments as well.
Hello Hindsight Sebastian … LOL !! Great videos, can't wait to see more.
thank you for this . very useful
Thank you so much for this content! I got a little stuck trying to follow along, is it possible for you to share your code?
can you explain ML-Agents from scratch like working of every single line of code for ML agents…..because they are a little bit confusing
Hi Sebastian, We are working on a similar concept and we have used your source code. But when we built the system with two Enemies and one Agent we are facing an issue.
The Agent is not responding to x translation and z translation. We have actually replicated the code but we're not able to figure it out. But when we tried to open your project and check we found out it is working. So can you please suggest what could be an issue like where we might have gone wrong when replicating?
Because of the same issue we're not able to train the agent properly as the x translation and z translation not updating the rewards are not great.
hey Sebastian, Your video is amazing. I have made this simulation; everything works except one problem. My shooting agent has only rotations motion but no translational motion. But when I use your GitHub repo it's working well. I have used the same code with little tweaks. If you have time, please help me with it.
Sebastian, please give a link to download this project! I want to make an animation for vitroalnoy reality.
I have a question: you teach about adding gail to the training_config.yaml config file, but there are more config file in ml agent in Ml unity library ,gail_config.yaml file what that gail file for?
Great Channel, I am unity3d developer. I am enjoying your work. Keep it Up
Thanks for your videos !! Good Job ! I want to learn more about ML using unity 😀 !
I am challenging an FPS video game and I want my enemies to chase me. My enemies would be my agents, but how can I modify your code so that my enemies train to follow me?
Hey Sebastian, Can you provide me a suggestion to improve my project, I have created a similar environment where the agent has to rotate, point towards the approaching enemy and also shoot it. But here the agent doesn't stop shooting, I have added a negative reward of 0.03 at initial trials then I increased the value to -0.5, still it shoots continuously. Do you have any suggestions?
bro please reply, i actually am learning ML, so is it necessary for me to use unity, can't i use unreal???
Hi Sebastian, great content thanks!
I've one question, when you moved from one level to another (example from static agent/enemy to moving agent enemy, etc.)
Did you load the old traning model or did you restart training from a new model ?
Is it possible to download this?
got new subscriber
how can I see the performance metrics
Video is too slow, need to bit faster.
"Beware of the scribes, which desire to walk in long robes, and love greetings in the markets, and the highest seats in the synagogues, and the chief rooms at feasts;"
"Which devour widows' houses, and for a shew make long prayers: the same shall receive greater damnation." Luke 20:46-47
"For he is not a God of the dead, but of the living: for all live unto him."Luke 20:38
Repent ye: "For the wages of sin is death; but the gift of God is eternal life through Jesus Christ our Lord." Romans 6:23
Jesus Christ loves you: "For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life." John 3:16
"And he said unto them, Take heed, and beware of covetousness: for a man's life consisteth not in the abundance of the things which he possesseth."Luke 12:15
"For there is one God, and one mediator between God and men, the man Christ Jesus;"I Timothy 2:5
AHHH! I cannot see what code you are writing or find it on github so hard to follow!
How to have the source code ?
Watching on 0.25 Speed and still struggling to follow anything haha, great video but would love to see something more like a tutorial 🙂
you should have added a penilty/ reward for ammo used. to help stop the spinning random firing trying to hit a target
Is it possible to have these 3D raycasts be…well…3D? As in to be able to also detect height, since most games arent exactly only on a flat plane. Perhaps in the latest versions of ML Agents?
I love the interjection 'Hindsight Sebastian here' 🙂
ML agents are team vs team?
Hi, I am deligthed to have found your channel and this video as I am trying to do a very similar curiculum learning (for a 2D version of an arena same as yours).
I am using a camera with a top down view, but unfortunately my model is not improving at all.
I am using 2 continuous actions for the AI to move its pointer on the screen as X,Y variables, and a last continuous action for the shoot decision.
I'll keep trying to see if I can find something that works.
If you ever want to try and make an AI playing the game through a top down camera sensor (or 3rd person for a 3D game), I'd be very interested 🙂 !