Martin Andrews
27 Oct 2018
End of the Duplex Announcement
Spotted in the audience
ENHANCE!
Who knew? Google has been updating their site..
(actual contributor in 2014)
Written 'ad-hoc'
Uses jsNet
Nice CNN interpretability write-up
Actual announcement (and demos)
# Python
import tensorflowjs as tfjs
def train(...):
model = keras.models.Sequential() # for example
#...
model.fit(...)
tfjs.converters.save_keras_model(model, tfjs_target_dir)
# JS
import * as tf from '@tensorflow/tfjs';
const model = await tf.loadModel('https://foo.bar/tfjs_artifacts/model.json');
const example = tf.fromPixels(webcamElement); // for example
const prediction = model.predict(example);
See the tutorial
Not same as native, but not bad
Node.js support announced at Google IO
Already on a par with Python
( Don't use for Mining )
My blog : http://blog.mdda.net/
GitHub : mdda