Created
November 14, 2018 20:50
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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