Skip to content

Commit

Permalink
Update tfjs to 1.7.0, update faceApi compatible version, and fix comp…
Browse files Browse the repository at this point in the history
…ability issue with checkpointLoader
  • Loading branch information
bomanimc authored and joeyklee committed Mar 31, 2020
1 parent f582d74 commit ad5bb1c
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 87 deletions.
8 changes: 8 additions & 0 deletions local.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@


Tue Mar 31 2020 01:22:42 GMT-0400 (EDT) -- [INFO] Started the BrowserStack Binary server on 45691, PID: 58817
Tue Mar 31 2020 01:22:42 GMT-0400 (EDT) -- [SUCCESS] You can now access your local server(s) in our remote browser

Tue Mar 31 2020 01:22:43 GMT-0400 (EDT) -- Press Ctrl-C to exit


145 changes: 61 additions & 84 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@
"@tensorflow-models/mobilenet": "2.0.3",
"@tensorflow-models/posenet": "2.1.3",
"@tensorflow-models/speech-commands": "0.3.9",
"@tensorflow/tfjs": "~1.2.1",
"@tensorflow/tfjs": "1.7.0",
"@tensorflow/tfjs-vis": "^1.1.0",
"events": "^3.0.0",
"face-api.js": "0.20.1"
"face-api.js": "~0.22.2"
}
}
2 changes: 1 addition & 1 deletion src/utils/checkpointLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export default class CheckpointLoader {
throw new Error(`Not found variable ${varName}`);
}
const values = new Float32Array(xhr.response);
const tensor = tf.Tensor.make(this.checkpointManifest[varName].shape, { values });
const tensor = tf.tensor(values, this.checkpointManifest[varName].shape);
resolve(tensor);
};
xhr.onerror = (error) => {
Expand Down

0 comments on commit ad5bb1c

Please sign in to comment.