Hi
There are these two examples already:
const saveResults = await model.save('downloads://my-model-1');
and
// Note: this code snippet will not work without the HTML elements in the
// page
const jsonUpload = document.getElementById('json-upload');
const weightsUpload = document.getElementById('weights-upload');
const model = await tf.loadModel(
tf.io.browserFiles([jsonUpload.files[0], weightsUpload.files[0]]));
A brief description of what tf.io.browserFiles does is all that is missing.
On a related note, I just discovered that the name of a model is lost when saved and loaded. Though the JSON includes
"paths":["./test-1.weights.bin"]
so it isn't completely lost.
Best,
-ken