This repository contains a collection of examples using ml5.js. The examples are meant to serve as an introduction to the library and machine learning concepts.
For example, the
/p5js folder holds examples of using ml5.js with p5.js. All examples are self-contained and can be run independently. Libraries are loaded through a Content Delivery Network (CDN) and certain examples (indicated in code comments) download a machine learning model from a "cloud" url. This means that ml5 currently relies on an internet connection in order to retrieve pre-trained models (unless they are served locally).
Download or clone this repository:
git clone https://github.com/ml5js/ml5-examples.git
Change directory into the new folder and start a server. An easy way to start a server is with python. If you are have python 2:
cd ml5-examples python -m SimpleHTTPServer
If you are have python 3:
cd ml5-examples python -m http.server
If you don't know how to start a server, check this guide.
Below is the current
release examples index:
p5.js web editor examples
You can find all of our examples here:
NOTE: not all of the ml5.js examples are currently working on the p5.js web editor. Stay tuned for updates!
Thanks goes to these wonderful people (emoji key):
This project follows the all-contributors specification. Contributions of any kind welcome!