Teachable Machine 2: Snake Game

Sdílet
Vložit
  • čas přidán 28. 08. 2024

Komentáře • 124

  • @jesusc2me
    @jesusc2me Před 4 lety +6

    Dan you are a legend.
    It has been a pleasure watching your videos evolve over the years.
    Hugely valuable learning resource from someone who cares a bit more about aesthetics.
    THANK YOU and Cheers!

  • @DarshanSenTheComposer
    @DarshanSenTheComposer Před 4 lety +17

    ML wouldn't have been the same without these Coding Train videos on YT :)

  • @NatetheAceOfficial
    @NatetheAceOfficial Před 4 lety +77

    Me: Finally gets it to compile.
    Me: 07:10

  • @sonik382
    @sonik382 Před 4 lety +19

    Awesome...please keep going on this subject! It is really fascinating and open so many possibilities!

  • @Edzward
    @Edzward Před 4 lety +16

    Best teacher ever!

  • @damiankaczmarczyk6158
    @damiankaczmarczyk6158 Před 4 lety +19

    Probably the best series on the channel! 😍

  • @dshuffman32
    @dshuffman32 Před 4 lety +5

    This is the coolest thing I have ever seen on you tube to date!!! love it!!!!

  • @prathamj2215
    @prathamj2215 Před 4 lety +3

    great video! As always! Simply love watching your creative ways of coding something new

  • @leonardsmith9870
    @leonardsmith9870 Před 4 lety

    You are the hero we need, but don't deserve, when it comes to programming

  • @shannusss119
    @shannusss119 Před 4 lety +1

    I love your teaching.

  • @hamzahhamzahhamzah
    @hamzahhamzahhamzah Před 4 lety +1

    I am really glad that we have someone like you in youtube, i am wondering if i can challenge you with some coding with matter.js, can this plugin add physics to text and letters ? would it be able to add physics to it ? for example a circle hitting the text and it would explode ? i would really really appreciate it if you can look into it :)

  • @andrewdunbar828
    @andrewdunbar828 Před 4 lety +2

    It would be really good to see you do a little project in Rust, teaching as you learn. Its learning curve is tough and current video intros are either too shallow or too dry. Your personality and style would be a great help!

  • @prosoftwebindia
    @prosoftwebindia Před 4 lety

    You are tiger 🐅 of programming.... your all videos are great 👍

  • @btiwari-games5279
    @btiwari-games5279 Před 4 lety +5

    Before you said ml5 has Function for flipping I was just thinking that you're gonna flip the snake move value to left for right label and right for left label.. but then I realized how lazy am i xd

  • @APaleDot
    @APaleDot Před 4 lety +6

    Teachable Machine: "My left is your right. Isn't that confusing?"

  • @mohammadesmaeilirad3294

    Oh boy that was just the greatest thing one could ever teach on youtube. Thanks

  • @zlyfer
    @zlyfer Před 4 lety +54

    And I thought this was about an AI that learns how to play Snake.. :P Good Video anyways!

    • @kurokaktus5368
      @kurokaktus5368 Před 4 lety +3

      CZcams user Code Bullet has a video about an AI that learns to play snake.

    • @johnydl
      @johnydl Před 4 lety +7

      it'd be interesting if you gave the AI classification the screen outputs as the pictures and then a recommended move as the classification, might come up with an AI that plays XD

    • @nicholasdejong7112
      @nicholasdejong7112 Před 4 lety

      @@johnydl gg

    • @condor07uk
      @condor07uk Před 4 lety

      Codebullet is not a programming channel
      More like heres something I have done using these techs and thats it

    • @condor07uk
      @condor07uk Před 4 lety

      KuroKaktus Codebullet is not a programming channel
      More like heres something I have done using these techs and thats it

  • @yashwanthd1998
    @yashwanthd1998 Před 4 lety

    Bestest teacher ever

  • @jobsphil9553
    @jobsphil9553 Před 4 lety +1

    brilliant and creative demo. very impressive for me.

  • @cedricg9891
    @cedricg9891 Před 4 lety +1

    Thank you Mister,
    You are an amazing one who each time gave me tons of ideas, thank you for that and the rest.
    Best regards

  • @stylextv
    @stylextv Před 4 lety +5

    Why would you flip the whole video? Just flip the right and left output...

  • @klivecorps
    @klivecorps Před 3 lety

    Those were Quickest 7:58 minutes of my life. I was like video is over?!?!?!? ALREADY?!?!?

  • @crayclips980
    @crayclips980 Před 4 lety +1

    Cool but why did you flip the video instead of changing the output.
    Thats really taking performance in the long run

  • @paladin1147
    @paladin1147 Před 4 lety +1

    Can someone please explain to me this concept :
    For example:
    say we have a PVector with a location embedded into, let's call it position, this position (vector) belongs to a different class within a another class
    say we have a class object, denoted by Class
    class b {
    PVector position;
    Class a = new Class(position);
    And,
    Class a = new Class(new PVector(position.x,position.y);
    }
    How come, when I run the first one, the orginal object (b) get's affected by what happens to class (a) but when I run the second one this case doesn't happen
    I thought left = rights and right doesn't matter
    Sorry if I am dumb.

  • @kavinbharathi
    @kavinbharathi Před 3 lety

    I came to see a snake AI. I saw something that is even more fun and exciting...😄

  • @SalvinRampalamp
    @SalvinRampalamp Před 4 lety

    Thanks for the great lessons!

  • @user-oo8fd2ov5m
    @user-oo8fd2ov5m Před 4 měsíci

    thanks you are amazing

  • @juansebastiancortazar3322

    Thank you so much for so many great videos

  • @nicholasdejong7112
    @nicholasdejong7112 Před 4 lety +1

    Amazing! Keep up the good work!

  • @mauriciochiriboga7761
    @mauriciochiriboga7761 Před 4 lety +1

    Amazing... I have learned a lot thanks to you and your tutorials.
    Dan, could you please do a video like "11.3 Neuroevolution Flappy Bird with TensorFlow.js" but with the "Snake game". I've tried for myself but I can't get the snake to learn.

  • @grainfrizz
    @grainfrizz Před 4 lety +2

    Been waiting for this, Dan.

  • @besusbb
    @besusbb Před 4 lety

    the video editing seems to be better and great video btw

  • @cypictronic
    @cypictronic Před 3 lety

    Wow Amazing...

  • @Bit1News
    @Bit1News Před 4 lety

    And I am here again !!!
    Have a niiiiice dayyyy!!!

  • @user-oo8fd2ov5m
    @user-oo8fd2ov5m Před 4 měsíci

    what microphone do you use for your videos?

  • @vestr161
    @vestr161 Před 4 lety

    Thanks for the sneak peek!

  • @zingnolan
    @zingnolan Před rokem

    Love you always

  • @Youtub95ah
    @Youtub95ah Před 4 lety

    wow that was really fun to watch

  • @iamnoahtg
    @iamnoahtg Před 4 lety +1

    Question: When I add my own model, it reads my input just fine, but the snake doesn't move. I've changed literally nothing but the model link. Am I doing something wrong?

  • @omicron296
    @omicron296 Před 2 lety

    Fantastic! Tanks!

  • @sinom
    @sinom Před 4 lety +10

    6:35 not using a switch statement...

    • @TheCodingTrain
      @TheCodingTrain  Před 4 lety +8

      😱

    • @Mutahhar
      @Mutahhar Před 4 lety

      @@Robin-fp5xr agreed...
      I personally find if...else statements more readable...

    • @locaco99
      @locaco99 Před 4 lety

      It is the same way if you use switch

  • @Bit1News
    @Bit1News Před 4 lety

    Stunning!!!!

  • @techgametectrix6753
    @techgametectrix6753 Před 4 lety

    Now I'm a big fan of you

  • @andreyskuridin
    @andreyskuridin Před 4 lety

    Amazing! Don't stop ))

  • @geoffwagner4935
    @geoffwagner4935 Před 11 měsíci

    i hav no idea wut running a photo through the toy neural network would be like. but i know the computer vision series is pretty close to a doodle. i know again probably speaking very soon on this topic

  • @agentstona
    @agentstona Před 3 lety

    Hey can you tell me what software you use to record your tutorials and for the green screen

  • @gultekinahmed5186
    @gultekinahmed5186 Před 4 lety

    very cool thank's

  • @akankshasingh3075
    @akankshasingh3075 Před 4 lety

    This is awesome.

  • @elijahko4189
    @elijahko4189 Před 4 lety

    Dan, thanks for the amaazzzing video! When I tried to train the model on Teachable Machine using "Posture", it seems p5.js is not supporting. Is it true?

  • @urospocek4668
    @urospocek4668 Před 3 lety

    Great video, thank you a lot. I just have 1 question/problem. I get: "High memory usage in GPU: 1186.54 MB, most likely due to a memory leak " warning. How can I fix this?

  • @AceHardy
    @AceHardy Před 4 lety

    👑

  • @blue_lobster_
    @blue_lobster_ Před 4 lety

    Thank youuuu!

  • @radugantoi6427
    @radugantoi6427 Před 4 lety

    You're a wizard

  • @sunnypepple6571
    @sunnypepple6571 Před 3 lety

    This is so cool

  • @cazino4
    @cazino4 Před 4 lety

    Brilliant!!

  • @rohankapoor6981
    @rohankapoor6981 Před 4 lety +1

    Instead of flipping make the left hand as right and vice versa

  • @musaatas5566
    @musaatas5566 Před 4 lety

    How can we access predictions generated in p5.js from java or processing? Thanks in advance.

  • @prathamj2215
    @prathamj2215 Před 4 lety

    I am not able to download my model for TensorFlowLite as Floating? I click on export model and then click the download button, it changes to "converting your model" and then back to "download your model", but it does nothing and my model doesn't download? Is it just me or is this happening to you or anyone else too? I need to download the model for TensorflowLite

  • @akamfoad
    @akamfoad Před 4 lety +1

    Hahaha that was so nice and funny😂😍

  • @PK2008-
    @PK2008- Před 2 lety

    Hi, I am getting many errors on the code please can you help me. I am using this project for school purposes.

  • @CarlKho
    @CarlKho Před 3 lety

    Error: Error when checking : expected dense_Dense1_input to have 2 dimension(s), but got array with shape [1,224,224,3]

  • @FlGHTFORLlBERTY
    @FlGHTFORLlBERTY Před 4 lety

    How about a version that trains model using image of snake game video state so it can play itself based on relative location to food?

  • @tl8035
    @tl8035 Před 4 lety

    I tried running the same but on Glitch. It doesn't seem to work?

  • @neeharikaroyal9293
    @neeharikaroyal9293 Před 4 lety

    Awesome 🙂

  • @hussainsalih1390
    @hussainsalih1390 Před 4 lety

    Awesome 😍

  • @stevegalili355
    @stevegalili355 Před 4 lety

    So usefull!,,

  • @agente00gable
    @agente00gable Před 4 lety

    for what i understand in the code,
    the classifyVideo() calls gotResults(), witch in turn calls classifyVideo() , making a infinite recursion.
    If this script was in python, it would break because it would research the recursion depth limit. Why in javascript works? i mean every ocurrance of a function ocupates a space in the memory and the code is adding more and more of that, never ending one ocurrance, sometime this would full the stack.

    • @TheCodingTrain
      @TheCodingTrain  Před 4 lety

      It works because it only calls classifyVideo() again once the first one has finished! (and it takes some time for each classification.)

  • @StevesMakerspace
    @StevesMakerspace Před 4 lety

    Is there a way to get the Teachable Machine to convert poses into keystrokes and mouse clicks? It would be awesome to control my favorite PC video games with gestures.

    • @TheCodingTrain
      @TheCodingTrain  Před 4 lety

      Great idea! You could send network messages from p5 to some piece of hardware or software that emulates key presses etc! Maybe it would be easier from python tensorflow directly?

  • @chitaozinhodoextrativismo4108

    Hello shifftman. I challenge you to replicate the marangoni effect in JavaScript

  • @fibrouspaperstudio8014

    I ran into error which shows "InvalidStateError: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The image argument is a canvas element with a width or height of 0." Anyone knows why?

  • @DCGALAXY
    @DCGALAXY Před 4 lety

    what programm is he using for coding?

  • @abc0583
    @abc0583 Před 4 lety +1

    Hello,chat can any one recommend me which language to start?with plzz

    • @TheCodingTrain
      @TheCodingTrain  Před 4 lety +1

      Here's my playlist for getting started! czcams.com/play/PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA.html

    • @kentlab3850
      @kentlab3850 Před 4 lety

      Python is quite nice to start but i am very biased since it's the main one i know, advices from other people would be nice

  • @geoffwagner4935
    @geoffwagner4935 Před 11 měsíci

    wow

  • @EngRiadAlmadani
    @EngRiadAlmadani Před 4 lety

    you can make it by pose project

  • @cissemy
    @cissemy Před 3 lety

    Great,
    1)How can I run the model locally without internet connection?
    2)How can I add my exported model to my react native or xamarin mobile app ?
    Thanks

    • @TheCodingTrain
      @TheCodingTrain  Před 3 lety

      The discord is a great place for this discussion! thecodingtrain.com/discord

  • @prachetass
    @prachetass Před 4 lety

    Please do a bubble shooter or match 3 game in a coding challenge

  • @purveshgosalia8039
    @purveshgosalia8039 Před 4 lety

    Share it in description

  • @robertoalancay9319
    @robertoalancay9319 Před 4 lety

    some tool for the reinforcement learning?

  • @sainath66666
    @sainath66666 Před 4 lety

    Since it trains locally should I have a GPU laptop
    If not is there any backdoor to train this on Google Colab?

    • @TheCodingTrain
      @TheCodingTrain  Před 4 lety +1

      You don't need a fancy GPU for this! It works on most modern laptops.

  • @purveshgosalia8039
    @purveshgosalia8039 Před 4 lety

    Cool

  • @footballarena6562
    @footballarena6562 Před 4 lety

    Genius

  • @tipsstudio9707
    @tipsstudio9707 Před 4 lety

    @thecodeingtrain how can i use ipcam in place of webcam of pc?? because i have no webcam, so i want to use my mobile cam as webcam, so what argument can i pass in createCapture() function
    so i cam use url in that function and can access my mobile cam like webcam?? please answer

    • @TheCodingTrain
      @TheCodingTrain  Před 4 lety +1

      Try going to your browser settings and changing the default camera! If your browser can see it then TM and p5 can as well.

    • @tipsstudio9707
      @tipsstudio9707 Před 4 lety

      @@TheCodingTrain but there is no any option for place url as a parameter in createCapture() function?? Because of this is easy and best way to utilize that.

  • @Akosiyawin
    @Akosiyawin Před rokem

    Sadly it only works with my face, the model needs to be trained by other people who you want to share it

  • @realcygnus
    @realcygnus Před 4 lety

    cool

  • @jessienewman3879
    @jessienewman3879 Před 4 lety +1

    Am I'm allowed to be here 0_0 lol sneak peek

  • @joyfullearners4837
    @joyfullearners4837 Před 3 lety

    I am interested to learn coding

  • @chakree100
    @chakree100 Před 4 lety

    that's really cool sir! but how to feed in an IP camera wirelessly

    • @chakree100
      @chakree100 Před 4 lety

      @@TECHNOSTARTERSS but the question still is will it be possible to do it? Even 5 fps would meet latency of a snake game wouldn't it!

    • @chakree100
      @chakree100 Před 4 lety

      @@TECHNOSTARTERSS it gave me 30fps 720p with webm codec, so have even tried encoding a camera to streaming video over IP? If not try doing with a raspberry Pi for starters. There are many products today which streams at 1080p like baby monitors, security systems and worst of all check Facebook live specs! I worked on networking and I'm not that aware of JavaScript if you are aware of the solution let me if not let the expert do the talking isn't that why I comment here!

    • @chakree100
      @chakree100 Před 4 lety

      @@TECHNOSTARTERSS so u r saying this is impossible!

    • @chakree100
      @chakree100 Před 4 lety

      @@TECHNOSTARTERSS cool! That's what i wanted also lets hear what the expert has to say!

  • @naema317
    @naema317 Před 3 měsíci

    Thank you 🙂I am 4years late 😞

  • @kaza6299
    @kaza6299 Před 4 lety

    What is name of the app that he wrote this code ?

  • @sinom
    @sinom Před 4 lety

    You in the beginning forgetting that you are already flipped correct yourself to showing the wrong side

  • @purveshgosalia8039
    @purveshgosalia8039 Před 4 lety

    Can u give the code of ur snake game please

    • @TheCodingTrain
      @TheCodingTrain  Před 4 lety

      You can find everything here! thecodingtrain.com/TeachableMachine/2-teachable-game.html

  • @JavaAidTutorials
    @JavaAidTutorials Před 4 lety

    Awesome..

  • @muhammadabdullah9845
    @muhammadabdullah9845 Před 4 lety

    Ok i am really early

  • @geoffwagner4935
    @geoffwagner4935 Před 11 měsíci

    arm language at my computer. i hope none of the neighbors are watching