question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Provided weight data has no target variable: lstm/lstm_cell/kernel

See original GitHub issue

To get help from the community, we encourage using Stack Overflow and the tensorflow.js tag.

TensorFlow.js version

I have tested with two versions - 2.0.0 and 1.5.1

Browser version

Crome - 79.0.3945.88 Firefox - 77.0.1

Describe the problem or feature request

I have created the model in python and converted using the tfjs converter. When I am loading the model in the browser using the tfjs, it throws error. I have check in the model json, that the layer exists with the same name. I am attaching the model and the weights as well. model_weights.zip

Code to reproduce the bug / link to feature request

If you would like to get help from the community, we encourage using Stack Overflow and the tensorflow.js tag.

On the browser side, I just use the following code to load the model. tf.loadLayersModel( url).then(model => { model.summary(); model.save(modelName).then(); });

GitHub issues for this repository are tracked in the tfjs union repository.

Please file your issue there, following the guidance in that issue template.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:10

github_iconTop GitHub Comments

6reactions
carlobeltramecommented, Jul 14, 2020

For anyone still running into this, since it wasn’t explicitly answered in this thread: The bug fix is in BOTH the python pip tensorflowjs library as well as the JS tensorflow.js files. Upgrading both to 2.0.1 resolved the issue for me as well.

1reaction
pyu10055commented, Jun 17, 2020

@mbuschtoens @Patrick-David Can you both give it a try with the tensorflowjs pip version 2.0.1 ?

We have recently fixed a similar bug for weight name mismatch between tf 2.2 and tfjs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Uncaught (in promise) Error: Provided weight data has no ...
Unfortunately, when I try to load the JSON model I get this error: Uncaught (in promise) Error: Provided weight data has no target...
Read more >
Orange: Data has no target variable error
I am trying to apply Random Forest algorithm on a data set using Orange. The target variable is not set in the data...
Read more >
Train data input requires a target variable Resolved - YouTube
Cómo solucionar el inconveniente cuando Orange Data Mining nos muestra 'Train data input requires a target variable '
Read more >
When using XENO to model a binary target variable, what ...
Bin 1 of Var1 has a lower Weight of Evidence than bin 2, yet it is assigned a higher weight (weight in this...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found