AI Jet Learns to Bomb Missile Launcher

Поділитися
Вставка
  • Опубліковано 27 гру 2024

КОМЕНТАРІ • 96

  • @randomman1000tweeny1
    @randomman1000tweeny1  5 років тому +6

    [Timestamps]:
    00:00 - Sneak-peak of final AI
    00:08 - Introduction
    00:32 - Making AI's environment
    02:00 - Designing AI itself
    02:45 - Training AI
    04:55 - Montage of final AI bombing missile launchers
    06:27 - Ending

    • @TheChromePoet
      @TheChromePoet 2 роки тому

      Do you have a fast-forward button that turns 10 minutes into 10 hours?

  • @yoctometric
    @yoctometric 5 років тому +33

    Found your channel on reddit, impressive production quality! Keep up the good work :)

  • @artvandelay5565
    @artvandelay5565 3 роки тому +4

    Underrated channel. The editing and the content are both beautiful. Wow.

  • @eL3ctric
    @eL3ctric 5 років тому +8

    Okay man amazing job!

  • @yourzombiemop8259
    @yourzombiemop8259 4 роки тому +3

    Found your video by an unrelated UA-cam search, I stayed for the quality production value, subscribed for the enjoyable content.
    Keep up the good work!

  • @jackwellman2560
    @jackwellman2560 5 років тому +4

    This channel, with only 2 videos, is already one of my new favorites! I love to watch the AI learn, and to learn how it works, so I naturally love this. Keep it up!

    • @randomman1000tweeny1
      @randomman1000tweeny1  5 років тому

      Thanks, I'm glad to hear you like! I'll certainly keep on making them :D

  • @celkoken
    @celkoken 4 роки тому +2

    Omg, I didn't want to leave this video without telling you how grateful I am for this.
    Thank you so much.
    You are really inspiring :3

  • @moatddtutorials
    @moatddtutorials 5 років тому +3

    These videos are so good. Great work, Ethan, keep it up!

  • @dmitrycheck5609
    @dmitrycheck5609 5 років тому +10

    Starxel: Today we're gonna bomb a missile launcher with AI powered Jet
    AI/ML engineers working in military basements: Im I a joke to you?

  • @megauti
    @megauti Рік тому

    Best AI training video!

  • @starfoxz13
    @starfoxz13 5 років тому +2

    This is very well explained, shot and edited. Keep up the good work. I look forward to see what you come up with next.

  • @Jimbodawg
    @Jimbodawg 5 років тому +5

    Would love to see more AI learning videos! Good job.

  • @jimmyjim9935
    @jimmyjim9935 5 років тому +2

    I dig what you do. Keep it up.

    • @randomman1000tweeny1
      @randomman1000tweeny1  5 років тому +1

      Cheers man, will do!

    • @jimmyjim9935
      @jimmyjim9935 5 років тому +1

      @@randomman1000tweeny1 I like to use rare CGI for my beats. Is it okay to sample with credit?
      instagram.com/lashlashbeats/

    • @randomman1000tweeny1
      @randomman1000tweeny1  5 років тому

      @@jimmyjim9935 Yeah sure thing, I'd be more than happy for you to do that. Nice beats btw.

  • @Nanoh974
    @Nanoh974 5 років тому +4

    Amazing content, your channel is going to blow up, that's a promise. Subscribed, keep it coming mate =D

  • @zipperguy7853
    @zipperguy7853 2 роки тому +1

    cool fighter models!

  • @idioticed4379
    @idioticed4379 2 роки тому +1

    An ai arms race would be cool, where the missile launchers also get to evolve

  • @thelonelyguyinessex6499
    @thelonelyguyinessex6499 2 роки тому +2

    Possible tutorial??

  • @jameshamil
    @jameshamil 3 роки тому

    Dude this is amazing! Great work and editing!

  • @rohankumar5461
    @rohankumar5461 3 роки тому +1

    Incredible animation

  • @MrGunnaras
    @MrGunnaras 5 років тому +1

    this is quality content. please keep it up

  • @Matlesylc
    @Matlesylc 5 років тому +1

    I do not know why youtube decided I should watch your video but I did and I liked it.

    • @randomman1000tweeny1
      @randomman1000tweeny1  5 років тому

      Oh sick, I'm glad youtube's algorithm is helping me out here ahahah. So far most of my views have come from Reddit. Anyway, I'm really glad you liked it!

  • @demis9643
    @demis9643 3 роки тому +2

    tutorial?

  • @boopsmagoops1231
    @boopsmagoops1231 3 роки тому

    Incredible work

  • @fidhalkotta
    @fidhalkotta 3 роки тому

    This was amazing

  • @priceisalr1ght
    @priceisalr1ght 5 років тому +6

    I know a channel with strong potential when I see one. Include me in the 100k screencap.

  • @apu_apustaja
    @apu_apustaja 5 років тому +1

    Thank you. I enjoyed this. :)

  • @NSTATS
    @NSTATS 4 роки тому +2

    I remade this as a means of learning hah! - I'm curious what results vs time you would get with the newer versions of ml-agents - You should make a tutorial or release a github of this example - It was such a great way to learn various bits and pieces of unitys agents. Nice job!

    • @randomman1000tweeny1
      @randomman1000tweeny1  4 роки тому +2

      That's great to hear, I hope it went well. And yeah I've noticed the newer versions of ML-Agents seem far more optimised.
      Right now I dont have any plans to return to this project but in future projects I'll take some time to formalise it and put it on github for people like you who also want to give it a shot. Anyway glad you enjoyed it!

    • @NSTATS
      @NSTATS 4 роки тому

      @@randomman1000tweeny1 I would love to see them down the road! It's fun to see how others solve their problems - if you ever do create a git for this project - I would love to see how you tackled the observers - finding a formula to calculate the proper rate for distance took some fine tuning. As always, its a pleasure to see your content! -Thanks!

    • @randomman1000tweeny1
      @randomman1000tweeny1  4 роки тому +2

      @@NSTATS You can download the project here:
      www.mediafire.com/file/n120iqtrynlmr07/AI_Jet_Bomber.zip/file
      It's quite a mess but finding the AgentJet script shouldn't be too hard. Anyway thanks again and best of luck with your future projects!

  • @UXER260
    @UXER260 Рік тому +1

    AI has evolved a lot past 4 years

    • @randomman1000tweeny1
      @randomman1000tweeny1  Рік тому

      It sure has. Now is a particularly exciting time to be in AI but there's definitely a lot of chaos. Hard to tell what new tech is useful and not.

  • @extrem2497
    @extrem2497 5 років тому +3

    All done in Unity3D? Wow

    • @extrem2497
      @extrem2497 5 років тому +3

      didn't tought unity capable for ai things

    • @randomman1000tweeny1
      @randomman1000tweeny1  5 років тому +2

      Yeah it sure was. Unity can actually make a lot of really cool things. It's just that since it is so easy for anyone to use a lot of people use it to make trash games that they put no effort into.

  • @luiscascante
    @luiscascante Рік тому +1

    What function did you use for the distance based reward and how many max steps did you use?

  • @baseraindrop7569
    @baseraindrop7569 2 роки тому +1

    I downloaded the code but have no idea how to use it / get it working please help

  • @natushek2015
    @natushek2015 3 роки тому

    “The ai starts getting better”
    Every jet: *dies*

  • @64revolt
    @64revolt 5 років тому +1

    Holycrap. Teach me senpai!

    • @randomman1000tweeny1
      @randomman1000tweeny1  5 років тому

      You must first learn the art of programming on Unity3D. It is only then will you be ready to tackle AI head on.

  • @younesselbrag
    @younesselbrag Рік тому

    bro this project is so impressive , i enjoyed watch ,
    if it will be possible to update to RLFH

  • @sakbiulalom5849
    @sakbiulalom5849 Рік тому

    u r Underrated 😢

  • @thebadprogrammer7114
    @thebadprogrammer7114 3 роки тому +2

    Post more

  • @luandalorto
    @luandalorto Рік тому

    Hi,How to train the AI Jet? Thanks.

  • @Ab-cj6gl
    @Ab-cj6gl 3 роки тому +1

    awesome video which languages you used to code this project?

    • @randomman1000tweeny1
      @randomman1000tweeny1  3 роки тому +1

      Thanks, glad you liked it! All simulation parts were done on Unity3D using C#. The code for training the AI is done in python and uses tensorflow.

    • @Ab-cj6gl
      @Ab-cj6gl 3 роки тому +1

      @@randomman1000tweeny1 oh ok thanks

  • @Theizxgamer
    @Theizxgamer 5 років тому

    Please continue making videos!

  • @thebeckofkevin
    @thebeckofkevin 5 років тому +6

    Does the jet have any input from the missile locations? or is it avoiding them by coincidence? Really neat project and your video editing is on point.

    • @randomman1000tweeny1
      @randomman1000tweeny1  5 років тому +4

      I experimented with giving the jet the position of the closest missile but that didn't help since there were many missiles. I assumed that giving the jet the position of all the missiles would make training take too long and so I literally just trained the jets without any indications of missiles. Luckily, the jets then developed a really erratic style of movement which naturally made them able to dodge missiles since they never travelled in a straight line (the missiles work by predicting the jets position in the future and going to that point for the same time the jet gets there, this only works if the jet doesn't change direction). Also cheers, I'm glad you liked the editing!

    • @eL3ctric
      @eL3ctric 5 років тому +2

      @@randomman1000tweeny1 Ouwh :( that means the one plane that did the barrel roll did it perfectly by chance :/

  • @bfk9636
    @bfk9636 2 роки тому

    Could you share the project,it seems like so interesting!

  • @moveaxebx82
    @moveaxebx82 2 роки тому

    How does the plane know when to drop the bomb ? You said the outputs are pitch and roll, so what decides when the bomb has to be released?
    Thank you:)

  • @malinda31075
    @malinda31075 6 місяців тому

    that's amazing..can't you share the details with tutorials

  • @ZdrytchX
    @ZdrytchX 3 роки тому +1

    train an ai to do cas in war thunder while having rolands and tunguskas after it? ;)

    • @randomman1000tweeny1
      @randomman1000tweeny1  3 роки тому

      ahahah yeah that would be pretty sick. Maybe one day if I figure out how to hack game engines to get them to run on 5x speed I could train an AI on it lol

  • @gauravgupta9427
    @gauravgupta9427 4 роки тому +1

    Hey is this project is in open source .. how can I reproduce your results

    • @randomman1000tweeny1
      @randomman1000tweeny1  4 роки тому +1

      Sure is, here is my project files: www.mediafire.com/file/n120iqtrynlmr07/AI_Jet_Bomber.zip/file Hopefully the hyperparameters I used are included but if not sadly I no longer have them on my computer. Though tbh I didn't test many hyperparameters so I doubt mine were optimum anyway.

  • @robosergTV
    @robosergTV 4 роки тому +2

    Interesting, 3h and planes learned to pitch up a little bit? That's too slow for such a simple task. I trained a racing car in 45 min. that was driving almost perfect and better then me ^^ I think there must be something not ideal about setup, maybe hyperparameters etc. Otherwise VERY cool project! Something I wanted to do in a long time (not exactly this but a very similar idea of a plane bombing moving targets on the ground).

    • @randomman1000tweeny1
      @randomman1000tweeny1  4 роки тому

      Yeah, I reckon it's to do with the complicated reward function and the fact the jet is given quite a few extra variables as inputs which it needs to correctly drop the bomb. I suspect if I simply rewarded the jet for being alive and removed most of its inputs it would learn to pitch up within the first 20 minutes too. However, I am also sceptical of my hyperparameters though. Recently most of my projects have been taking a long time to do simple tasks. Oh well, anyway it's cool to hear you've had success with AI too! And yeah maybe I might revisit this project with moving targets but I fear it would take significantly longer to train.

  • @Neceros
    @Neceros 5 років тому +1

    Now see how it goes after 2 weeks training.

  • @Naamiko
    @Naamiko 5 років тому +1

    How do you "reward" the AI for a job well done? How does it know a reward is good?

    • @randomman1000tweeny1
      @randomman1000tweeny1  5 років тому +2

      The AI has a score, when I reward the AI it adds points to this score, when I punish it I take away points to the score. The AI sees when points are added or taken to its score. Every frame the AI will look at its inputs and based on them produce some outputs. If it sees points then being added it knows whatever calculations it did to those inputs to make the outputs where good. If it is punished, or gets no reward, it'll assume that whatever the calculations it did to the inputs was not correct and will change the calculations it performs. When I say calculations I'm referring to a neural network btw. It's hard to explain in words and for a better understanding check out my previous AI video where I taught a drone to fly.

    • @Naamiko
      @Naamiko 5 років тому +1

      @@randomman1000tweeny1 Thanks for taking the time to explain.

  • @youssh4975
    @youssh4975 2 роки тому

    this is fucking epic

  • @BrandinHirsch
    @BrandinHirsch 5 років тому +1

    This is amazing. Does unity come with ML packages for training? Did you also have to create the visual assets? Also, did you have to write functions to capture the coordinates of the rockets being sent at the planes or does unity come with a bunch of packages where you can set the reward function?

    • @randomman1000tweeny1
      @randomman1000tweeny1  5 років тому +1

      There is a Unity asset to do the ML training, here it is github.com/Unity-Technologies/ml-agents/blob/master/docs/Readme.md
      In regards to the other stuff the jet and missile launcher 3d models I got from the internet (I did however design the poker table lol).
      I experimented with giving the jet the position of the closest missile but that didn't help since there were many missiles. I assumed that giving the jet the position of all the missiles would make training take too long and so I literally just trained the jets without any indications of missiles. Luckily, the jets then developed a really erratic style of movement which naturally made them able to dodge missiles since they never travelled in a straight line (the missiles work by predicting the jets position in the future and going to that point for the same time the jet gets there, this only works if the jet doesn't change direction).
      You do also have to design the rewards yourself and it's the most important part of the project. It will define whether the project will be a success or failure. In my case I used a pretty whacky function to reward the jet 0.0005 * (1 / ((0.000005 * x^2) + 0.3f)) where x is the distance between the jet and target. Luckily, it really doesn't matter much what function you choose, 1/(x^2+0.1) could have probs done the job.

  • @lenhathuy8774
    @lenhathuy8774 3 роки тому

    can u explain the bomb-dropping mechanism ?
    btw if u can, can u show me the code?

  • @jaragon1udem
    @jaragon1udem 5 років тому +1

    Which gpu/cpu are you using? How long did it took to fully train?

    • @randomman1000tweeny1
      @randomman1000tweeny1  5 років тому

      I am using a GTX 970 however this AI was trained on my CPU being an AMD FX-8350 Eight-Core 4GHz. It took about 1 day and 8 hours to train if I remember right.

  • @jeremiahlampkey3137
    @jeremiahlampkey3137 5 років тому +1

    forgot to sub yesterday. I wanna see them videos! Once I get out of my gpu world generation.. ai is next!

    • @randomman1000tweeny1
      @randomman1000tweeny1  5 років тому

      For sure, I'm sure you'll love getting into it! I'm yet to meet someone who regretted getting into AI.

  • @creasu124
    @creasu124 4 роки тому

    I wanna see if someone can make a game with ai that is only trained like not programmed just player controls

  • @rancorwithatophat
    @rancorwithatophat 5 років тому +1

    should add ai logic to the sams as well.

    • @randomman1000tweeny1
      @randomman1000tweeny1  5 років тому

      Oddly enough that was actually the original plan for the video. In the end I had to scrap the idea because the missile did really trash compared to just using a simple algorithm. I could probably have made them work if I spent more time on it but I decided the jets would be more fun to use AI on. Maybe in the future I might revisit it and have the two AI's compete.

  • @Des420
    @Des420 4 роки тому

    5:34 Highlight kill of the week.

  • @MarvinEckhardt
    @MarvinEckhardt 2 роки тому

    👍

  • @scottjohn
    @scottjohn 5 років тому

    good
    and can you share de code?

    • @randomman1000tweeny1
      @randomman1000tweeny1  5 років тому

      Here it is: www.mediafire.com/file/n120iqtrynlmr07/AI_Jet_Bomber.zip/file

  • @spades757
    @spades757 4 роки тому

    America: entresteng

  • @appa609
    @appa609 4 роки тому

    Interface your nn to DCS world!

  • @shihabahmed2809
    @shihabahmed2809 Рік тому

    NATO is looking for you to train their drone

  • @devioxs5355
    @devioxs5355 2 роки тому +2

    Tutorial?