transcranial / keras-js

Run Keras models in the browser, with GPU support using WebGL

Home Page:https://transcranial.github.io/keras-js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

encoder.py generating only binary file not model_metadat.json and model_weights.buf

vinayjoshi22 opened this issue · comments

I was using keras-js on simple mnist ANN. While converting model.h5 file to model_metadata.json and model_weights.buf, encoder.py generating only binary file (model.bin) not model_metadat.json and model_weights.buf. The command I'm using is python encoder.py model.h5.
My Keras version is 2.1.1 and
tensorflow version is 1.3.0 if that matters.
I checked save method in encoder.py, all it does is saves serialized data into a binary file.
So, how do I generate model_metadata.json and model_weights.buf files?

#87 Here is the answer