tensorflowjs and keras
$ pip install tensorflowjs
$ tensorflowjs_converter --input_format keras models/mobilenet_v2.h5 models4js/mobilenet_v2
for VGG16
$ python keras2tensorflow_forVGG16.py
for MobileNet V2
$ python keras2tensorflow_formobilenet.py
In terms of mobilenet_v2, if you got an error, you would need to update Keras
$ pip install -U keras
model.json is a meta-data file.
clone this repo
$ git clone https://github.com/sleepy-maker/tensorflowjs-and-keras.git
$ cd image_classification/app
$ npm install
$ node server.js
image_uploader version https://sleepy-maker.github.io/tensorflowjs-and-keras/image_classification/image_uploader/app/public/ webcam version https://sleepy-maker.github.io/tensorflowjs-and-keras/image_classification/webcam/app/public/