by googlecreativelab

googlecreativelab / teachable-machine-v1

Explore how machine learning works, live in the browser. No coding required.

3.6K Stars 535 Forks Last release: Not found Apache License 2.0 20 Commits 0 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

Teachable Machine


Teachable Machine is an experiment that makes it easier for anyone to explore machine learning, live in the browser – no coding required. Learn more about the experiment and try it yourself on g.co/teachablemachine.

The experiment is built using the TensorFlow.js library.

We have also released a boilerplate version of this project that can be used as a starting point for your own projects: googlecreativelab/teachable-machine-boilerplate


Install dependencies by running (similar to
npm install


Build project

yarn build

Start local server by running

yarn run watch

Code Styles

  • There’s a pre-commit hook set up that will prevent commits when there are errors
  • Run
    yarn eslint
    for es6 errors & warnings
  • Run
    yarn stylint
    for stylus errors & warnings

To run https locally:

https is required to get camera permissions to work when not working with

  1. Generate Keys
    openssl genrsa -out server.key 2048
    openssl req -new -x509 -sha256 -key server.key -out server.cer -days 365 -subj /CN=YOUR_IP
  2. Use
    yarn run watch-https
  3. Go to
    , then accept the insecure privacy notice, and proceed.


This is not an official Google product, but an experiment that was a collaborative effort by friends from Støj, Use All Five and Creative Lab and PAIR teams at Google.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.