In the first chapter, we saw why machine learning on the web platform is so important in general and looked at the design and basic use of TensorFlow.js. In this chapter, we are going to focus on how to import pretrained models into TensorFlow.js. Importing existing machine learning models is so important, especially in the deep learning field, because deep learning models can be reused and combined with other models. Knowledge about importing pretrained models gives us a chance to stand on the shoulder of a giant so to speak.
The following topics will be covered in this chapter:
- The portable model format
- Exporting a model from TensorFlow
- Converting models using tfjs-converter
- Loading a model into TensorFlow.js