{"repo":"googlecreativelab/teachable-machine-boilerplate","free":true,"listed":false,"github":"https://github.com/googlecreativelab/teachable-machine-boilerplate","clone":"git clone https://github.com/googlecreativelab/teachable-machine-boilerplate.git","description":"Boilerplate code for Teachable Machine","language":"JavaScript","stars":522,"topics":["deeplearnjs","boilerplate"],"license":"Apache-2.0","category":"saas-starters-boilerplates","readme_excerpt":"Teachable Machine Boilerplate This is a small boilerplate project that demonstrates how to use tensorflow.js to create projects like Teachable Machine. The code shows how you can create a KNN classifier that can be trained live in the browser on a webcam image. It is intentionally kept very simple so it can provide a starting point for new projects. Behind the scenes, the image from the webcam is being processed by an activation of MobileNet. This network is trained to recognize all sorts of classes from the imagenet dataset, and is optimized to be really small, making it useable in the browser. Instead of reading the prediction values from the MobileNet network, we instead take the second to last layer in the neural network and feed it into a KNN (k-nearest neighbors) classifier that allows you to train your own classes. The benefit of using the MobileNet model instead of feeding the pixel values directly into the KNN classifier is that we use the high level abstractions that the neural network has learned in order to recognize the Imagenet classes. This allows us with very few samples to train a classifier that can recognize things like smiles vs frown, or small movements in your body. This technique is called Transfer Learning. Tensorflow has a built in model for doing this. It's called the KNN Classifier, and this boilerplate code shows how to easily use it. Use code To use the code, first install the Javascript dependencies by running Then start the local budo web server","default_branch":null,"files":null,"tree":[],"storefront":"/r/googlecreativelab","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/googlecreativelab/teachable-machine-boilerplate/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}