Harshal Mehta
Harshal Mehta

Reputation: 1

Error in loading the model.json in web application

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

Answers (0)

Related Questions