This repository has been archived by the owner on Apr 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 450
Makes Examples Mobile-friendly #217
Open
justsml
wants to merge
3
commits into
ml5js:release
Choose a base branch
from
justsml:patch-1
base: release
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,18 +2,16 @@ | |
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width"> | ||
<title>BodyPix with Webcam</title> | ||
<script src="https://unpkg.com/[email protected]/dist/ml5.min.js" type="text/javascript"></script> | ||
|
||
<style></style> | ||
<script src="sketch.js"></script> | ||
</head> | ||
|
||
<script src="sketch.js"></script> | ||
|
||
<body> | ||
<h1>BodyPix with Image</h1> | ||
<small>images via: https://commons.wikimedia.org</small> | ||
|
||
<h1>BodyPix with Image</h1> | ||
<small>images via: https://commons.wikimedia.org</small> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,13 +2,12 @@ | |
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width"> | ||
<title>BodyPix with Webcam</title> | ||
<script src="https://unpkg.com/[email protected]/dist/ml5.min.js" type="text/javascript"></script> | ||
|
||
<style></style> | ||
<script src="sketch.js"></script> | ||
</head> | ||
|
||
<script src="sketch.js"></script> | ||
|
||
<body> | ||
<h1>BodyPix with Webcam</h1> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,13 +2,12 @@ | |
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width"> | ||
<title>BodyPix with Webcam</title> | ||
<script src="https://unpkg.com/[email protected]/dist/ml5.min.js" type="text/javascript"></script> | ||
|
||
<style></style> | ||
<script src="sketch.js"></script> | ||
</head> | ||
|
||
<script src="sketch.js"></script> | ||
|
||
<body> | ||
<h1>BodyPix with Webcam and Part Segmentation</h1> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,10 +2,10 @@ | |
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge" > | ||
<meta name="viewport" content="width=device-width, initial-scale=1" > | ||
<title>Interactive CharRNN Text Generation Example</title> | ||
<script src="https://unpkg.com/[email protected]/dist/ml5.min.js" type="text/javascript"></script> | ||
|
||
<style></style> | ||
</head> | ||
<body> | ||
<h1>Interactive CharRNN Text Generation Example</h1> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width"> | ||
<title>LSTM Text Generation Example</title> | ||
<script src="https://unpkg.com/[email protected]/dist/ml5.min.js" type="text/javascript"></script> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,12 +2,11 @@ | |
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width"> | ||
<title>Stateful CharRNN Text Generation Example</title> | ||
<script src="https://unpkg.com/[email protected]/dist/ml5.min.js" type="text/javascript"></script> | ||
|
||
|
||
<style></style> | ||
|
||
</head> | ||
|
||
<body> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,13 +2,12 @@ | |
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width"> | ||
<title>FaceApi Landmarks Demo</title> | ||
<script src="https://unpkg.com/[email protected]/dist/ml5.min.js" type="text/javascript"></script> | ||
|
||
<style></style> | ||
<script src="sketch.js"></script> | ||
</head> | ||
|
||
<script src="sketch.js"></script> | ||
|
||
<body> | ||
<h1>FaceApi Landmarks Demo</h1> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,13 +2,12 @@ | |
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width"> | ||
<title>FaceApi Landmarks Demo</title> | ||
<script src="https://unpkg.com/[email protected]/dist/ml5.min.js" type="text/javascript"></script> | ||
|
||
<style></style> | ||
<script src="sketch.js"></script> | ||
</head> | ||
|
||
<script src="sketch.js"></script> | ||
|
||
<body> | ||
<h1>FaceApi Landmarks Demo</h1> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,14 +2,13 @@ | |
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width"> | ||
<title>FaceApi Landmarks Demo With Local Models</title> | ||
|
||
<script src="https://unpkg.com/[email protected]/dist/ml5.min.js" type="text/javascript"></script> | ||
|
||
<style></style> | ||
<script src="sketch.js"></script> | ||
</head> | ||
|
||
<script src="sketch.js"></script> | ||
|
||
<body> | ||
<h1>FaceApi Landmarks Demo With Locally Served Models</h1> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,12 +2,11 @@ | |
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width"> | ||
<title>Image Classification using Feature Extraction with MobileNet</title> | ||
|
||
|
||
<script src="https://unpkg.com/[email protected]/dist/ml5.min.js" type="text/javascript"></script> | ||
|
||
<style></style> | ||
</head> | ||
|
||
<body> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,12 +2,11 @@ | |
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width"> | ||
<title>Image Regression using Feature Extraction with MobileNet.</title> | ||
<script src="https://unpkg.com/[email protected]/dist/ml5.min.js" type="text/javascript"></script> | ||
|
||
|
||
<style></style> | ||
</head> | ||
</head> | ||
|
||
<body> | ||
<h1>Image Regression using Feature Extraction with MobileNet.</h1> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width"> | ||
<title>Image Classification Example</title> | ||
<script src="https://unpkg.com/[email protected]/dist/ml5.min.js" type="text/javascript"></script> | ||
</head> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,9 +2,9 @@ | |
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width"> | ||
<title>Canvas Image Classification using DoodleNet</title> | ||
<script src="https://unpkg.com/[email protected]/dist/ml5.min.js" type="text/javascript"></script> | ||
<style></style> | ||
</head> | ||
|
||
<body> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width"> | ||
<title>Webcam Image Classification using DoodleNet</title> | ||
<script src="https://unpkg.com/[email protected]/dist/ml5.min.js" type="text/javascript"></script> | ||
</head> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width"> | ||
<title>Multiple Image classification using MobileNet</title> | ||
<script src="https://unpkg.com/[email protected]/dist/ml5.min.js" type="text/javascript"></script> | ||
</head> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width"> | ||
<title>Webcam Image Classification with Speech Output using MobileNet</title> | ||
<script src="https://unpkg.com/[email protected]/dist/ml5.min.js" type="text/javascript"></script> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width"> | ||
<title>Webcam Image Classification with Speech Output using MobileNet</title> | ||
<script src="https://unpkg.com/[email protected]/dist/ml5.min.js" type="text/javascript"></script> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width"> | ||
<title>Webcam Image Classification using a pre-trianed customized model</title> | ||
<script src="https://unpkg.com/[email protected]/dist/ml5.min.js" type="text/javascript"></script> | ||
</head> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,10 +2,9 @@ | |
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width"> | ||
<title>PoseNet with KNN Classification on Webcam Images</title> | ||
<script src="https://unpkg.com/[email protected]/dist/ml5.min.js" type="text/javascript"></script> | ||
|
||
<style></style> | ||
</head> | ||
|
||
<body> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,11 +2,10 @@ | |
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width"> | ||
<title>KNN Classification on Webcam Images with mobileNet.</title> | ||
<script src="https://unpkg.com/[email protected]/dist/ml5.min.js" type="text/javascript"></script> | ||
|
||
<style></style> | ||
</head> | ||
</head> | ||
|
||
<body> | ||
<h2>KNN Classification on Webcam Images with mobileNet. Built with p5.js</h2> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,13 +2,12 @@ | |
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width"> | ||
<title>KNN Classification on Webcam Images with Speech Output Using mobileNet.</title> | ||
|
||
|
||
<script src="https://unpkg.com/[email protected]/dist/ml5.min.js" type="text/javascript"></script> | ||
|
||
<style></style> | ||
</head> | ||
</head> | ||
|
||
<body> | ||
<h2>KNN Classification on Webcam Images with Speech Output Using mobileNet.</h2> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,11 +2,10 @@ | |
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width"> | ||
<title>KNN Classification on Webcam Images with mobileNet</title> | ||
<script src="https://unpkg.com/[email protected]/dist/ml5.min.js" type="text/javascript"></script> | ||
|
||
<style></style> | ||
</head> | ||
</head> | ||
|
||
<body> | ||
<h2>KNN Classification on Webcam Images that moves a square on the canvas with mobileNet</h2> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width"> | ||
|
||
<title>Pitch Detection</title> | ||
<script src="https://unpkg.com/[email protected]/dist/ml5.min.js" type="text/javascript"></script> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width"> | ||
<title>Pitch Tone Game</title> | ||
<script src="https://unpkg.com/[email protected]/dist/ml5.min.js" type="text/javascript"></script> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width"> | ||
|
||
<title>Pitch Detect Piano</title> | ||
<script src="https://unpkg.com/[email protected]/dist/ml5.min.js" type="text/javascript"></script> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,10 +2,9 @@ | |
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width"> | ||
<title>Pix2Pix Edges2Pikachu Example</title> | ||
<script src="https://unpkg.com/[email protected]/dist/ml5.min.js" type="text/javascript"></script> | ||
|
||
<style></style> | ||
</head> | ||
|
||
<body> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,10 +2,9 @@ | |
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width"> | ||
<title>Pix2Pix Edges2Pikachu Example</title> | ||
<script src="https://unpkg.com/[email protected]/dist/ml5.min.js" type="text/javascript"></script> | ||
|
||
<style></style> | ||
</head> | ||
|
||
<body> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width"> | ||
<title>PoseNet example on image with single detection</title> | ||
<script src="https://unpkg.com/[email protected]/dist/ml5.min.js" type="text/javascript"></script> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width"> | ||
<title>PoseNet Part Selection</title> | ||
|
||
<script src="https://unpkg.com/[email protected]/dist/ml5.min.js" type="text/javascript"></script> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width"> | ||
<title>PoseNet Example</title> | ||
|
||
<script src="https://unpkg.com/[email protected]/dist/ml5.min.js" type="text/javascript"></script> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
<html> | ||
<head> | ||
<meta charset="UTF-8" > | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge" > | ||
<meta name="viewport" content="width=device-width, initial-scale=1" > | ||
<title>SketchRNN</title> | ||
<script src="https://unpkg.com/[email protected]/dist/ml5.min.js" type="text/javascript"></script> | ||
</head> | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct me if I'm mistaken, but we should always try to leave the
sketch.js
at the end of the body tag to make sure that the DOM elements are loaded before calling the script.This example will work fine this way, but for consistency, we should just always call
script.js
at the end of the index.html.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the reply!
That sounds about right, I'll have time to hack on it later today π€
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a bunch! Let me know whenever you're ready and I can review. If you're able to resolve any of the merge conflicts that would be great, otherwise I can also take care :)
Many thanks!