Skip to content

Import model

Mino05 edited this page Mar 20, 2019 · 7 revisions

HOME > DOCUMENTATION > IMPORT MODEL

Import a JSON model

Before importing a JSON model you either need to export the typescript model with the Tensorflow model.save() method to get the necessary files 1 in .json and another .weights.bin, or converting a Tensorflow model from the Python implementation using the TensorFlow.js library converter : https://www.tensorflow.org/js/guide/conversion

  1. Select the "json" type on the button above the text area of the model definition section.

jsonModelButton

  1. Click on the "Browse" button.

jsonModelChoose

  1. Select your model that need to be a .json file and your .weights.bin file.
  2. Click on the "Open" button.

jsonModelOpen

Import a Typescript model

  1. Select the "typescript" type on the button above the text area of the model definition section.

typescriptModelButton

  1. You can either modify the initial model by typing in the text area or copy and paste your own model in the same text area.

typescriptModelModify

Clone this wiki locally