Created
September 7, 2018 08:08
-
-
Save zaidalyafeai/a8f31d961282a0dad1ee447bccce0f91 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
function predict(imgData) { | |
return tf.tidy(() => { | |
//get the prediction | |
const gImg = model.predict(preprocess(imgData)) | |
//post process | |
const postImg = postprocess(gImg) | |
return postImg | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment