transcranial / keras-js

Run Keras models in the browser, with GPU support using WebGL
https://transcranial.github.io/keras-js
MIT License
4.96k stars 503 forks source link

Keras-js error loading .bin model #133

Open asad-rauf-khan opened 5 years ago

asad-rauf-khan commented 5 years ago

Hi, I have used the encoder to convert my .h5 model to .bin. When I try to load this model, I get the following error.

Error: [Model] Layer ReLU specified in model configuration is not implemented!

Note that the same models loads just fine in python.

Here is my NodeJs code to load the model.

const KerasJS = require('keras-js')
const model = new KerasJS.Model({
  filepath: './model.bin',
  filesystem: true
});
model.ready()
  .then(() => {
    console.log("model is loaded");
         return;
  }). catch((error) => {
console.log(error)
   });

Any help would be really appreciated.