Provided weight data has no target variable: lstm/lstm_cell/kernel
See original GitHub issueTo 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:
- Created 3 years ago
- Reactions:1
- Comments:10
Top GitHub Comments
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.
@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.