Reputation: 1
I am trying to load the model.json file (converted from python) and it is having the bin files as well. I have imported tfjs-node and tfjs but still getting the error as \atrbtsjsonmodel.json does not exist: loading failed.
Can someone help?
This is the code I have written -
const tf = require ('@tensorflow/tfjs')
const tfn = require ('@tensorflow/tfjs-node')
async function loadModel(){
const handler = tfn.io.fileSystem('atrbts\json\model.json');
const model = await tf.loadLayersModel(handler);
console.log("Model loaded")
}
Upvotes: 0
Views: 84