Skip to content

Instantly share code, notes, and snippets.

@Marina-Miranovich
Created November 14, 2018 20:50
Show Gist options
  • Save Marina-Miranovich/5762148670131548c03b98fc9e19c65a to your computer and use it in GitHub Desktop.
Save Marina-Miranovich/5762148670131548c03b98fc9e19c65a to your computer and use it in GitHub Desktop.
code_snippet_9 for "Playing Mortal Kombat with TensorFlow.js. Transfer learning and data augmentation" translation
let mobilenet: (p: any) => tf.Tensor<tf.Rank>;
tf.loadModel('http://localhost:5000/model.json').then(model => {
mobileNet
.load()
.then((mn: any) => mobilenet = mobilenetInfer(mn))
.then(startInterval(mobilenet, model));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment