i have used a tensorflowJs with pretrained model VGG16 and Mobilenet
In this repo. i haven't added vgg16 but we can download it by using following two to three lines of command.
-
- import keras
-
- import tensorflowjs as TFJS
- // for downloading the vgg16 model u have to add following command
-
- vgg16 = keras.applications.vgg16.VGG16()
-
- TFJS.converters.save_keras_model(vgg16, path to views or client folder in your app)
- // this will load your model into the particular directory and create a shards of files...and now u can refer other files to run into your machine
- u can also refer https://js.tensorflow.org/tutorials/import-keras.html