Skip to content

Commit 8c60b82

Browse files
committed
Add tfjs template
1 parent 2ddebb0 commit 8c60b82

File tree

11 files changed

+5305
-3
lines changed

11 files changed

+5305
-3
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules/
2+
dist/
3+
.cache
4+
.DS_Store

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
# Tensorflow with MobileNet
1+
# Machine Learning With JavaScript
22

3-
- [tfjs](https://github.com/tensorflow/tfjs)
4-
- [MobileNet](https://github.com/tensorflow/tfjs-models/tree/master/mobilenet)
3+
![](./machine-learning.png)
4+
5+
Explore [the complete mindmap](https://my.mindnode.com/h85zxxubxjuSewNvxwdhA3Ef32CpFeM7J8b4ML3z#-609.7,-24.7,2)
6+
7+
## Ressources
8+
9+
- [The TensorFlow.js gallery](https://github.com/tensorflow/tfjs/blob/master/GALLERY.md)
10+
- [Awesome TensorFlow.js](https://github.com/aaronhma/awesome-tensorflow-js)

machine-learning.png

344 KB
Loading

mobilenet/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Tensorflow with MobileNet
2+
3+
- [tfjs](https://github.com/tensorflow/tfjs)
4+
- [MobileNet](https://github.com/tensorflow/tfjs-models/tree/master/mobilenet)
File renamed without changes.

tensorflowjs-template/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# TensorFlow.js Template
2+
3+
## Getting Started
4+
5+
```
6+
yarn
7+
yarn start
8+
```

tensorflowjs-template/index.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>TensorFlow Template</title>
5+
<meta charset="UTF-8" />
6+
<link
7+
rel="stylesheet"
8+
href="./node_modules/modern-normalize/modern-normalize.css"
9+
/>
10+
</head>
11+
12+
<body>
13+
<div id="app"></div>
14+
15+
<script src="./src/index.js"></script>
16+
</body>
17+
</html>

tensorflowjs-template/package.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "tensorflowjs-template",
3+
"version": "1.0.0",
4+
"description": "",
5+
"main": "index.html",
6+
"scripts": {
7+
"start": "parcel index.html --open",
8+
"build": "parcel build index.html"
9+
},
10+
"dependencies": {
11+
"@tensorflow/tfjs": "^2.0.1",
12+
"modern-normalize": "^0.7.0"
13+
},
14+
"devDependencies": {
15+
"@babel/core": "7.2.0",
16+
"parcel-bundler": "^1.6.1"
17+
},
18+
"keywords": []
19+
}

tensorflowjs-template/src/index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import * as tf from '@tensorflow/tfjs';
2+
import './styles.css';
3+
4+
document.getElementById('app').innerHTML = `
5+
<code>TensorFlow version: ${tf.version.tfjs}</code>
6+
`;

tensorflowjs-template/src/styles.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
body {
2+
padding: 20px 40px;
3+
}

tensorflowjs-template/yarn.lock

Lines changed: 5235 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)