• This repository has been archived on 06/Apr/2020
  • Stars
    star
    626
  • Rank 71,755 (Top 2 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 6 years ago
  • Updated over 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,459
star
2

Intro-ML-Arts-IMA-F19

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

ml5-data-and-models

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

training-charRNN

Training charRNN model for ml5js
Python
96
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

ml5-next-gen

Repo for next generation of ml5.js: friendly machine learning for the web! πŸ€–
JavaScript
55
star
10

training-word2vec

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

ml5-website-archive

ml5 website!
JavaScript
45
star
12

ml5-boilerplate

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

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.
31
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
29
star
15

awesome-ml5js

Work In Progress - Awesome List for ml5js
28
star
16

pix2pix_models

A collection of pix2pix models
23
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

Intro-ML-Arts-IMA-F24

Syllabus for IMA Fall 2024 Course
8
star
23

ml5-homepage-demo

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

ml5-adjacent

iframe embeds for the ml5 Adjacent article
JavaScript
3
star
25

training-pix2pix

Python
3
star
26

ml5-website-v02-docsify

This repository is a work-in-progress website, containing documentation and reference materials for the ml5.js library models.
1
star