Uploaded December 2020 | Updated November 2026, 12 hours ago
In this challenge, I demonstrate the entire process of training and deploying a machine learning classification model in JavaScript -- data collection, model training, and prediction! π» Code: thecodingtrain.com/challenges/158-shape-classifier
π₯ ml5.js: DoodleNet: youtu.be/ABN_DWnM5GQ
Links discussed in this video:
π Processing: processing.org
π p5.js Web Editor: editor.p5js.org
π ml5.js Loading a pre trained model: learn.ml5js.org/#/reference/neural-network?id=loading-a-pre-trained-model
π p5.js copy() reference: p5js.org/reference/#/p5.Image/copy
π DoodleNet (GitHub): github.com/yining1023/doodleNet
Other videos mentioned in this video:
π₯ Workflow Series: youtube.com/playlist?list=PLRqwX-V7Uu6Zu_uqEA6NqhLzKLACwU74X
π₯ ml5.js: Training a CNN for Image Classification: youtu.be/hWurN0XhzLY
π₯ ml5.js: Train a Neural Network with Pixels as Input: youtu.be/UaKab6h9Z0I
π₯ ml5.js: Train Your Own Neural Network: youtu.be/8HEgeAbYphA
π₯ ml5.js: What is a Convolutional Neural Network?: youtu.be/qPKsVAI_W6M
π₯ ml5.js: Save Neural Network Trained Model: youtu.be/wUrg9Hjkhg0
π₯ Quick, Draw! - Coding Challenge #122: youtu.be/yLuk0twx8Hc
Timestamps:
0:00 Introduction
1:33 Generating the dataset in Processing
5:50 Loading images in p5.js
8:34 Create a ml5 neural network
10:54 Adding the data
12:39 About training the model
13:53 Test training
15:21 Training with full dataset
16:44 Improving the dataset
18:20 Saved model
19:01 Separate sketch for prediction
19:40 Loading the model
21:13 Testing the model with shapes drawn in p5.js
24:41 Mouse drawn shapes
31:01 Using a webcam and a notebook
33:49 Wrap up
34:33 What's next?
π Website: thecodingtrain.com
πΎ Share Your Creation! thecodingtrain.com/Guides/community-contribution-guide.html
π© Suggest Topics: github.com/CodingTrain/Rainbow-Topics
π‘ GitHub: github.com/CodingTrain
π¬ Discord: discord.gg/hPuGy2g
π Membership: youtube.com/thecodingtrain/join
π Store: standard.tv/codingtrain
π Books: amazon.com/shop/thecodingtrain
ποΈ Twitter: twitter.com/thecodingtrain
πΈ Instagram: instagram.com/the.coding.train
π₯ Coding Challenges: youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
π₯ Intro to Programming: youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA
π p5.js: p5js.org
π p5.js Web Editor: editor.p5js.org
π Processing: processing.org
π Code of Conduct: github.com/CodingTrain/Code-of-Conduct
In this challenge, I demonstrate the entire process of training and deploying a machine learning classification model in JavaScript -- data collection, model training, and prediction! π» Code: thecodingtrain.com/challenges/158-shape-classifier
π₯ ml5.js: DoodleNet: youtu.be/ABN_DWnM5GQ
Links discussed in this video:
π Processing: processing.org
π p5.js Web Editor: editor.p5js.org
π ml5.js Loading a pre trained model: learn.ml5js.org/#/reference/neural-network?id=loading-a-pre-trained-model
π p5.js copy() reference: p5js.org/reference/#/p5.Image/copy
π DoodleNet (GitHub): github.com/yining1023/doodleNet
Other videos mentioned in this video:
π₯ Workflow Series: youtube.com/playlist?list=PLRqwX-V7Uu6Zu_uqEA6NqhLzKLACwU74X
π₯ ml5.js: Training a CNN for Image Classification: youtu.be/hWurN0XhzLY
π₯ ml5.js: Train a Neural Network with Pixels as Input: youtu.be/UaKab6h9Z0I
π₯ ml5.js: Train Your Own Neural Network: youtu.be/8HEgeAbYphA
π₯ ml5.js: What is a Convolutional Neural Network?: youtu.be/qPKsVAI_W6M
π₯ ml5.js: Save Neural Network Trained Model: youtu.be/wUrg9Hjkhg0
π₯ Quick, Draw! - Coding Challenge #122: youtu.be/yLuk0twx8Hc
Timestamps:
0:00 Introduction
1:33 Generating the dataset in Processing
5:50 Loading images in p5.js
8:34 Create a ml5 neural network
10:54 Adding the data
12:39 About training the model
13:53 Test training
15:21 Training with full dataset
16:44 Improving the dataset
18:20 Saved model
19:01 Separate sketch for prediction
19:40 Loading the model
21:13 Testing the model with shapes drawn in p5.js
24:41 Mouse drawn shapes
31:01 Using a webcam and a notebook
33:49 Wrap up
34:33 What's next?
π Website: thecodingtrain.com
πΎ Share Your Creation! thecodingtrain.com/Guides/community-contribution-guide.html
π© Suggest Topics: github.com/CodingTrain/Rainbow-Topics
π‘ GitHub: github.com/CodingTrain
π¬ Discord: discord.gg/hPuGy2g
π Membership: youtube.com/thecodingtrain/join
π Store: standard.tv/codingtrain
π Books: amazon.com/shop/thecodingtrain
ποΈ Twitter: twitter.com/thecodingtrain
πΈ Instagram: instagram.com/the.coding.train
π₯ Coding Challenges: youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
π₯ Intro to Programming: youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA
π p5.js: p5js.org
π p5.js Web Editor: editor.p5js.org
π Processing: processing.org
π Code of Conduct: github.com/CodingTrain/Code-of-Conduct

![Spring Show 2021 in SpatialChat (ITP/IMA/IMA Low Res)
Connect with the students LIVE in a science fair style show! Meet students and view project demos in SpatialChat, a multiuser 2D-platform. Ill be live broadcasting my experience at the show but you can join yourself! https://spatial.chat/s/springshow2021
Register for this event, and youβll be emailed the link when the event starts. Or, check our website for the event link at 8pm ET. https://itp.nyu.edu/show
The [ITP/IMA/Low Res] Spring Show 2021
Monday May 17 β Tuesday May 18
A Festival of the Recently Possible
Please join us! The events are free and open to the public.
All student projects will be exhibited in the YORB Gallery starting Monday May 17 [Morning]. Watch Live Performances on Monday May 17 [Night]. Meet the creators and learn more about their work at The Show on Tuesday May 18 [Night]. All details below.
Learn how to attend the events here: https://itp.nyu.edu/shows/spring2021/schedule/
We encourage you to register to add the events to your calendar and to receive event links on the day of. However registration is not required to attend all event links will go live here on our website each day.
π» https://thecodingtrain.com/CodingChallenges
π» https://editor.p5js.org/codingtrain/sketches/
π Website: http://thecodingtrain.com/
π Patreon: https://patreon.com/codingtrain
π Store: https://standard.tv/codingtrain
π Books: https://www.amazon.com/shop/thecodingtrain
π¬ Discord https://discord.gg/codingtrain
π₯ Coding Challenges: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
π₯ Intro to Programming: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA
π p5.js: https://p5js.org
π Processing: https://processing.org Spring Show 2021 in SpatialChat (ITP/IMA/IMA Low Res)](https://i.ytimg.com/vi/3njRN7xM7C0/mqdefault.jpg)








