4
votes

I have already converted keras model to tensorflowjs model. But when I am trying to load the same in browser it gives error which says that

Uncaught (in promise) Error: Provided weight data has no target variable: block1_conv1_1/kernel.

I have used transfer learning on vgg16 model in keras.

Could you please post the code you are using to load the model in tensorflow.js ? - edkeveked
code i am using to load the model is model = await tf.loadModel('localhost:8080/plant_diseases/model.json',strict=false); - Hardik Modi
Can you please update the question with the keras model ? There is an open issue related to the question: github.com/tensorflow/tfjs/issues/755 - edkeveked