Skip to content
This repository was archived by the owner on Apr 6, 2020. It is now read-only.

Commit 65e1244

Browse files
authored
[minor release] V0.4.2 (#233)
* Adds face-api demos (#161) * added face-expressions demo * added classifyExpressionsMultiple * rm model files and model path requirement * added face landmarks example * clean up example * rm options in example * added local models example * changed function names * updated examples to use .detect() * rm translation * added image example of Frida * added detectSingle * updated image landmarks with landmarks.parts * refactored code friendly and changed colors * made ex friendly * changed options from withFaceX to withX * Structure examples directories for consistency (#170) * moved CVAE example to dir * moved dcgan to random for random space * moved sentiment to dir * moved word2vec to dir * moved files * rm p5 lib * match javascript example folder structure * Examples index page (#171) * added placeholder index.html and node script * adds ml5 index page * added latent vector example (#175) * Trying out some new example ideas for DCGAN latent vector * added simpler demo (#181) * moved index.html to /public (#182) * [In progress] Support for p5 Instance mode in ml5.js example (#160) * added bodypix_p5Instance * adds p5Instance mode example * [in progress] Adds plain javascript examples based on the p5 examples (#165) * added plain js bodypix examples * added cvae example * added dcgan example * added faceapi with landmarks // todo expressions * stashing changes for now * moved files * added yolo webcam plain js * added yolo image example * remove text on p5 * rm p5 scripts * adds bodyPix examples * wip expressions demo * adds faceapi expressions demo * adds charRNN_interactive example * added charRNN_test * added charRnn_text_stateful' * adds ImageClassification_Video_Load * added ImageClassification_DoodleNet_Canvas * added sentiment ex * adds unet example * add doodlenet_video - NOT WORKING * added posenet examples - NOT WORKING * added posenet_image_single * adds part selection example - NEEDS REVIEW * adds examples for posnet * added styletransfer video plainjs * added word2vec example * rm p5 ref * added sketchRnn basic example * added sketchRnn interactive * adds pix2pix example * add pix2pix promise * adds speech command * adds speech commands example * adds plain js pitchDetection * adds pitch game * format text * adds knn video example * adds knn classifier video example * adds knn classifier posenet * adds regressor fe * adds videosquare * adds sound example * adds piano ex * adds scavenger hunt - works only in chrome for now * adds video and sound example * adds doodlenet examples * adds multiple example * update bodypix examples * update cvae * adds updates to faceapi and dcgan * updates yolo * updats examples * adds teachable machine image classification example (#196) * rm expressions references in faceapi examples (#202) * adds live-server to npm scripts (#204) * update gh templates (#211) * Generic Neural Net Example (#164) * added example * added co2 net - WORK IN PROGRESS * updated model and loaded data from model * fix unNormalize * refactored code * added axes * added axes * added message about log transform * added legend in html * adds placeholder for titanic example * adds data, constructor, and laodData * adds normalize data function * adds training function * updates example * adds neural network training * Speculative Ideas about Titanic Example (#187) * speculative ideas with example * since it's classification is there a way to mirror other ml5 classification examples? * refactor of titanic example * Adds titanic example to match diy-nn-with-data (#188) * adds experimental csv and specified string as output * working with titanic * update examples - TODO: feed in normalized vals for titanic inputs * adds simple regression example placeholder * adds simple regression example * comments train with options * moves batchSize and epoch options * change to .classify() * updates co2 training sketch with predict vals from 0 - 1 * update to classify * updates basic -- broken * changes inputs and fixes undef. * changes data in basic * whitespace adjustments * some cleanup and ideas for titanic example * speculative port of color classifier example * rm shuffle() * updates color classifier example * change vals to arrays in .addData() * work on neural network color classifier (#190) * small adjustments for testing code with ml5js/ml5-library#574 * example cleanup todos * updates color classifier example to reflect current generic nn * Updating Titanic Example (#191) * redoing titanic example with final cleaned data from @lydiajessup * training is working but issue with predict and passing in strings * working with manually encoding of inputs to predict() * updates titanic sketch * porting tf.js XOR example from coding train challenge (#192) * porting tf.js XOR example from coding train challenge * adding learning rate * noting hiddenUnits variable * updating color classifier see: ml5js/ml5-library#581 * refactor titanic example * using label directly * logs not loss * trying values * moving sketch.js * update simple regression * updates regression sketch * update co2 example * update to use results.outputs * Refactors examples to match diy-nn-refactor branch (#195) * neural noteplayer example * example inspired by Eyeo 2019 Rebecca Fiebrink talk * rename musical mouse example * example tweaks and oscillator * adds refactoring examples * updates examples based in refactor * updates xor" * rm unused co2net * updates examples for regression * updates musical note example * adds experimental normalizationOptions * adds example of multi layered network * changes activations * adds simple classification example * changes .normalize() to .normalizeData() * updates all examples to handle array of .predict() or .classify() output * Pass over DIY interactive data examples (#198) * neural noteplayer example * example inspired by Eyeo 2019 Rebecca Fiebrink talk * rename musical mouse example * example tweaks and oscillator * musical face example * different interface for face example * mouse and pixels cleanup * musical face adjust to new API * code comments * low res pixel comments and naming * Clean-up of interactive neural network examples (#201) * neural noteplayer example * example inspired by Eyeo 2019 Rebecca Fiebrink talk * rename musical mouse example * example tweaks and oscillator * musical face example * different interface for face example * mouse and pixels cleanup * musical face adjust to new API * code comments * low res pixel comments and naming * comments and cleanup for face example * normalize automatically face * DIY Neural Network mouseXY classification example (#199) * neural noteplayer example * example inspired by Eyeo 2019 Rebecca Fiebrink talk * rename musical mouse example * example tweaks and oscillator * musical face example * different interface for face example * mouse and pixels cleanup * musical face adjust to new API * code comments * attempting DIY classification example * ? * fixes outputs and changes function to .classify() * posenet classification example * rm console.log * rm withExpressions in musical face * [diy nn] Updates examples to use labels for inputs/outputs (#205) * updates musical mouse and xy classifier with specific input/output labels * update titles * update text in co2net * adds load data function (#206) * adds xOR example with multiPredict (#207) * [WIP] DIY NN - examples for loading model (#210) * adds loadModel example * updates example showcasing issues * updated example to reflect current ml5-lib temp fix * Updates model_load example (#212) * adds loadModel example * updates example showcasing issues * updated example to reflect current ml5-lib temp fix * updates loading model example * rm faceapi examples with expressions (#213) * Updates bodypix examples to use preload() for p5js examples (#214) * adds preload example * updates bodypix to use preload() * Kmeans Image Segmentation Example (#215) * adds simple kmeans clustering example * code cleanup * change image size to 30 x 30 to run faster * changes ml5 version to 0.4.0 * updates public index * updates ml5 version and updater script * update npm script name" * adds 2019 * updates p5 to version 0.9.0 * sets localhost * Revising Teachable Machine Snippets (#218) * matching proposed TM snippets for image classification * sound example and refactoring to new TM folder * changing name to include URL * fix typo * adds flipped video (#219) * updates bodypix examples to reflect updated api (#225) * adds p5 batch uploader script * adds p5 batch uploader script (#227) * set ml to dev * adds background to unet * bumps version
1 parent 74cf803 commit 65e1244

File tree

127 files changed

+1218
-258
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

127 files changed

+1218
-258
lines changed

.env

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
GITHUB_ID=<add your info here>
2+
GITHUB_SECRET=<add your info here>
3+
ML5_EXAMPLES_USERNAME=ml5
4+
EDITOR_API_ACCESS_TOKEN=<p5 web editor access token>
5+
EDITOR_API_URL=https://editor.p5js.org/api/v1

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ p5js/00_ImageClassification_MultipleImages/images/landscapes_small
44
p5js/00_ImageClassification_MultipleImages/images/dataset
55
p5js/00_ImageClassification_MultipleImages/images/old
66
node_modules
7+
.env-dev

d3/KMeans/KMeans_GaussianClusterDemo/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<head>
33
<title>ml5.js kmeans example</title>
44
<script src="https://d3js.org/d3.v4.min.js"></script>
5-
<script src="https://unpkg.com/[email protected].1/dist/ml5.min.js" type="text/javascript"></script>
5+
<script src="https://unpkg.com/[email protected].2/dist/ml5.min.js" type="text/javascript"></script>
66
</head>
77
<body>
88
<center>

javascript/BodyPix/BodyPix_Image/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="UTF-8">
55
<title>BodyPix with Webcam</title>
6-
<script src="https://unpkg.com/[email protected].1/dist/ml5.min.js" type="text/javascript"></script>
6+
<script src="https://unpkg.com/[email protected].2/dist/ml5.min.js" type="text/javascript"></script>
77

88
<style></style>
99
</head>

javascript/BodyPix/BodyPix_Webcam/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="UTF-8">
55
<title>BodyPix with Webcam</title>
6-
<script src="https://unpkg.com/[email protected].1/dist/ml5.min.js" type="text/javascript"></script>
6+
<script src="https://unpkg.com/[email protected].2/dist/ml5.min.js" type="text/javascript"></script>
77

88
<style></style>
99
</head>

javascript/BodyPix/BodyPix_Webcam_Parts/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="UTF-8">
55
<title>BodyPix with Webcam</title>
6-
<script src="https://unpkg.com/[email protected].1/dist/ml5.min.js" type="text/javascript"></script>
6+
<script src="https://unpkg.com/[email protected].2/dist/ml5.min.js" type="text/javascript"></script>
77

88
<style></style>
99
</head>

javascript/CVAE/CVAE_QuickDraw/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1" >
66

77
<title>CVAE with quick_draw</title>
8-
<script src="https://unpkg.com/[email protected].1/dist/ml5.min.js" type="text/javascript"></script>
8+
<script src="https://unpkg.com/[email protected].2/dist/ml5.min.js" type="text/javascript"></script>
99
<script src="sketch.js"></script>
1010
</head>
1111

javascript/CharRNN/CharRNN_Interactive/index.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="UTF-8">
55
<title>Interactive CharRNN Text Generation Example</title>
6-
<script src="https://unpkg.com/[email protected].1/dist/ml5.min.js" type="text/javascript"></script>
6+
<script src="https://unpkg.com/[email protected].2/dist/ml5.min.js" type="text/javascript"></script>
77

88
<style></style>
99
</head>
@@ -12,9 +12,9 @@ <h1>Interactive CharRNN Text Generation Example</h1>
1212
<h2>This example uses a pre-trained model on a corpus of <a href="https://en.wikipedia.org/wiki/Virginia_Woolf">Virginia Woolf</a></h2>
1313
<textarea id="textInput" style="width: 300px; height: 50px;" placeholder="type here"></textarea>
1414
<br /> length:
15-
<input id="lenSlider" type="range" min="1" max="100" value="20" /> <span id="length">20</span>
15+
<input id="lenSlider" type="range" min="1" max="100" value="20" /> <span id="length">20</span>
1616
<br /> temperature:
17-
<input id="tempSlider" type="range" min="0" max="1" step="0.01" /><span id="temperature">0.5</span>
17+
<input id="tempSlider" type="range" min="0" max="1" step="0.01" /><span id="temperature">0.5</span>
1818
<p id="status">Loading Model</p>
1919
<p id="result">
2020
<span id="original"></span><span id="prediction"></span>

javascript/CharRNN/CharRNN_Text/index.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@
33
<head>
44
<meta charset="UTF-8">
55
<title>LSTM Text Generation Example</title>
6-
<script src="https://unpkg.com/[email protected].1/dist/ml5.min.js" type="text/javascript"></script>
6+
<script src="https://unpkg.com/[email protected].2/dist/ml5.min.js" type="text/javascript"></script>
77

88
</head>
99

1010
<body>
1111
<h1>LSTM Text Generation Example</h1>
1212
<h2>This example uses a pre-trained model on a corpus of <a href="https://en.wikipedia.org/wiki/Virginia_Woolf">Virginia Woolf</a></h2>
1313
<p>seed text:
14-
<input id="textInput" value="The meaning of life is" />
14+
<input id="textInput" value="The meaning of life is" />
1515
</p>
1616
<p>length:
17-
<input id="lenSlider" type="range" min="10" max="500" value="100" /> <span id="length">100</span></p>
17+
<input id="lenSlider" type="range" min="10" max="500" value="100" /> <span id="length">100</span></p>
1818
<p>temperature:
19-
<input id="tempSlider" type="range" min="0" max="1" step="0.01" /><span id="temperature">0.5</span></p>
19+
<input id="tempSlider" type="range" min="0" max="1" step="0.01" /><span id="temperature">0.5</span></p>
2020
<p id="status">Loading Model</p>
2121
<button id="generate">generate</button>
2222
<p id="result"></p>

javascript/CharRNN/CharRNN_Text_Stateful/index.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="UTF-8">
55
<title>Stateful CharRNN Text Generation Example</title>
6-
<script src="https://unpkg.com/[email protected].1/dist/ml5.min.js" type="text/javascript"></script>
6+
<script src="https://unpkg.com/[email protected].2/dist/ml5.min.js" type="text/javascript"></script>
77

88

99
<style></style>
@@ -15,10 +15,10 @@ <h1>Stateful CharRNN Text Generation Example</h1>
1515
<p>Instead of feeding every single character every frame to predict the next character, we feed only the last character, and instruct the CharRNN to remember its internal state.</p>
1616
<p>This example uses a pre-trained model on a corpus of <a href="https://en.wikipedia.org/wiki/Virginia_Woolf">Virginia Woolf</a></p>
1717
<p>seed text:
18-
<input id="textInput" value="The sky was blue and " />
18+
<input id="textInput" value="The sky was blue and " />
1919
</p>
2020
<p>temperature:
21-
<input id="tempSlider" type="range" min="0" max="1" step="0.01" /><span id="temperature">0.5</span>
21+
<input id="tempSlider" type="range" min="0" max="1" step="0.01" /><span id="temperature">0.5</span>
2222
</p>
2323
<p><button id="reset">Reset</button><button id="start">Start</button><button id="single">Single</button></p>
2424
<p id="status">Loading Model</p>

javascript/DCGAN/DCGAN_Random/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1">
66

77
<title>DCGAN Example</title>
8-
<script src="https://unpkg.com/[email protected].1/dist/ml5.min.js" type="text/javascript"></script>
8+
<script src="https://unpkg.com/[email protected].2/dist/ml5.min.js" type="text/javascript"></script>
99
<script src="sketch.js"></script>
1010
</head>
1111

javascript/FaceApi/FaceApi_Image_Landmarks/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="UTF-8">
55
<title>FaceApi Landmarks Demo</title>
6-
<script src="https://unpkg.com/[email protected].1/dist/ml5.min.js" type="text/javascript"></script>
6+
<script src="https://unpkg.com/[email protected].2/dist/ml5.min.js" type="text/javascript"></script>
77

88
<style></style>
99
</head>

javascript/FaceApi/FaceApi_Video_Landmarks/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="UTF-8">
55
<title>FaceApi Landmarks Demo</title>
6-
<script src="https://unpkg.com/[email protected].1/dist/ml5.min.js" type="text/javascript"></script>
6+
<script src="https://unpkg.com/[email protected].2/dist/ml5.min.js" type="text/javascript"></script>
77

88
<style></style>
99
</head>

javascript/FaceApi/FaceApi_Video_Landmarks_LocalModels/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="UTF-8">
55
<title>FaceApi Landmarks Demo With Local Models</title>
66

7-
<script src="https://unpkg.com/[email protected].1/dist/ml5.min.js" type="text/javascript"></script>
7+
<script src="https://unpkg.com/[email protected].2/dist/ml5.min.js" type="text/javascript"></script>
88

99
<style></style>
1010
</head>

javascript/FeatureExtractor/FeatureExtractor_Image_Classification/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<title>Image Classification using Feature Extraction with MobileNet</title>
66

77

8-
<script src="https://unpkg.com/[email protected].1/dist/ml5.min.js" type="text/javascript"></script>
8+
<script src="https://unpkg.com/[email protected].2/dist/ml5.min.js" type="text/javascript"></script>
99

1010
<style></style>
1111
</head>

javascript/FeatureExtractor/FeatureExtractor_Image_Regression/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="UTF-8">
55
<title>Image Regression using Feature Extraction with MobileNet.</title>
6-
<script src="https://unpkg.com/[email protected].1/dist/ml5.min.js" type="text/javascript"></script>
6+
<script src="https://unpkg.com/[email protected].2/dist/ml5.min.js" type="text/javascript"></script>
77

88

99
<style></style>
@@ -17,7 +17,7 @@ <h2>(Train a Neural Network to move the red square)</h2>
1717
</div>
1818
<h6><span id="modelStatus">Loading base model...</span> | <span id="videoStatus">Loading video...</span></h6>
1919
<p>
20-
<input type="range" name="slider" id="slider" min="0.01" max="1.0" step="0.01" value="0.5" />
20+
<input type="range" name="slider" id="slider" min="0.01" max="1.0" step="0.01" value="0.5" />
2121
</p>
2222
<br />
2323
<p>

javascript/ImageClassification/ImageClassification/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
<head>
44
<meta charset="UTF-8">
55
<title>Image Classification Example</title>
6-
<script src="https://unpkg.com/[email protected].1/dist/ml5.min.js" type="text/javascript"></script>
6+
<script src="https://unpkg.com/[email protected].2/dist/ml5.min.js" type="text/javascript"></script>
77
</head>
88

99
<body>
1010
<h1>Image classification using MobileNet</h1>
1111
<p>The MobileNet model labeled this as <span id="result">...</span> with a confidence of <span id="probability">...</span>.</p>
12-
<img src="images/bird.jpg" id="image" width="400" />
12+
<img src="images/bird.jpg" id="image" width="400" />
1313
<script src="sketch.js"></script>
1414
</body>
1515

javascript/ImageClassification/ImageClassification_DoodleNet_Canvas/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="UTF-8">
55
<title>Canvas Image Classification using DoodleNet</title>
6-
<script src="https://unpkg.com/[email protected].1/dist/ml5.min.js" type="text/javascript"></script>
6+
<script src="https://unpkg.com/[email protected].2/dist/ml5.min.js" type="text/javascript"></script>
77
<style></style>
88
</head>
99

javascript/ImageClassification/ImageClassification_DoodleNet_Video/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="UTF-8">
55
<title>Webcam Image Classification using DoodleNet</title>
6-
<script src="https://unpkg.com/[email protected].1/dist/ml5.min.js" type="text/javascript"></script>
6+
<script src="https://unpkg.com/[email protected].2/dist/ml5.min.js" type="text/javascript"></script>
77
</head>
88

99
<body>

javascript/ImageClassification/ImageClassification_MultipleImages/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="UTF-8">
55
<title>Multiple Image classification using MobileNet</title>
6-
<script src="https://unpkg.com/[email protected].1/dist/ml5.min.js" type="text/javascript"></script>
6+
<script src="https://unpkg.com/[email protected].2/dist/ml5.min.js" type="text/javascript"></script>
77
</head>
88

99
<body>

javascript/ImageClassification/ImageClassification_Video/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<title>Webcam Image Classification using MobileNet</title>
66

77

8-
<script src="https://unpkg.com/[email protected].1/dist/ml5.min.js" type="text/javascript"></script>
8+
<script src="https://unpkg.com/[email protected].2/dist/ml5.min.js" type="text/javascript"></script>
99
</head>
1010

1111
<body>

javascript/ImageClassification/ImageClassification_VideoScavengerHunt/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="UTF-8">
55
<title>Webcam Image Classification with Speech Output using MobileNet</title>
6-
<script src="https://unpkg.com/[email protected].1/dist/ml5.min.js" type="text/javascript"></script>
6+
<script src="https://unpkg.com/[email protected].2/dist/ml5.min.js" type="text/javascript"></script>
77

88
</head>
99

javascript/ImageClassification/ImageClassification_VideoSound/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="UTF-8">
55
<title>Webcam Image Classification with Speech Output using MobileNet</title>
6-
<script src="https://unpkg.com/[email protected].1/dist/ml5.min.js" type="text/javascript"></script>
6+
<script src="https://unpkg.com/[email protected].2/dist/ml5.min.js" type="text/javascript"></script>
77

88
</head>
99

javascript/ImageClassification/ImageClassification_Video_Load/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="UTF-8">
55
<title>Webcam Image Classification using a pre-trianed customized model</title>
6-
<script src="https://unpkg.com/[email protected].1/dist/ml5.min.js" type="text/javascript"></script>
6+
<script src="https://unpkg.com/[email protected].2/dist/ml5.min.js" type="text/javascript"></script>
77
</head>
88

99
<body>

javascript/KNNClassification/KNNClassification_PoseNet/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="UTF-8">
55
<title>PoseNet with KNN Classification on Webcam Images</title>
6-
<script src="https://unpkg.com/[email protected].1/dist/ml5.min.js" type="text/javascript"></script>
6+
<script src="https://unpkg.com/[email protected].2/dist/ml5.min.js" type="text/javascript"></script>
77

88
<style></style>
99
</head>

javascript/KNNClassification/KNNClassification_Video/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="UTF-8">
55
<title>KNN Classification on Webcam Images with mobileNet.</title>
6-
<script src="https://unpkg.com/[email protected].1/dist/ml5.min.js" type="text/javascript"></script>
6+
<script src="https://unpkg.com/[email protected].2/dist/ml5.min.js" type="text/javascript"></script>
77

88
<style></style>
99
</head>

javascript/KNNClassification/KNNClassification_VideoSound/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<title>KNN Classification on Webcam Images with Speech Output Using mobileNet.</title>
66

77

8-
<script src="https://unpkg.com/[email protected].1/dist/ml5.min.js" type="text/javascript"></script>
8+
<script src="https://unpkg.com/[email protected].2/dist/ml5.min.js" type="text/javascript"></script>
99

1010
<style></style>
1111
</head>

javascript/KNNClassification/KNNClassification_VideoSquare/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="UTF-8">
55
<title>KNN Classification on Webcam Images with mobileNet</title>
6-
<script src="https://unpkg.com/[email protected].1/dist/ml5.min.js" type="text/javascript"></script>
6+
<script src="https://unpkg.com/[email protected].2/dist/ml5.min.js" type="text/javascript"></script>
77

88
<style></style>
99
</head>

javascript/PitchDetection/PitchDetection/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="UTF-8">
55

66
<title>Pitch Detection</title>
7-
<script src="https://unpkg.com/[email protected].1/dist/ml5.min.js" type="text/javascript"></script>
7+
<script src="https://unpkg.com/[email protected].2/dist/ml5.min.js" type="text/javascript"></script>
88

99
</head>
1010

javascript/PitchDetection/PitchDetection_Game/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="UTF-8">
55
<title>Pitch Tone Game</title>
6-
<script src="https://unpkg.com/[email protected].1/dist/ml5.min.js" type="text/javascript"></script>
6+
<script src="https://unpkg.com/[email protected].2/dist/ml5.min.js" type="text/javascript"></script>
77

88
</head>
99

javascript/PitchDetection/PitchDetection_Piano/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="UTF-8">
55

66
<title>Pitch Detect Piano</title>
7-
<script src="https://unpkg.com/[email protected].1/dist/ml5.min.js" type="text/javascript"></script>
7+
<script src="https://unpkg.com/[email protected].2/dist/ml5.min.js" type="text/javascript"></script>
88

99
</head>
1010

javascript/Pix2Pix/Pix2Pix_callback/index.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="UTF-8">
55
<title>Pix2Pix Edges2Pikachu Example</title>
6-
<script src="https://unpkg.com/[email protected].1/dist/ml5.min.js" type="text/javascript"></script>
6+
<script src="https://unpkg.com/[email protected].2/dist/ml5.min.js" type="text/javascript"></script>
77

88
<style></style>
99
</head>
@@ -16,8 +16,8 @@ <h1>Pix2Pix Edges2Pichaku Example</h1>
1616
<p>4. You could click the "Clear" button to clear the canvas and draw again.</p>
1717
<p id="status">Loading Model... Please wait...</p>
1818

19-
<img id="inputImage" width="256px" src="images/input.png" alt="input image" />
20-
<img id="outputImage" width="256px" src="" alt="output image" />
19+
<img id="inputImage" width="256px" src="images/input.png" alt="input image" />
20+
<img id="outputImage" width="256px" src="" alt="output image" />
2121

2222
<div class="flex">
2323
<div>

javascript/Pix2Pix/Pix2Pix_promise/index.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="UTF-8">
55
<title>Pix2Pix Edges2Pikachu Example</title>
6-
<script src="https://unpkg.com/[email protected].1/dist/ml5.min.js" type="text/javascript"></script>
6+
<script src="https://unpkg.com/[email protected].2/dist/ml5.min.js" type="text/javascript"></script>
77

88
<style></style>
99
</head>
@@ -16,8 +16,8 @@ <h1>Pix2Pix Edges2Pichaku Example</h1>
1616
<p>4. You could click the "Clear" button to clear the canvas and draw again.</p>
1717
<p id="status">Loading Model... Please wait...</p>
1818

19-
<img id="inputImage" width="256px" src="images/input.png" alt="input image" />
20-
<img id="outputImage" width="256px" src="" alt="output image" />
19+
<img id="inputImage" width="256px" src="images/input.png" alt="input image" />
20+
<img id="outputImage" width="256px" src="" alt="output image" />
2121

2222
<div class="flex">
2323
<div>

javascript/PoseNet/PoseNet_image_single/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
<head>
44
<meta charset="UTF-8">
55
<title>PoseNet example on image with single detection</title>
6-
<script src="https://unpkg.com/[email protected].1/dist/ml5.min.js" type="text/javascript"></script>
6+
<script src="https://unpkg.com/[email protected].2/dist/ml5.min.js" type="text/javascript"></script>
77

88
</head>
99

1010
<body>
1111
<h1>PoseNet example on image with single detection</h1>
1212
<p id='status'>Loading model...</p>
13-
<img id="image" style="display:none" src="data/runner.jpg" alt="runner image" />
13+
<img id="image" style="display:none" src="data/runner.jpg" alt="runner image" />
1414
<canvas id="canvas"></canvas>
1515
<p>image via: <a href="https://www.pexels.com/photo/topless-man-wearing-grey-and-black-shorts-sprinting-on-concrete-road-1401796/" target="_blank">Pexels</a></p>
1616
<script src="sketch.js"></script>

javascript/PoseNet/PoseNet_part_selection/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="UTF-8">
55
<title>PoseNet Part Selection</title>
66

7-
<script src="https://unpkg.com/[email protected].1/dist/ml5.min.js" type="text/javascript"></script>
7+
<script src="https://unpkg.com/[email protected].2/dist/ml5.min.js" type="text/javascript"></script>
88

99
</head>
1010

0 commit comments

Comments
 (0)