Coding Challenge 158: Shape Classifier Neural Network with ml5.js

  Рет қаралды 139,760

The Coding Train

The Coding Train

Күн бұрын

Пікірлер
4 жыл бұрын
Man, you are pure awesomeness and energy. I remember a few years back when I started with p5js thanks to your coding trains, how I grew my first fractal tree. Now I come back and the energy is the same. Screw the algorithm, there is nothing to change here.
@deneb3525
@deneb3525 4 жыл бұрын
I just want to say thank you for this, a while ago I was trying to figure out how to build something to recognise Rune/Glyphs and had totaly hit a wall. This explained almost everything I'll need. Very Cool.
@TheCodingTrain
@TheCodingTrain 4 жыл бұрын
Please share if you make one for glyphs!
@fire17102
@fire17102 4 жыл бұрын
@@TheCodingTrainThank You! my upcoming is a model that estimates how much water is in a glass or cup, combine that with a selenoid valve and you got an autofilling water/beer faucet 🌈 guessing that I will start with this video's implementation then go embeding it into Espcam or pi_cam with TF light or js 🍻
@Khoir
@Khoir 4 жыл бұрын
If you want 100% circle: First, draw this head, then erase some of the more detailed features, and one, two, three, a circle, uh, thingy.
@dingdong3021
@dingdong3021 4 жыл бұрын
Theres no 100%
@kevin42
@kevin42 3 жыл бұрын
One of my all time fav eps. Distinctly remember seeing it for the first time back in 2014
@caysonarlo5322
@caysonarlo5322 3 жыл бұрын
I guess Im asking randomly but does someone know a trick to get back into an instagram account..? I somehow lost the login password. I would love any tricks you can give me!
@christopherjeffery3715
@christopherjeffery3715 3 жыл бұрын
@Cayson Arlo Instablaster :)
@caysonarlo5322
@caysonarlo5322 3 жыл бұрын
@Christopher Jeffery I really appreciate your reply. I got to the site on google and I'm trying it out atm. I see it takes a while so I will reply here later with my results.
@zaynababbaspour4717
@zaynababbaspour4717 4 жыл бұрын
Your videos helped me pass my computing GCSEs in England. These energetic and informative videos saved me. Thank you!!!!!
@scotttroyer
@scotttroyer 4 жыл бұрын
circles squares 3angles Works for all shapes up to 9angles.
@redstone_mason
@redstone_mason 4 жыл бұрын
it can go up to 10 angles if you use the roman numeral for 10 Xangles
@jakimoretti7771
@jakimoretti7771 4 жыл бұрын
going with hex values you can go up to 15 angles, or Fangles, as we call them
@kphk3428
@kphk3428 2 жыл бұрын
I think you meant: 0angles 4angles 3angles
@micheledaffara9245
@micheledaffara9245 4 жыл бұрын
It's awesome how 1 million people want to learn. Amazing work :D
@victap8837
@victap8837 4 жыл бұрын
Love the enthusiasm and the sheer joy you show when presenting! Thank you for sharing your valuable knowledge!
@Zachucks
@Zachucks 4 жыл бұрын
Dan's energy is just so great, love learning from people that are so happily into what they do :)
@YuriyKlyuch
@YuriyKlyuch 4 жыл бұрын
This guy teaches! But seriously, thanks man, your work is amazing
@beda9beda
@beda9beda 4 жыл бұрын
Your energy and excitement ate insane! You are so cool :)
@fernandosanchezvillanueva4762
@fernandosanchezvillanueva4762 4 жыл бұрын
Great video,!! I trained my first model to classify 2D shapes two week ago. Now I found this video!! Its Amazing. :D
@vietnamgamer9490
@vietnamgamer9490 3 жыл бұрын
No clue who this guy is but honestly he’s a god at coding and a REALLY good teacher
@endyy6671
@endyy6671 4 жыл бұрын
Love these NN videos! One project that I think could be fun would be a neuroevolution based intelligence with multiple NNs/actors, all with a single fitness score. It could be interesting to see them evolve teamwork
@shubhang2877
@shubhang2877 4 жыл бұрын
I love your energy and enthusiasm Choo-choo!
@Shinika01
@Shinika01 4 жыл бұрын
Epic, Very good! Keep this serie for the long term please, you'll change life of some younger and create the passion we NEED to change our world! Please, please!! DO MORE OF THAT and with time level up slowly. One thing that's epic, is that you go from scratch ;) love it
@Shinika01
@Shinika01 4 жыл бұрын
The accelerated video is a very good solution to cover all your topic in somehow a live coding. At some point in this topic, i'd like you to fail at normal speed with your logic, and then fix it, because the thinking process is amazing to learn the why and how
@huili4364
@huili4364 4 жыл бұрын
Love it, the debugging of the "true" string is interesting, sort of the love hate relationship to JavaScript. Again appreciated everything you do on coding train!
@ethancodes853
@ethancodes853 4 жыл бұрын
@14:15 This is why static typing exists :-). We need TypeScript support for ml5. And a series of TypeScript videos for The Coding Train!
@zaczourbang4454
@zaczourbang4454 4 жыл бұрын
I laughed so many times during this 😂 thank you!!
@rn.s9
@rn.s9 4 жыл бұрын
Went for 128x128 image training for time testing at epoch 49 loss was 0.00046 and when I changed the code to save the model then trained again loss was constant at 5.0 then retrained again got loss 0.0051 saved then used and it's working perfectly fine
@justingolden21
@justingolden21 4 жыл бұрын
After Neural Network November (NNN) ended, now we start the learning, I see how it is...
@moofymoo
@moofymoo 3 жыл бұрын
for next NNN I will build hotdog classifier.
@max-yasgur
@max-yasgur 4 жыл бұрын
If you’d like to be extra correct, # is called an octothorp 🤓. WARNING: you may lose some friends or respect from colleagues.
@diegodemetillo5947
@diegodemetillo5947 4 жыл бұрын
@Chris Sears rephrasing that, it's also a way of finding out if you even have real friends to start with XD
@zer001
@zer001 4 жыл бұрын
Yes, this is the Format that I like. And Processing is anyway a cool Tool. Thumbs up!
@Roknok
@Roknok 4 жыл бұрын
27:06 I have to say the scribble was beautiful
@siddhantrai7529
@siddhantrai7529 4 жыл бұрын
Hi Daniel, try using capsule nets instead of vanilla CNN's, they are much better and more robust against orientations. By the way, great video as always, I love your enthusiasm, keep up the good work.
@TheCodingTrain
@TheCodingTrain 4 жыл бұрын
Thanks for sharing this!
@siddhantrai7529
@siddhantrai7529 4 жыл бұрын
That literally meant a lot to me daniel, You had been my hero, since last 2 years. Your Genetic algo series brought in curiosity for intelligent systems to me. Thank you
@kayadem
@kayadem 3 жыл бұрын
such a satisfying coding challenge :D
@josephglover4546
@josephglover4546 4 жыл бұрын
I love this channel so much.
@வணக்கம்-ங1ண
@வணக்கம்-ங1ண 4 жыл бұрын
Interesting and useful. Thanks Dan.
@mrnobody2492
@mrnobody2492 3 жыл бұрын
I realy love his work. Thanks for all your wisdom ^_^
@nazcaman
@nazcaman 4 жыл бұрын
Don't think I saw a single comment calling you out as a square! :)
@TheCodingTrain
@TheCodingTrain 4 жыл бұрын
OMG what is wrong with me for not making this a running gag!
@SurrealBackrooms
@SurrealBackrooms 4 жыл бұрын
I love how the sun is wearing a mask lol
@tatianaes3354
@tatianaes3354 Жыл бұрын
THE GUY is such a funny silly character, while also being smart.
@saifmalik4230
@saifmalik4230 4 жыл бұрын
anyone kindly tell me any simple video editing to tool to do that @9:04 (pause the video to state or highlight a point and then continue video)
@ericmckevitt8308
@ericmckevitt8308 4 жыл бұрын
I’m getting “Error: Based on the provided shape, [1,64,64,4], the tensor should have 16328 values but it has 147456”. I know that if you multiply 1*64*64*4 you get 16328. My canvas is set at 64x64, but if I console.log(canvas), it shows the HTML element with width=“192” height=“192” attributes but then styled with style=“width: 64px; height: 64px;”. 192*192*4 = 147456, which is what the error pointed to. Does anyone know how to fix this? The classify function targets the width and heigh attributes rather than the style attributes, and resizing the canvas only affects the style attributes.
@TheCodingTrain
@TheCodingTrain 4 жыл бұрын
Ah! Are you on a "high density display" (for example mac "retina"?). Try adding pixelDensity(1) to setup() and see if that helps
@ericmckevitt8308
@ericmckevitt8308 4 жыл бұрын
@@TheCodingTrain Yes! That fixed it, thank you!
@tavl9108
@tavl9108 3 жыл бұрын
@@TheCodingTrain I had the same Issue and after looking everywhere (but not here for a while!) I couldn't figure it out, this fixed it. You are a treasure, thank you.
@ccoodduu
@ccoodduu 3 жыл бұрын
Are you gonna continue the series where you build your own Neural Network? For example with multiple hidden layers.
@covereye5731
@covereye5731 4 жыл бұрын
Can't believe you resorted to having a red circle in your thumbnail. Never thought you would get to that level of clickbait.
@TheCodingTrain
@TheCodingTrain 4 жыл бұрын
I have no idea what this means!
@covereye5731
@covereye5731 4 жыл бұрын
@@TheCodingTrain Just a joke about red arrows and red circles that are so often used in YT thumbnails. Nothing to worry about, you are awesome.
@TheCodingTrain
@TheCodingTrain 4 жыл бұрын
@@covereye5731 haha ok!
@zaczourbang4454
@zaczourbang4454 4 жыл бұрын
Wait this is actually a really clever comment 😂
@younessfathi1739
@younessfathi1739 4 жыл бұрын
Thank you very much,it is very helpful
@djsyntic
@djsyntic 2 жыл бұрын
I do find it interesting that your training set is ONLY stuff generated by a computer and it learning enough about what circles, triangles, and squares are so that it can then go on to correctly see what a human thinks is a circle, triangle, or square.
@xXFirePlayerXx
@xXFirePlayerXx 3 жыл бұрын
So I tried to create a shape classifier of my own with more training data but since I try to load a lot of images, I am getting this error: "Failed to load resource: net::ERR_INSUFFICIENT_RESOURCES" Could someone tell me if there is a way to work around that error? Thank you! :)
@ricksanchez280
@ricksanchez280 3 жыл бұрын
load data in batches. for example in the start load 100 images of every class and train the model than load another 100 and repeat. 100 is a example you can make it 1000 or 10 depending on your computer and your data
@xXFirePlayerXx
@xXFirePlayerXx 3 жыл бұрын
@@ricksanchez280 Thank you very much for your effort! I fixed it by myself and submitted my thesis 2 months ago. :)
@ricksanchez280
@ricksanchez280 3 жыл бұрын
@@xXFirePlayerXx yeah i figured its a little late xd
@xXFirePlayerXx
@xXFirePlayerXx 3 жыл бұрын
@@ricksanchez280 I appreciate your effort though! xd
@ricksanchez280
@ricksanchez280 3 жыл бұрын
@@xXFirePlayerXx Thanks! What was your project about i got curious. i am working on a image classifyer too. Trying to train a model to understand emotions on images idk if i can do it but still learning
@MiguelRodriguez-wn8mc
@MiguelRodriguez-wn8mc Жыл бұрын
Hello, as always in your videos an excellent explanation. I wanted to ask you it is possible to classify several figures at the same time and with these commands there is some way to know the location in x and y coordinates of each classified element
@aparrot4254
@aparrot4254 4 жыл бұрын
Great video! Could you please try to make a video where you solve Advent Of Code? It would be really cool to watch you solve those puzzles!
@preetipanchal6422
@preetipanchal6422 4 жыл бұрын
I saw your discord bots 4 video it was super Amazing 👍🏻🤩
@akay9030
@akay9030 4 жыл бұрын
Why the model data at 21:26 ,worked without parenthesis
@akay9030
@akay9030 4 жыл бұрын
The modelLoaded
@akay9030
@akay9030 4 жыл бұрын
@@peepeepoopoo7723 where it is used for callback in line 16
@a7madx7
@a7madx7 4 жыл бұрын
Dude, you're awesome.
@dge8419
@dge8419 3 жыл бұрын
this guy is very excited:D
@nadkine6601
@nadkine6601 4 жыл бұрын
8:32 that was intentional, wasn't it?
@greendsnow
@greendsnow 2 жыл бұрын
Hey there. Can you please show us how to use this exact model for real time Object Detection? Thank you
@ozioma
@ozioma 2 жыл бұрын
Is there a similar mL5 process but for sounds/audio?
@cameronball3998
@cameronball3998 4 жыл бұрын
This was awesome, thank you
@hawaiidev4867
@hawaiidev4867 3 жыл бұрын
Desided to take this concept and convert it into a number recognition for a sodoku solver
@hetsmiecht1029
@hetsmiecht1029 4 жыл бұрын
7:50 can't you just open the index.html with your browser? I don't really see the need to fiddle around with local servers.
@rmanky12
@rmanky12 4 жыл бұрын
I think it's related to issues with accessing local files, ie javascript won't let you access the "data" folder directly unless a server "serves" it? something like that...
@spider853
@spider853 4 жыл бұрын
I think it uses an intermediate engine for JS parsing which requires a server. Like the way he saved images from JS will not be possible with just browser JS, there might be some backend generated based on the api he used.
@Fun-Planet
@Fun-Planet 4 жыл бұрын
The browser won't allow to read the image files, as they are local files. Hence we have to "host" the images as well to access them with the local server Edit: I think also p5/ml5 doesn't work without using a server. Edit 2: you can check this out: github.com/processing/p5.js/wiki/Local-server
@eyalhamtsany9472
@eyalhamtsany9472 4 жыл бұрын
Hi.. For some reason - my NN does not train properly... Only when I give it one image of each type - the training curve drops down. Otherwise - it stays around 1.0... Not sure What I'm doing wrong here.... Getting the same results on Chrome and FireFox. (On IE or Edge it failed to run at all...) Any suggestions? Thanks!
@TheCodingTrain
@TheCodingTrain 4 жыл бұрын
Can you share the data you are using? You can join the Coding Train discord or the ml5 discord to get help! thecodingtrain.com/discord discord.gg/e2KA36N
@eyalhamtsany9472
@eyalhamtsany9472 4 жыл бұрын
@@TheCodingTrain Thanks for your response! I've placed a post, along with my dataset, on the help-with-ml5 channel on the Discrd.
@ksokmesa
@ksokmesa 2 жыл бұрын
Wonder work and so much appreciate this video. I am curious to know if I can use other language to work on the generated model. I am a newbie to deep learning and it will be very helpful to get thing done in python
@lavrion6025
@lavrion6025 4 жыл бұрын
Hello, I've learnt a lot from your videos. May I ask for reinforcement learning tutorial?
@ibrahimaba8966
@ibrahimaba8966 4 жыл бұрын
Good. I will make the same project in python today. Thanks...! 😊.
@SurrealBackrooms
@SurrealBackrooms 4 жыл бұрын
How did it go?
@ibrahimaba8966
@ibrahimaba8966 4 жыл бұрын
@@SurrealBackrooms Hi, i finished the project in python and i extened it on mnist data in order to have a real time digit recognition. My idea is to build a smart virtual board. Now i am trying to add operator recognition such as add, subtract, multiply etc...!
@nadavazari3060
@nadavazari3060 3 жыл бұрын
when im running it on my pc it works, but when im trying to run it on my mac it says Based on the provided shape, [1,64,64,4] the tensor should have 16384 values but has 65536. its the exact same code, what can i do?
@chrismanning5232
@chrismanning5232 4 жыл бұрын
You should've done some squished ellipses for the circle training set.
@TheCodingTrain
@TheCodingTrain 4 жыл бұрын
ah, great point!
@sohailahmed7462
@sohailahmed7462 Жыл бұрын
Can i train the data set for shapes in google collab, or sir can u provide me the code for circle triangle and square to train the data set.
@SaYoOox
@SaYoOox 2 жыл бұрын
I really liked the video, just wondering is there a tutorial for the same thing in python? or if you know a paper that can help i would be gladful
@michaelarnold3947
@michaelarnold3947 4 жыл бұрын
How many layers and neurons use the neural network?
@SalimAli-bs8oy
@SalimAli-bs8oy 3 жыл бұрын
I'm trying to replicate this project in Python but I can't seem to find what the default learning rate is in ml5.js, does anyone happen to have this information?
@Roknok
@Roknok 4 жыл бұрын
I just want to ask that can the same thing be done with the neural network you made? I had followed you in that big series🙂. Btw I enjoyed a lot
@jameerlawrencebondoc8162
@jameerlawrencebondoc8162 3 жыл бұрын
Circle, Triangle, Square, they all look familliar... AYO THEY'RE FROM SQUID GAME!!!!!!
@mobilelegendbachaoibaba7875
@mobilelegendbachaoibaba7875 Жыл бұрын
Can we also train like letters specially for me ? Example are O, L, P, and X ? O eggs, L larva P pupa X Butterfly. Thanks in advance.
@sukursukur3617
@sukursukur3617 4 жыл бұрын
How a circle shape is far to a square shape?
@anasadeelallawala4156
@anasadeelallawala4156 3 жыл бұрын
very interesting
@fadlisabda
@fadlisabda 4 жыл бұрын
Hi iam fans you from Indonesia
@aradhyabasak1610
@aradhyabasak1610 2 жыл бұрын
How this nf() work.
@taureanwooley
@taureanwooley 4 жыл бұрын
Switch statement. Don't retire on me dude!
@taureanwooley
@taureanwooley 4 жыл бұрын
you could fix the video recognition system by post processing the image for black and white and then auto correcting the contrast resolution (meaning constrast variables, from darkest to lightest)
@KTN__69
@KTN__69 4 жыл бұрын
i am the 101 liker of the video.... don't hate me i am like the first guy but late but in perfect time but still late
@shaileshrana7165
@shaileshrana7165 4 жыл бұрын
AMAZEBALLS
@aronmeeus
@aronmeeus 4 жыл бұрын
very nice
@humanoidx977
@humanoidx977 4 жыл бұрын
OH NO THAT WORKs!!!
@louaykhammar7268
@louaykhammar7268 2 жыл бұрын
thanks
@preetipanchal6422
@preetipanchal6422 4 жыл бұрын
The best coding challenge make something in unity to dan
@mzakyr342
@mzakyr342 2 жыл бұрын
how p5 js in html
@ThuanNguyen-wp8rj
@ThuanNguyen-wp8rj 3 жыл бұрын
Elip ?
@lankymoose1831
@lankymoose1831 4 жыл бұрын
Cool i can track everyone in my school now
@akay9030
@akay9030 4 жыл бұрын
Bring back the professor look
@csicee
@csicee 4 жыл бұрын
What language?
@subhamkumar7424
@subhamkumar7424 4 жыл бұрын
please make machine learning in python coding videos please i am requesting you can make anything easy to understand .
@el_chivo99
@el_chivo99 4 жыл бұрын
hi Dan, I recently worked on a project similar to this, except I generate Hangul characters (Korean script) instead of shapes. One thing I found that helped was to apply elastic transformations (gist.github.com/fmder/e28813c1e8721830ff9c ) to the images! Maybe give this a try!
@ashihsprajapati6739
@ashihsprajapati6739 4 жыл бұрын
Hello Sir I have Question How can i convert flat image to curved image. Here is website link who convert flat to curved fontmeme.com/bend-images/ . i want to result flat to curved then stick the image on bottle using javascript.
@nosknut
@nosknut 4 жыл бұрын
14:15 When you have no typesafety :P
@xdasdaasdasd4787
@xdasdaasdasd4787 4 жыл бұрын
I think you not using blank paper didn't help with it recognising the shapes
@MrThetronica
@MrThetronica 4 жыл бұрын
Not a pound. Not a hashtag. That be an octothorpe.
@fire17102
@fire17102 4 жыл бұрын
@TheCodingTrain
@BrunnerNathan
@BrunnerNathan 4 жыл бұрын
Hold up, you can do all these things in Javascript 0_0
@irfanbaharudin469
@irfanbaharudin469 3 жыл бұрын
SQUID GAME
@toastyPredicament
@toastyPredicament 2 жыл бұрын
I compiled Unreal
@HazardOfExistance
@HazardOfExistance 4 жыл бұрын
Octothorpes
@maksymdudyk1718
@maksymdudyk1718 4 жыл бұрын
I got interested. I know JS, php, OOP, sql, node.js. But I could not understand a thing from this your video.
@dingdong3021
@dingdong3021 4 жыл бұрын
Its the framework
@nbgarrett88
@nbgarrett88 4 жыл бұрын
A bug in debug. Classic.
@toastyPredicament
@toastyPredicament 2 жыл бұрын
Bappu
@thecscontent5110
@thecscontent5110 4 жыл бұрын
I also do videos about programming!😁
@madwilliamflint
@madwilliamflint 4 жыл бұрын
Phew, turn it down a hair dude.
ml5.js: Classifying Drawings with DoodleNet
12:03
The Coding Train
Рет қаралды 24 М.
Coding Challenge 180: Falling Sand
23:00
The Coding Train
Рет қаралды 1 МЛН
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
PirateSoftware is right, this needs to stop
15:14
Theo - t3․gg
Рет қаралды 52 М.
2024's Biggest Breakthroughs in Math
15:13
Quanta Magazine
Рет қаралды 387 М.
Neural Network Learns to Play Snake
7:14
Greer Viau
Рет қаралды 4,5 МЛН
Why You Should Think Twice Before Using Returns in Python
21:27
ArjanCodes
Рет қаралды 43 М.
I Made an Electronic Chessboard Without Turns
14:32
From Scratch
Рет қаралды 1 МЛН
Coding Challenge #142: Rubik's Cube Part 1
23:48
The Coding Train
Рет қаралды 403 М.
Google’s Quantum Chip: Did We Just Tap Into Parallel Universes?
9:34
2024's Biggest Breakthroughs in Computer Science
10:47
Quanta Magazine
Рет қаралды 165 М.
Neural Network Architectures & Deep Learning
9:09
Steve Brunton
Рет қаралды 803 М.
Coding Challenge 168: MandelBulb 3D Fractal
28:02
The Coding Train
Рет қаралды 377 М.
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН