Giter VIP home page Giter VIP logo

Comments (6)

breizhn avatar breizhn commented on September 28, 2024

Sadly I found this microsoft/onnxjs#167

from dtln.

shilsircar avatar shilsircar commented on September 28, 2024

Ahh sigh !!! Tfjs it is then :)

from dtln.

breizhn avatar breizhn commented on September 28, 2024

I read into the documentation and it should support lstms. I converted the model with hopfully the right opset. Try this model:
models.zip

Probably the keras2onnx converter uses by default a newer opset for converting the models as used by onnx.js. This model is converted with opset 7.

from dtln.

shilsircar avatar shilsircar commented on September 28, 2024

Tried the test model. No luck same error.
I debugged the onnx model graph loading code. The issue seems to be an input to LSTM. The object it throws the exception on seems to be this:

attribute: (3) [t, t, t]
domain: ""
input: (8) ["lstm_4_X", "lstm_4_W", "lstm_4_R", "lstm_4_B", "", "lstm_4_initial_h", "lstm_4_initial_c", ""]
name: "lstm_4"
opType: "LSTM"
output: (3) ["lstm_4_Y", "lstm_4_Y_h", "lstm_4_Y_c"]
proto: Object

Notice empty "" in 5th and last position. This is what its complaining about.

By the way in looking through the docs for Onnx Javascript LSTM op is not supported in JavaScript ?
https://github.com/microsoft/onnxjs/blob/master/docs/operators.md

In the LSTM column of the doc I don't see it mentioned for any opset.

from dtln.

breizhn avatar breizhn commented on September 28, 2024

Oh yeah, it looks like I skipped that when reading on my phone. Hopefully they integrate the support for lstms soon.

from dtln.

rktalusani avatar rktalusani commented on September 28, 2024

Ahh sigh !!! Tfjs it is then :)

did you get this working with JS? Any pointers?

from dtln.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.