Teachable Machine 2: Snake Game

  Рет қаралды 100,940

The Coding Train

The Coding Train

Күн бұрын

Пікірлер: 124
@jesusc2me
@jesusc2me 5 жыл бұрын
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 5 жыл бұрын
ML wouldn't have been the same without these Coding Train videos on YT :)
@btiwari-games5279
@btiwari-games5279 5 жыл бұрын
Agreed
@sonik382
@sonik382 5 жыл бұрын
Awesome...please keep going on this subject! It is really fascinating and open so many possibilities!
@Edzward
@Edzward 5 жыл бұрын
Best teacher ever!
@NatetheAceOfficial
@NatetheAceOfficial 5 жыл бұрын
Me: Finally gets it to compile. Me: 07:10
@damiankaczmarczyk6158
@damiankaczmarczyk6158 5 жыл бұрын
Probably the best series on the channel! 😍
@dshuffman32
@dshuffman32 5 жыл бұрын
This is the coolest thing I have ever seen on you tube to date!!! love it!!!!
@leonardsmith9870
@leonardsmith9870 5 жыл бұрын
You are the hero we need, but don't deserve, when it comes to programming
@prathamj2215
@prathamj2215 5 жыл бұрын
great video! As always! Simply love watching your creative ways of coding something new
@klivecorps
@klivecorps 3 жыл бұрын
Those were Quickest 7:58 minutes of my life. I was like video is over?!?!?!? ALREADY?!?!?
@prosoftwebindia
@prosoftwebindia 5 жыл бұрын
You are tiger 🐅 of programming.... your all videos are great 👍
@yashwanthd1998
@yashwanthd1998 5 жыл бұрын
Bestest teacher ever
@shannusss119
@shannusss119 5 жыл бұрын
I love your teaching.
@mohammadesmaeilirad3294
@mohammadesmaeilirad3294 5 жыл бұрын
Oh boy that was just the greatest thing one could ever teach on youtube. Thanks
@zlyfer
@zlyfer 5 жыл бұрын
And I thought this was about an AI that learns how to play Snake.. :P Good Video anyways!
@kurokaktus5368
@kurokaktus5368 5 жыл бұрын
KZbin user Code Bullet has a video about an AI that learns to play snake.
@johnydl
@johnydl 5 жыл бұрын
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 5 жыл бұрын
@@johnydl gg
@condor07uk
@condor07uk 4 жыл бұрын
Codebullet is not a programming channel More like heres something I have done using these techs and thats it
@condor07uk
@condor07uk 4 жыл бұрын
KuroKaktus Codebullet is not a programming channel More like heres something I have done using these techs and thats it
@cedricg9891
@cedricg9891 5 жыл бұрын
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
@jobsphil9553
@jobsphil9553 5 жыл бұрын
brilliant and creative demo. very impressive for me.
@btiwari-games5279
@btiwari-games5279 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
@kavinbharathi
@kavinbharathi 4 жыл бұрын
I came to see a snake AI. I saw something that is even more fun and exciting...😄
@hamzahhamzahhamzah
@hamzahhamzahhamzah 5 жыл бұрын
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 :)
@Bit1News
@Bit1News 5 жыл бұрын
And I am here again !!! Have a niiiiice dayyyy!!!
@besusbb
@besusbb 5 жыл бұрын
the video editing seems to be better and great video btw
@juansebastiancortazar3322
@juansebastiancortazar3322 5 жыл бұрын
Thank you so much for so many great videos
@grainfrizz
@grainfrizz 5 жыл бұрын
Been waiting for this, Dan.
@nicholasdejong7112
@nicholasdejong7112 5 жыл бұрын
Amazing! Keep up the good work!
@andrewdunbar828
@andrewdunbar828 5 жыл бұрын
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!
@AceHardy
@AceHardy 5 жыл бұрын
👑
@techgametectrix6753
@techgametectrix6753 5 жыл бұрын
Now I'm a big fan of you
@omicron296
@omicron296 2 жыл бұрын
Fantastic! Tanks!
@Youtub95ah
@Youtub95ah 5 жыл бұрын
wow that was really fun to watch
@APaleDot
@APaleDot 5 жыл бұрын
Teachable Machine: "My left is your right. Isn't that confusing?"
@cypictronic
@cypictronic 3 жыл бұрын
Wow Amazing...
@SalvinRampalamp
@SalvinRampalamp 5 жыл бұрын
Thanks for the great lessons!
@sunnypepple6571
@sunnypepple6571 4 жыл бұрын
This is so cool
@radugantoi6427
@radugantoi6427 5 жыл бұрын
You're a wizard
@sinom
@sinom 5 жыл бұрын
6:35 not using a switch statement...
@TheCodingTrain
@TheCodingTrain 5 жыл бұрын
😱
@Mutahhar
@Mutahhar 5 жыл бұрын
@@Robin-fp5xr agreed... I personally find if...else statements more readable...
@locaco99
@locaco99 4 жыл бұрын
It is the same way if you use switch
@محمدعليمهدلي-ح6ق
@محمدعليمهدلي-ح6ق 8 ай бұрын
thanks you are amazing
@akamfoad
@akamfoad 5 жыл бұрын
Hahaha that was so nice and funny😂😍
@zingnolan
@zingnolan Жыл бұрын
Love you always
@andreyskuridin
@andreyskuridin 5 жыл бұрын
Amazing! Don't stop ))
@vestr161
@vestr161 5 жыл бұрын
Thanks for the sneak peek!
@Bit1News
@Bit1News 5 жыл бұрын
Stunning!!!!
@محمدعليمهدلي-ح6ق
@محمدعليمهدلي-ح6ق 8 ай бұрын
what microphone do you use for your videos?
@hussainsalih1390
@hussainsalih1390 5 жыл бұрын
Awesome 😍
@neeharikaroyal9293
@neeharikaroyal9293 5 жыл бұрын
Awesome 🙂
@paladin1147
@paladin1147 5 жыл бұрын
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.
@akankshasingh3075
@akankshasingh3075 5 жыл бұрын
This is awesome.
@stylextv
@stylextv 5 жыл бұрын
Why would you flip the whole video? Just flip the right and left output...
@jamesking2439
@jamesking2439 5 жыл бұрын
Exactly.
@harpalsinhjadeja2568
@harpalsinhjadeja2568 5 жыл бұрын
Why even do that just train model accordingly
@gultekinahmed5186
@gultekinahmed5186 5 жыл бұрын
very cool thank's
@cazino4
@cazino4 5 жыл бұрын
Brilliant!!
@crayclips980
@crayclips980 4 жыл бұрын
Cool but why did you flip the video instead of changing the output. Thats really taking performance in the long run
@mauriciochiriboga7761
@mauriciochiriboga7761 5 жыл бұрын
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.
@iamnoahtg
@iamnoahtg 4 жыл бұрын
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?
@marieh.5266
@marieh.5266 Жыл бұрын
same!!!
@stevegalili355
@stevegalili355 5 жыл бұрын
So usefull!,,
@CarlKho
@CarlKho 3 жыл бұрын
Error: Error when checking : expected dense_Dense1_input to have 2 dimension(s), but got array with shape [1,224,224,3]
@FlGHTFORLlBERTY
@FlGHTFORLlBERTY 5 жыл бұрын
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?
@blue_lobster_
@blue_lobster_ 5 жыл бұрын
Thank youuuu!
@agente00gable
@agente00gable 5 жыл бұрын
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 5 жыл бұрын
It works because it only calls classifyVideo() again once the first one has finished! (and it takes some time for each classification.)
@musaatas5566
@musaatas5566 5 жыл бұрын
How can we access predictions generated in p5.js from java or processing? Thanks in advance.
@StevesMakerspace
@StevesMakerspace 5 жыл бұрын
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 5 жыл бұрын
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?
@purveshgosalia8039
@purveshgosalia8039 5 жыл бұрын
Cool
@agentstona
@agentstona 3 жыл бұрын
Hey can you tell me what software you use to record your tutorials and for the green screen
@geoffwagner4935
@geoffwagner4935 Жыл бұрын
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
@urospocek4668
@urospocek4668 3 жыл бұрын
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?
@cissemy
@cissemy 3 жыл бұрын
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 3 жыл бұрын
The discord is a great place for this discussion! thecodingtrain.com/discord
@prathamj2215
@prathamj2215 5 жыл бұрын
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
@fibrouspaperstudio8014
@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 5 жыл бұрын
what programm is he using for coding?
@tl8035
@tl8035 4 жыл бұрын
I tried running the same but on Glitch. It doesn't seem to work?
@footballarena6562
@footballarena6562 5 жыл бұрын
Genius
@elijahko4189
@elijahko4189 4 жыл бұрын
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?
@sainath66666
@sainath66666 5 жыл бұрын
Since it trains locally should I have a GPU laptop If not is there any backdoor to train this on Google Colab?
@TheCodingTrain
@TheCodingTrain 5 жыл бұрын
You don't need a fancy GPU for this! It works on most modern laptops.
@JavaAidTutorials
@JavaAidTutorials 5 жыл бұрын
Awesome..
@tipsstudio9707
@tipsstudio9707 5 жыл бұрын
@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 5 жыл бұрын
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 5 жыл бұрын
@@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.
@robertoalancay9319
@robertoalancay9319 5 жыл бұрын
some tool for the reinforcement learning?
@chitaozinhodoextrativismo4108
@chitaozinhodoextrativismo4108 5 жыл бұрын
Hello shifftman. I challenge you to replicate the marangoni effect in JavaScript
@rohankapoor6981
@rohankapoor6981 5 жыл бұрын
Instead of flipping make the left hand as right and vice versa
@fathifathi8750
@fathifathi8750 5 жыл бұрын
You have plus 1 in the exam 😆
@purveshgosalia8039
@purveshgosalia8039 5 жыл бұрын
Share it in description
@abc0583
@abc0583 5 жыл бұрын
Hello,chat can any one recommend me which language to start?with plzz
@TheCodingTrain
@TheCodingTrain 5 жыл бұрын
Here's my playlist for getting started! kzbin.info/aero/PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA
@kentlab3850
@kentlab3850 5 жыл бұрын
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
@PK2008-
@PK2008- 2 жыл бұрын
Hi, I am getting many errors on the code please can you help me. I am using this project for school purposes.
@realcygnus
@realcygnus 5 жыл бұрын
cool
@EngRiadAlmadani
@EngRiadAlmadani 4 жыл бұрын
you can make it by pose project
@prachetass
@prachetass 5 жыл бұрын
Please do a bubble shooter or match 3 game in a coding challenge
@jessienewman3879
@jessienewman3879 5 жыл бұрын
Am I'm allowed to be here 0_0 lol sneak peek
@TheCodingTrain
@TheCodingTrain 5 жыл бұрын
You are!
@chakree100
@chakree100 5 жыл бұрын
that's really cool sir! but how to feed in an IP camera wirelessly
@chakree100
@chakree100 5 жыл бұрын
@@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 5 жыл бұрын
@@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 5 жыл бұрын
@@TECHNOSTARTERSS so u r saying this is impossible!
@chakree100
@chakree100 5 жыл бұрын
@@TECHNOSTARTERSS cool! That's what i wanted also lets hear what the expert has to say!
@kaza6299
@kaza6299 5 жыл бұрын
What is name of the app that he wrote this code ?
@TheCodingTrain
@TheCodingTrain 5 жыл бұрын
it's the p5 web editor! editor.p5js.org/
@muhammadabdullah9845
@muhammadabdullah9845 5 жыл бұрын
Ok i am really early
@geoffwagner4935
@geoffwagner4935 Жыл бұрын
wow
@naema317
@naema317 7 ай бұрын
Thank you 🙂I am 4years late 😞
@purveshgosalia8039
@purveshgosalia8039 5 жыл бұрын
Can u give the code of ur snake game please
@TheCodingTrain
@TheCodingTrain 5 жыл бұрын
You can find everything here! thecodingtrain.com/TeachableMachine/2-teachable-game.html
@joyfullearners4837
@joyfullearners4837 4 жыл бұрын
I am interested to learn coding
@sinom
@sinom 5 жыл бұрын
You in the beginning forgetting that you are already flipped correct yourself to showing the wrong side
@Akosiyawin
@Akosiyawin 2 жыл бұрын
Sadly it only works with my face, the model needs to be trained by other people who you want to share it
@geoffwagner4935
@geoffwagner4935 Жыл бұрын
arm language at my computer. i hope none of the neighbors are watching
ml5.js: Train Your Own Neural Network
34:49
The Coding Train
Рет қаралды 104 М.
Teachable Machine 3: Sound Classifiication
14:34
The Coding Train
Рет қаралды 65 М.
Интересно, какой он был в молодости
01:00
БЕЗУМНЫЙ СПОРТ
Рет қаралды 3,4 МЛН
Video Documentary
16:13
jino1113
Рет қаралды 8
Coding Challenge 180: Falling Sand
23:00
The Coding Train
Рет қаралды 1 МЛН
Teachable Machine 1: Image Classification
20:02
The Coding Train
Рет қаралды 197 М.
The impossible chessboard puzzle
18:42
3Blue1Brown
Рет қаралды 2 МЛН
SOME UNIQUE C++ CODE! // Pacman Clone Code Review
26:42
The Cherno
Рет қаралды 289 М.
I Made ChatGPT in SCRATCH 🦾🔥
4:35
The STEAMist
Рет қаралды 99 М.
Google's 8 Hour AI Essentials Course In 15 Minutes
15:34
Tina Huang
Рет қаралды 144 М.
ml5.js: Feature Extractor Classification
21:04
The Coding Train
Рет қаралды 44 М.