Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when installing Cannot find model with path 'web-model' in IndexedDB. #42

Open
troutgirl opened this issue Aug 28, 2022 · 0 comments

Comments

@troutgirl
Copy link

I'm trying to use this library for a talk I'm giving, and it looks dope! However when I try to install everything looks cool until I try to actually start up the service, at which point I get this:

Error: Cannot find model with path 'web-model' in IndexedDB.
at s.onsuccess (tf-core.esm.js:14876:1)
tf-layers.esm.js:192 Uncaught (in promise) Error: Unknown layer: Functional. This may be due to one of the following reasons:

  1. The layer is defined in Python, in which case it needs to be ported to TensorFlow.js or your JavaScript code.
  2. The custom layer is defined in JavaScript, but is not registered properly with tf.serialization.registerClass().
    at new t (tf-layers.esm.js:192:1)
    at deserializeKerasObject (tf-layers.esm.js:297:1)
    at deserialize (tf-layers.esm.js:2419:1)
    at tf-layers.esm.js:4941:1
    at tf-layers.esm.js:149:1
    at Object.next (tf-layers.esm.js:161:1)
    at o (tf-layers.esm.js:50:1)

I asked a friend to try installing according to the instructions and he got the same thing. Googling around suggests that perhaps the issue is that the model was not trained on the same versions of tensorflowjs and keras as I'm using, but I don't know how to find these versions. Thanks!

@troutgirl troutgirl changed the title Error when installing Error when installing Cannot find model with path 'web-model' in IndexedDB. Aug 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant