• This repository has been archived on 06/Apr/2020
  • Stars
    star
    621
  • Rank 69,441 (Top 2 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created about 6 years ago
  • Updated about 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A collection of ml5.js examples

NOTE: This repository is archived and its contents have been moved into the core ml5-library repository. If you have an outstanding issue or pull request on this repository, please open it on ml5-library. Please feel free to read more and follow updates on issue #809 and pull request #831. You can view the examples index site at https://examples.ml5js.org.


ml5 Examples

Description

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.

Examples are organized into folders according to their integration with other JavaScript libraries.

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).

Instead of using the CDN links to p5 and ml5, you can download the p5.js libraries here and ml5 library here.

Setup

Step 1: or clone this repository:

Open your terminal and type:

# clone the repo or download the zip file
git clone https://github.com/ml5js/ml5-examples.git

Step 2: start a local development server

Open your terminal

# change directories
cd ml5-examples

# install the dependencies
npm install

# run the local web server
npm run develop

# you should be able to run the examples at: 
# localhost:8082

If you don't know how to start a server, check this guide on how to start a local web server.

Usage

Open your terminal

# change directories
cd ml5-examples

# run the local web server
npm run develop

# you should be able to run the examples at: 
# localhost:8082

Examples Index

Contributing

See CONTRIBUTING.MD

Contributors

More Repositories

1

ml5-library

Friendly machine learning for the web! ๐Ÿค–
JavaScript
6,353
star
2

Intro-ML-Arts-IMA-F19

Syllabus for Introduction to Machine Learning for the Arts at IMA / Tisch / NYU.
JavaScript
167
star
3

ml5-data-and-models

Data sets and pre-trained models for ml5.js
125
star
4

training-charRNN

Training charRNN model for ml5js
Python
97
star
5

training-styletransfer

Style Transfer training and using the model in ml5js
Python
72
star
6

Intro-ML-Arts-IMA-F20

Introduction to Machine Learning for the Arts, IMA, Tisch School of the Arts, New York University, Fall 2020
JavaScript
68
star
7

ml5-website-v01

ml5.js website
JavaScript
64
star
8

Intro-ML-Arts-IMA-F21

Introduction to Machine Learning for the Arts, IMA, Tisch School of the Arts, New York University, Fall 2021
JavaScript
58
star
9

training-word2vec

How to train your own word2vec model for use with ml5.js
Python
45
star
10

ml5-website

ml5 website!
JavaScript
45
star
11

ml5-boilerplate

A basic html, css, javascript boilerplate for working building a project with ml5.js
HTML
42
star
12

Code-of-Conduct

The Code of Conduct establishes and communicates the commitment of the ml5.js community to uphold a key set of standards and obligations that aim to make ml5.js a friendly and welcoming environment to be a part of.
30
star
13

awesome-ml5js

Work In Progress - Awesome List for ml5js
28
star
14

ml5-data-and-models-server

A repo to download and serve data and models locally allowing ml5 to run without a web connection
JavaScript
27
star
15

pix2pix_models

A collection of pix2pix models
23
star
16

ml5-next-gen

A work-in-progress repo for the next generation of ml5.js
JavaScript
20
star
17

ml5-friendly-intro-to-ml

A friendly introduction to ml5 for ITP Camp 2019
JavaScript
15
star
18

ml5-friendly-intro-to-ml-2019f

A friendly introduction to machine learning and ml5.js - workshop
14
star
19

Intro-ML-Arts-IMA-F22

About Introduction to Machine Learning for the Arts, IMA, Tisch School of the Arts, New York University, Fall 2022
JavaScript
11
star
20

Intro-ML-Arts-IMA-F23

About Introduction to Machine Learning for the Arts, IMA, Tisch School of the Arts, New York University, Fall 2023
JavaScript
11
star
21

training_CVAE

This is the repo for training CVAE on images and use a model in tfjs or ml5js.
Python
9
star
22

ml5-homepage-demo

Code for ml5js.org drag and drop image classification example (embedded as iframe)
JavaScript
6
star
23

ml5-adjacent

iframe embeds for the ml5 Adjacent article
JavaScript
3
star
24

training-pix2pix

Python
3
star