Categories
Misc

Weights aren’t loading in Tensorflow.js for Node???

When I load a trained model that I have previously saved, the model topology is being loaded, but none of the weights are loaded (so I have to train the model from scratch). I am very confused by this, and can find noone else who has had the same problem (here, stackoverflow, …).

I would really apreciate some help, if anyone has any idea what is going on.

I am saving my model as follows:

model.save('file://' + path); 

To load the model, I am using:

model = tf.loadLayersModel('file://' + path + '/model.json'); 

submitted by /u/will0w1sp
[visit reddit] [comments]

Leave a Reply

Your email address will not be published. Required fields are marked *