Loading model from disk (windows)

Hello,

In js (in Chrome webbrowser), I succeed to save the model datas on my disk:
await _net.model.save('downloads://my-model-vehicleFront');

image

But load do nothing:
let result = await _net.model.load('downloads://my-model-vehicleFront');

Any idea ?

Regards.

Hi @fpi, welcome to the forum.
Can you try to load your model with tf.loadLayersModel(modelUrl)?
(see API Example 2)

const loadedModel = await tf.loadLayersModel('localstorage://my-model-1');

Note: If you open the .json file, you can easily double check if your model is a LayerModel or GraphModel (if this is the case, try tf.loadGraphModel(modelUrl);.

Hello.

I have tried, but “localstorage” is not accepted.

I will try with real NodeJS to access freely to disk.

Regards.