fpi
October 13, 2022, 12:11pm
1
Hello,
In js (in Chrome webbrowser), I succeed to save the model datas on my disk:
await _net.model.save('downloads://my-model-vehicleFront');
But load do nothing:
let result = await _net.model.load('downloads://my-model-vehicleFront');
Any idea ?
Regards.
Dennis
October 14, 2022, 3:59am
3
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)
;.
fpi
October 14, 2022, 7:02am
5
Hello.
I have tried, but “localstorage” is not accepted.
I will try with real NodeJS to access freely to disk.
Regards.