@tensorflow/tfjs-converter
Advanced tools
Comparing version 1.0.4 to 1.1.0
/** @license See the LICENSE file. */ | ||
declare const version = "1.0.4"; | ||
declare const version = "1.1.0"; | ||
export { version }; |
@@ -5,4 +5,4 @@ "use strict"; | ||
// This code is auto-generated, do not modify this file! | ||
var version = '1.0.4'; | ||
var version = '1.1.0'; | ||
exports.version = version; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@tensorflow/tfjs-converter", | ||
"version": "1.0.4", | ||
"version": "1.1.0", | ||
"description": "Tensorflow model converter for javascript", | ||
@@ -17,6 +17,6 @@ "main": "dist/src/index.js", | ||
"peerDependencies": { | ||
"@tensorflow/tfjs-core": "1.0.4" | ||
"@tensorflow/tfjs-core": "1.1.0" | ||
}, | ||
"devDependencies": { | ||
"@tensorflow/tfjs-core": "1.0.4", | ||
"@tensorflow/tfjs-core": "1.1.0", | ||
"@types/jasmine": "~2.8.6", | ||
@@ -60,3 +60,4 @@ "@types/long": "~3.0.32", | ||
"test": "karma start", | ||
"test-travis": "karma start --singleRun --browsers='bs_firefox_mac,bs_chrome_mac' --reporters='dots,karma-typescript,BrowserStack'", | ||
"test-ci": "yarn build && yarn lint && yarn run-browserstack", | ||
"run-browserstack": "karma start --singleRun --browsers='bs_firefox_mac,bs_chrome_mac' --reporters='dots,karma-typescript,BrowserStack'", | ||
"lint": "tslint -p . -t verbose", | ||
@@ -66,4 +67,6 @@ "make-version": "sh -c ./scripts/make-version", | ||
"gen-json": "ts-node ./scripts/gen_json.ts", | ||
"pb2json": "ts-node ./tools/pb2json_converter.ts" | ||
"pb2json": "ts-node ./tools/pb2json_converter.ts", | ||
"build-pip-package": "yarn gen-json && cd python && ./build-pip-package.sh --test /tmp/tfjs-pips", | ||
"run-python-tests": "yarn gen-json && cd python && ./run-python-tests.sh" | ||
} | ||
} |
@@ -1,3 +0,1 @@ | ||
[![Build Status](https://travis-ci.org/tensorflow/tfjs-converter.svg?branch=master)](https://travis-ci.org/tensorflow/tfjs-converter) | ||
# Getting started | ||
@@ -117,3 +115,3 @@ | ||
('group1-shard1of1.bin'). To shard the weight file, do | ||
```sh | ||
@@ -161,3 +159,3 @@ tensorflowjs_converter \ | ||
Instantiate the [GraphModel class](./src/executor/graph_model.ts) and run inference. | ||
If the original model was a `SavedModel`, use [`tf.loadGraphModel()`](https://js.tensorflow.org/api/latest/#loadGraphModel). If it was Keras, use [`tf.loadLayersModel()`](https://js.tensorflow.org/api/latest/#loadLayersModel): | ||
@@ -169,8 +167,8 @@ ```typescript | ||
const model = await tf.loadGraphModel(MODEL_URL); | ||
const model = await tf.loadGraphModel(MODEL_URL); // For Keras use tf.loadLayersModel() | ||
const cat = document.getElementById('cat'); | ||
model.execute({input: tf.browser.fromPixels(cat)}); | ||
model.predict(tf.browser.fromPixels(cat)); | ||
``` | ||
Check out our working [MobileNet demo](./demo/mobilenet/README.md). | ||
See our API docs for the [`predict()`](https://js.tensorflow.org/api/latest/#tf.GraphModel.predict) method. To see what other methods exist on a `Model`, see [`tf.LayersModel`](https://js.tensorflow.org/api/latest/#class:LayersModel) and [`tf.GraphModel`](https://js.tensorflow.org/api/latest/#class:GraphModel). Also check out our working [MobileNet demo](./demo/mobilenet/README.md). | ||
@@ -177,0 +175,0 @@ If your server requests credentials for accessing the model files, you can provide the optional RequestOption param. |
/** @license See the LICENSE file. */ | ||
// This code is auto-generated, do not modify this file! | ||
const version = '1.0.4'; | ||
const version = '1.1.0'; | ||
export {version}; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2295323
316