Load Tensorflow js model from local file system in javascript

前端 未结 7 1236
一个人的身影
一个人的身影 2020-11-30 10:31

I have converted a keras model to tensorflow json format and saved it locally in my computer. I am trying to load that json model in a javascript code using the below comman

7条回答
  •  执念已碎
    2020-11-30 11:30

    You could try:

    const model = await tf.models.modelFromJSON(myModelJSON)
    

    Here it is in the tensorflow.org docs

提交回复
热议问题