2

I saved a tensorflow model in a frozen PB file which is suitable to be used by TensorFlow Lite. This file can be loaded in Android and works well by following code:

import org.tensorflow.contrib.android.TensorFlowInferenceInterface; … TensorFlowInferenceInterface inferenceInterface; inferenceInterface = new TensorFlowInferenceInterface(context.getAssets(), "MODEL_FILE.pb");

Is there any way to load the frozen graph in Node.js?

1 Answer 1

3

I found the solution here: 1. the model must be converted to a web-friendly format which is a JSON file. 2. Then can be loaded using '@tensorflow/tfjs' in Nodejs.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.