You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I try to convert the pb model to tensorflow.js model, but I encountered some problem. I follow the official tutorial to convert model over here. The first difficulty is to find the output_node_names, I used the codes as follows to solve this problem.
Unfortunately, I got error as follows:
KeyError: 'The name "'embeddings'" refers to an Operation not in the graph.'
I do not know how to solve this problem. Please help me, thank you!
The text was updated successfully, but these errors were encountered:
------------------ Original message ------------------
From: "Vladimir Mandic";
Sendtime: Monday, Mar 8, 2021 11:16 PM
To: "sirius-ai/MobileFaceNet_TF";
Cc: "吴梓祺"<[email protected]>; "Author";
Subject: Re: [sirius-ai/MobileFaceNet_TF] convert pb model to tensorflow.js model (#76)
just load model in tfjs-node using loadSavedModel and look at it's signature, then convert it using tensorflowjs_converter
btw, take a look at #71 for some other hinds on tfjs usage of this model.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Hello, I try to convert the pb model to tensorflow.js model, but I encountered some problem. I follow the official tutorial to convert model over here. The first difficulty is to find the output_node_names, I used the codes as follows to solve this problem.
Then, I got ''embeddings'', so the output node name should be ''embeddings''.
Therefore, I use the command as follows to convert this pb model
Unfortunately, I got error as follows:
KeyError: 'The name "'embeddings'" refers to an Operation not in the graph.'
I do not know how to solve this problem. Please help me, thank you!
The text was updated successfully, but these errors were encountered: