Skip to content

Keras-js error loading .bin model #133

@asad-rauf-khan

Description

@asad-rauf-khan

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions