November 2018
Intermediate to advanced
322 pages
7h 54m
English
In this section, we are going to deploy the model on a browser.
The following steps demonstrate how to save the model:
pip install tensorflowjs
import tensorflowjs as tfjs tfjs.converters.save_keras_model(model, OUTPUT_DIR)
This will create a json file called model.json, which will contain the meta-variables and some other files, such as group1-shard1of1.
Good job! Deploying the model in the HTML file is a little trickier, however:
Read now
Unlock full access