ml5.js: Pose Classification with PoseNet and ml5.neuralNetwork()

  Рет қаралды 73,586

The Coding Train

The Coding Train

Күн бұрын

Пікірлер: 116
@Victor-jz5xu
@Victor-jz5xu 5 жыл бұрын
21:24 "What? This actually works??" This is the title of my life as a programmer.
@AntonPanchishin
@AntonPanchishin 5 жыл бұрын
What's amazing is that the tools for doing stuff like this were only created a few years ago, and more amazing is The Coding Train covering it in super approachable and fun videos :D
@Amr-Ibrahim-AI
@Amr-Ibrahim-AI 5 жыл бұрын
Dan! That was amazing. Thank you for your comprehensive videos that are encapsulated in your lovely spirit.
@leonardolins70
@leonardolins70 4 жыл бұрын
The best video I watched this year!!!! Congrats for the channel!!
@debrain1647
@debrain1647 4 жыл бұрын
My name is David From Nigeria, Honestly you have Trained me so far so well ...thanks alot ..I can easily communicate with Hardware Machines using Ml5.js and Microcontroller wifi over the internet. Sometimes i wonder if you sleep at all ! 🤔 Do you ? I Love your Works sir ,you are just a human God 💓
@poojayu9100
@poojayu9100 3 жыл бұрын
Sir plz take this project to the next level(connect the project to the front end) ... And explain us sir.... Sir please sir we need to now more so please do this... Your teaching is OSM sir.....
@franksonjohnson
@franksonjohnson 5 жыл бұрын
So hyped that you used YMCA! I literally just used that with Teachable Machine to show my mom why I was so excited about machine learning when I was home for christmas.
@geoffwagner4935
@geoffwagner4935 Жыл бұрын
This one was amazing to me, it was maybe one of my favorite moments, i've put a few of these together, and the toy neural network, but the target vs label, and what it's really doing were still a mistery, until i started mixing this challenges output json up, xD lollol with no labels, then adding them by mistake, that it really is just, getting it separated into those labels, targets, and outputs.
@tamfinlay
@tamfinlay 4 жыл бұрын
@3:10 "It doesn't have an ear" It actually does! leftEar and rightEar :)
@windigo000
@windigo000 5 жыл бұрын
i wish i had these visits from my future past to fix me blunders :D
@Skyhawk619
@Skyhawk619 4 жыл бұрын
How do I use JPEG images as the training data instead of using webcam footage?
@geoffwagner4935
@geoffwagner4935 Жыл бұрын
I have always wanted to do that, and just a webcam this has got be be the coolest version yet . kinect camera and greeen dots is where my dreams of that one left off xD lol
@julianbullmagic
@julianbullmagic 3 жыл бұрын
This channel is awesome
@paramaggarwal
@paramaggarwal 4 жыл бұрын
This was very useful.
@jakubmichalenko7990
@jakubmichalenko7990 5 жыл бұрын
10:40 I thought that he is making ad for SHADOW RAID LEGEND GAMERR!!!!
@ICantScale90
@ICantScale90 5 жыл бұрын
Wow..you is the legend programer😆
@ozguozkan9342
@ozguozkan9342 3 жыл бұрын
Hi, thanks for this amazing code and this amazing teaching, but i have a question i get an Error which says 'ReferenceError: y is not defined' i get this error both when i am writing it on my own and getting the code from your git. How can i solve this problem? and again thank you for making such an amazing job as teaching.
@Shivamu98
@Shivamu98 4 жыл бұрын
When training with teachable machines, the bin size increases and goes beyond 5.6 MB and the max upload size on p5 web editor is 5 MB. How do I resolve this issue?
@parikshitrajput1884
@parikshitrajput1884 4 жыл бұрын
Try clicking on the video which is displayed in the preview and then press any key to start collecting. It worked for me.
@Shivamu98
@Shivamu98 4 жыл бұрын
@@parikshitrajput1884 I'm asking abt the situation when I'm uploading on p5 web editor, the trained data
@antonv13
@antonv13 Жыл бұрын
@@Shivamu98 and 2 year later, did you solve this?
@OmkarK-n2w
@OmkarK-n2w Жыл бұрын
Hello Sir Thanks for the Amazing Video, Had a small doubt is it somehow possible to change the model at run time like loading with different model. Like Having Multiple Models and for each specific case need new model Please Guide
@rojanbasnet3770
@rojanbasnet3770 4 жыл бұрын
brain.data.normalize() is not working and brain.normalizeData() is not working either /// Error: Error in oneHot: depth must be >=2, but it is 1
@Ninjacowxtpj
@Ninjacowxtpj 4 жыл бұрын
When I try to use my saved Data, Error shows up - saying : "Uncaught TypeError: Cannot read property 'split' of undefined". It is something with JSON file :S please, HELP!
@wondered_wanderings6250
@wondered_wanderings6250 3 жыл бұрын
same issue
@SGNewWay
@SGNewWay 2 жыл бұрын
hello, a have this error, Error: Error: Error in oneHot: depth must be >=2, but it is 1. in Pose Classifier - Model Training . I try train 5 letters
@ashleyherr
@ashleyherr Жыл бұрын
did you ever work this out? im having the same issue
@CarlosNeira1
@CarlosNeira1 4 жыл бұрын
Hi, in the 5:20 how charge this data, or where put the link. There is a tutorial that shows how to do this but with the teachable machine data? Thanks for the videos.
@parthghughriwala6799
@parthghughriwala6799 4 жыл бұрын
you can record data in teachable machine and download image samples
@Shivamu98
@Shivamu98 4 жыл бұрын
@@parthghughriwala6799 when downloading the data from teachable machine .bin size goes to 5.7 MB but in p5 web editor the max upload size is 5 MB
@CarlosNeira1
@CarlosNeira1 4 жыл бұрын
@@parthghughriwala6799 ok, but load the model whit the link and send this Error: Error when checking : expected dense_Dense1_input to have 2 dimension(s), but got array with shape [1,224,224,3]
@kiljeaden767
@kiljeaden767 5 жыл бұрын
Excellent video, however i would really like to know what is the music when the video is fast forwarded please
@joesmith9330
@joesmith9330 5 жыл бұрын
I LIKE THIS DAN .
@julian.kollataj
@julian.kollataj 4 жыл бұрын
Thank you! :D Love this!
@cheezcola
@cheezcola 4 жыл бұрын
Anyone else running into issues with saving the json with the brain.saveData()? doesn't seem to work on chrome/windows Seems like chrome is now blocking these downloads in the web editor. Gotta find a workaround :)
@brytlao
@brytlao 4 жыл бұрын
I have the same problem. brain.saveData() does nothing for me. Did you manage to find a workaround?
@ricksmith261
@ricksmith261 4 жыл бұрын
I am having the same issue
@brytlao
@brytlao 4 жыл бұрын
@@ricksmith261 We brought this up with the folks at p5js. They actually fixed the code in github, but it still seems to be not working. As a workaround, I open it in presentation mode (File->Share->Present). You can check the github thread here: github.com/processing/p5.js-web-editor/issues/1443
@brytlao
@brytlao 4 жыл бұрын
good news! they fixed it :D github.com/processing/p5.js-web-editor/issues/1443
@enivaldobonelli
@enivaldobonelli 5 жыл бұрын
You can say that again: let Brain!
@rachmadimamtarecha5736
@rachmadimamtarecha5736 4 жыл бұрын
15:52 showing error in console "Uncaught (in promise) Error: Error in oneHot: depth must be >=2, but it is 1" please help, not showing error without brain.normalizeData();
@rachmadimamtarecha5736
@rachmadimamtarecha5736 4 жыл бұрын
This is the code _editor.p5js.org/rachmadimamtarecha/sketches/8pTbgF0lb
@林俊烨-v6y
@林俊烨-v6y 4 жыл бұрын
u should collect data of least 2 poses in that json file
@ahmadjaber6865
@ahmadjaber6865 3 жыл бұрын
What is the compiler you are using, please??
@nikal7884
@nikal7884 Жыл бұрын
Thank you for the video! It's great! I just do not get how you implement that when pressing the Y key you are collecting? When I press the Y key nothing happens :D Does anyone have an idea what I do wrong? thx
@FriziWoti
@FriziWoti Жыл бұрын
decrease the delays to 1000 and if you are getting reference error: dont write into the console. just click somewhere else on the screen and press a key
@lookinghouseco
@lookinghouseco 4 жыл бұрын
Hi Daniel, Thanks so much for this!! If I want to get the labels from the Teachable Machine pose estimation instead of creating an ml5 neural network, is there a way I can do that?
@Scueroinc
@Scueroinc 2 жыл бұрын
Yes
@Randomness960TVX
@Randomness960TVX 4 жыл бұрын
Hi all, i have an issue with posenet with ml5 and p5. There is a preloaded function that permit to export the keypoints ? How can i export the keypoints to JSON or CSV files?
@KodewithKomalP
@KodewithKomalP 3 жыл бұрын
Did you get the solution of exporting JSON and bin files?
@bryanphang5686
@bryanphang5686 4 жыл бұрын
Thanks for the awesome video! I having getting NaN when I try to print the confidence score under gotResult and hence I can't get the alphabet to change. Any idea what I can do to get a value or why am I getting NaN? Thank you!
@davidpilnik6502
@davidpilnik6502 4 жыл бұрын
even when you didnt make a letter, i.e your hands our down, still there is a prediction letter, and it have a big confidence, but it actually not close, there is a way to read the real probabity and to do not show cases like this? Thanks!
@maliksafwann
@maliksafwann 2 жыл бұрын
great video. I have a slight problem in recognizing the poses. My problem is that when it shows Y on the screen, if I do the pose Y it wont work, but if I do for example A it works. So on screen it shows Y buts its actually checking for A. How can I fix this?
@geoffwagner4935
@geoffwagner4935 Жыл бұрын
on the day that Dan actually dies, what may be strange and remarkable to some on how it happened may not be so strange and remarkable to others , and he probably will be remembered by many . actually dancing to ymca that was the saddest ending to a video yet, didn't see that coming
@juniorcastanedagarcia6078
@juniorcastanedagarcia6078 4 жыл бұрын
Amigo como le haces con la misma cámara del computador te hace la simulación?
@michalbarski8515
@michalbarski8515 4 жыл бұрын
hi ! great video, but i have a problem with the results[0].confidence it always prints NaN how can i fix it ?
@meluwu
@meluwu 3 жыл бұрын
Dear Sir, the code is great when I try it on notebook but when I try to train my poses data and using iphone and ipad with chrome to open the web page. It crash. And I try to saw your example part 1 is good, but part 2 (about load model ) was crash too. Did ml5.js don't support mobile device to load model ??
@agratapatel1
@agratapatel1 4 жыл бұрын
Hi hi, is there anything for hand movements instead of poses?
@muhammadafiqsyazwan8734
@muhammadafiqsyazwan8734 3 жыл бұрын
You use phyton ?
@maciejwojcik7226
@maciejwojcik7226 4 жыл бұрын
Is it possible to use trained posenet model for pose estimation in for instance in C++ ?
@beautysecret2339
@beautysecret2339 4 жыл бұрын
You are My hero
@tipsstudio9707
@tipsstudio9707 4 жыл бұрын
can you explain signlepost?? because i want to build a model in which i can give single image as input... i tried a lot but can't get solution also i tried your solution on github but did not work.. can you?
@nikitauikey9949
@nikitauikey9949 3 жыл бұрын
Can we check the accuracy, throughput of the model? If yes, then HOW?
@itsabi2205
@itsabi2205 Жыл бұрын
Hi! I was also trying to figure out the same. If you've got a solution for it, could you please share?
@ARVINDKUMAR-cp1vt
@ARVINDKUMAR-cp1vt 4 жыл бұрын
i try the same code for collecting data for my pose but it dosent work ...it download json file with this ...{"data":[]}. there is no pose data .
@zoheezus
@zoheezus 4 жыл бұрын
How different is this from OpenPose?
@animalsvibes4565
@animalsvibes4565 2 жыл бұрын
Awesome tutorial sir, but anybody knows how to put this p5.js ml5mjs to normal php website or a framework website like codeigniter or laravel?
@antonv13
@antonv13 Жыл бұрын
Hi! Does anyone have the code for this? Link is not working unfortunately.. Thanks! :)
@TheCodingTrain
@TheCodingTrain Жыл бұрын
Apologies, let me fix the description! thecodingtrain.com/tracks/ml5js-beginners-guide/ml5/7-posenet/2-pose-classifier
@antonv13
@antonv13 Жыл бұрын
@@TheCodingTrain Thanks a lot
@govindkatyura7485
@govindkatyura7485 5 жыл бұрын
I'm confuse about input data shape, if pose net get 5 point in first image and 3 point in next image 🤔
@TheCodingTrain
@TheCodingTrain 5 жыл бұрын
I sent all the points always even they aren't seen (the model makes an estimation no matter what, even if a poor one!)
@dominiksmeda7203
@dominiksmeda7203 5 жыл бұрын
How cool is this
@pcpixelart2370
@pcpixelart2370 4 жыл бұрын
Is it working if I use teachable machine instead doing it?
@Shivamu98
@Shivamu98 4 жыл бұрын
It's not happening becuz teachable machine gives a .bin size of 5.7MB but the max size we can upload on p5 editor is 5MB
@YilmazDurmaz
@YilmazDurmaz 4 жыл бұрын
A and M goes similar, Why? because PoseNet does not give data for fingers :) for both A and M , you have same shoulder-elbow-wrist movement where A is slightly higher than M. so is there a solution one might ask: PoseNet should be programmed to extract also fingers' position.
@azyfloof
@azyfloof 4 жыл бұрын
Young man, there's no need to feel down I said, young man, I'm sure your coding looks sound I said, young man, you can make it profound If you re-factor it later
@revtane9
@revtane9 4 жыл бұрын
when i download the code in the url, i get "fetch api cannot load" in console. anyone can help? thanks a lot
@TheCodingTrain
@TheCodingTrain 4 жыл бұрын
Can you join the discord and ask there? (Are you running a local server?) discord.gg/hPuGy2g
@revtane9
@revtane9 4 жыл бұрын
@@TheCodingTrain hi thanks I joined the discord but i cant leave a message. It says in the comment section
@revtane9
@revtane9 4 жыл бұрын
@@TheCodingTrain i have it worked with xampp. My question is how can i pose like a stretching and show a certain custom text that corresponds into the stretching pose
@eldanarashura3011
@eldanarashura3011 3 жыл бұрын
you could capture random motion labelling them unknown and adding them into your set. Upon unknown detection you could then print nothing. kudos though
@Luuk-q3c
@Luuk-q3c 4 жыл бұрын
First of all thanks for the great video! Here's my question. I keep tried press 's' key, saveData() in the 'all code' and 'Data collection code' , but it didn't worked. Is anybody got the same problem or can help how to solve it?
@ricksmith261
@ricksmith261 4 жыл бұрын
I am having the same issue, have you managed to fix it?
@Luuk-q3c
@Luuk-q3c 4 жыл бұрын
@@ricksmith261 No.. not yet
@pranilshinde3515
@pranilshinde3515 4 жыл бұрын
Fixed now ??
@madhavjariwala4548
@madhavjariwala4548 4 жыл бұрын
Try in Mozilla, I had the same problem but it works fine for me in Firefox.
@swaruptripathy9071
@swaruptripathy9071 4 жыл бұрын
Try clicking on the video which is displayed in the preview and then press 's' key
@gururajmoger8649
@gururajmoger8649 5 жыл бұрын
Pls so long live tutorial on typescript promise and service for all methods with some apis..
@TheSaintsVEVO
@TheSaintsVEVO 4 жыл бұрын
Once you have a setTimeOut()-shaped hammer, every problem looks like a nail. 😂
@Potato-rv5yu
@Potato-rv5yu 2 жыл бұрын
Hi I have a question, I want to put these things into django but it shows Not Found: /catalog/projects/model.weights.bin how can i fix it please
@kumar_sham
@kumar_sham 5 жыл бұрын
nice
@felixbruggemann4438
@felixbruggemann4438 4 жыл бұрын
you now have covered how to estimate a pose in an neuralnetwork with the outputs of posenet, but its all static. Can u cover how to detect sth like a waving hand or someone running or walking based on the speed. Would be great!
@anastasiiavibe4112
@anastasiiavibe4112 4 жыл бұрын
Hello, can you add Russian to the subtitles in all videos?
@geoffwagner4935
@geoffwagner4935 Жыл бұрын
Brutal
@vickyparihar7665
@vickyparihar7665 5 жыл бұрын
I think i am on time ..😇
@Slinx92OLD
@Slinx92OLD 5 жыл бұрын
3:37 "YMCA"
@arnavsirigere2877
@arnavsirigere2877 5 жыл бұрын
5:33 Spaghetti dance 🍝
@MisterYoupinet
@MisterYoupinet 3 жыл бұрын
-Let's go slower... Me: speed = 1.75; loop from 22:28
@davidsnyder518
@davidsnyder518 5 жыл бұрын
Did I miss the premiere?
@clipi_
@clipi_ 5 жыл бұрын
I missed it too :/
@joesmith9330
@joesmith9330 5 жыл бұрын
SO Y MEANS ALL THE MOTORS IN THE ROBOT GO TO THEIR Y POSITION . SO COPY ALL THE LETTERS FROM THE POSES AND THE ROBOT DOES WHAT I DO .
@jasonlabbe3d
@jasonlabbe3d 5 жыл бұрын
How is everyone finding the editing of this video compared to older videos? I'm finding it distracting and sometimes a bit jarring as it constantly speeds up with music and pops to new points. I kind of miss the slower pace. Coding Train still rocks my socks!
@TheCodingTrain
@TheCodingTrain 5 жыл бұрын
Thanks for this feedback, I'm experimenting with a lot of new ideas and it's really useful to know what works / doesn't work. I might suggest joining the discord if you want to discuss further and gauge what the preferences of the community are? discord.gg/hPuGy2g
@ronen6020
@ronen6020 4 жыл бұрын
@@TheCodingTrain Thanks for great videos!! Do you know why it is not running on Firefox & Edge browsers?
@geoffwagner4935
@geoffwagner4935 Жыл бұрын
a "clown nosed", i probably had that one coming ......
@geoffwagner4935
@geoffwagner4935 Жыл бұрын
i have no idea why this worked either after this paste job
@MrPDTaylor
@MrPDTaylor 5 жыл бұрын
Coding Train is behind hosted by a robot.
@JasonStillwell
@JasonStillwell 3 жыл бұрын
So much grey since the last video.
@ahmadyogi1340
@ahmadyogi1340 5 жыл бұрын
Is this a jojo reference?
@tamfinlay
@tamfinlay 4 жыл бұрын
I got data capture working for two people - editor.p5js.org/tambuildsthings/sketches/Jlx7ujqV
@nicnakpattywhack5784
@nicnakpattywhack5784 5 жыл бұрын
YMCA
@sabriath
@sabriath 4 жыл бұрын
I have a coding challenge for you. 1. create a program that looks like stock on the market. Example: i.imgur.com/3RERXOf.png How I did it was rather easy, at the beginning of the "day" a random number between 0.46 and 0.54 was chosen, this was the bias for that day (effectively 50/50 given infinite time). Next another number was chosen at random but with 3 possibilities, between 200-300, 600-900, and 1800-2200 (32%/64%/4% respectively), which was the "volume." A loop was repeated "volume" times which would decide randomly between [0.0-1.0), and test this against the bias....if it were below the bias, it would reduce the "stock" by 0.01, if it were above, it would increase by 0.01. Each candle would be created just like any stock creates the candle, the open/close based on the starting/ending price of the stock for that day, and the high/low based on the high/low seen for the day. Overnight, there would be a 200 iterated loop of 50/50 to change the price for the next day's open (which gives the ability to create "gaps"). 2. build an indicator that takes the "ATR" (average true range) of this fake stock over time (14 bar moving)....this should be the easiest, I'll even give you the calculation: atr[x] = (max(high - low, abs(high - close[x-1]), abs(low - close[x-1])) + atr[x-1] * 13) / 14; 3. Now the hard part, using only these data points (open, close, high, low, atr, volume), along with inputs (strike, days-to-expire/dte), construct an AI that will give you the optimal zero-sum cost of the call and put options. Meaning, a person who buys an option and another person who sells the same option, would both (on average) end up with no profit and no loss. We are entering an age where trades are free, so we do not have to worry about any other costs. So you don't have to look it up: Call option - buyer makes money if it expires above the strike price, seller gets money upfront but has to pay the difference at expiration if it is above strike price. Put option - same but if price is below strike instead Train the AI on many variations of fake stocks until it can be at or above 98% accurate.....I will donate $50 to your channel if you can send me the net and it is verified to backtest. I do NOT want black-scholes model, it isn't accurate enough. Feel free to add more indicators if you need to get the accuracy up, but please include them with the net. Thanks. :)
ml5.js: Pose Regression with PoseNet and ml5.neuralNetwork()
18:25
The Coding Train
Рет қаралды 36 М.
Coding Challenge 158: Shape Classifier Neural Network with ml5.js
36:03
The Coding Train
Рет қаралды 139 М.
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН
REAL or FAKE? #beatbox #tiktok
01:03
BeatboxJCOP
Рет қаралды 18 МЛН
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН
ml5.js: Training a Convolutional Neural Network for Image Classification
18:36
Coding Challenge 183: Paper Marbling Algorithm
32:10
The Coding Train
Рет қаралды 80 М.
ml5.js: Train a Neural Network with Pixels as Input
18:38
The Coding Train
Рет қаралды 39 М.
ml5.js: Train Your Own Neural Network
34:49
The Coding Train
Рет қаралды 105 М.
Webcam Tracking with Tensorflow.js
22:04
Siraj Raval
Рет қаралды 96 М.
Collisions Without a Physics Library! (Coding Challenge 184)
31:05
The Coding Train
Рет қаралды 129 М.
Combining ml5 PoseNet and p5play to manipulate objects with my body - p5js
13:05
Coding Challenge 181: Weighted Voronoi Stippling
28:59
The Coding Train
Рет қаралды 179 М.
AI Body Language Decoder with MediaPipe and Python in 90 Minutes
1:32:40
Nicholas Renotte
Рет қаралды 88 М.
ml5.js 1.0 and Guest Conductor Patt Vira
55:14
The Coding Train
Рет қаралды 23 М.
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН