Open shuxiongwuziqi opened 3 years ago
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 https://github.com/sirius-ai/MobileFaceNet_TF/issues/71 for some other hinds on tfjs usage of this model.
Get it. Thank you very much!
------------------ Original message ------------------ From: "Vladimir Mandic"; Sendtime: Monday, Mar 8, 2021 11:16 PM To: "sirius-ai/MobileFaceNet_TF"; Cc: "吴梓祺"1306557901@qq.com; "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!