Skip to content

Commit 6bb523f

Browse files
author
Kevin Scott
committed
Update readme and bump version
1 parent 9409532 commit 6bb523f

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ ML Classifier is a machine learning engine for quickly training image classifica
44

55
This package is intended as a companion for [`ml-classifier-ui`](https://github.com/thekevinscott/ml-classifier-ui), which provides a web frontend in React for uploading data and seeing results.
66

7+
## Walkthrough
8+
9+
A walkthrough of the code can be found in the article ["Image Classification in the Browser with Javascript"](https://thekevinscott.com/image-classification-with-javascript/).
10+
711
## Demo
812

913
An interactive [demo can be found here](https://thekevinscott.github.io/ml-classifier-ui/).

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ml-classifier",
3-
"version": "0.4.2",
3+
"version": "0.4.3",
44
"description": "A machine learning engine for quickly training image classification models in your browser",
55
"main": "dist/index.js",
66
"typings": "dist/index.d.ts",

src/index.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,12 @@ class MLClassifier {
7676
// private cropAndActivateImage = async (image: tf.Tensor3D) => {
7777
private cropAndActivateImage = async (image: any) => {
7878
await this.loaded();
79-
const {
80-
inputLayers,
81-
} = this.pretrainedModel;
82-
const {
83-
batchInputShape,
84-
} = inputLayers[0];
79+
// const {
80+
// inputLayers,
81+
// } = this.pretrainedModel;
82+
// const {
83+
// batchInputShape,
84+
// } = inputLayers[0];
8585
const dims = await this.getInputDims();
8686
await tf.nextFrame();
8787
const processedImage = await cropAndResizeImage(image, dims);

0 commit comments

Comments
 (0)