TensorFlow.NET icon indicating copy to clipboard operation
TensorFlow.NET copied to clipboard

Invalid GraphDef

Open jhoeing opened this issue 4 years ago • 3 comments

I am new here. I use python tensorflow2 to train a xception(transfer learning) h5 model. In python, inference is ok. But in tensorflow.net, when predicting model, it shown up. I don't know how to fix it. Does anybody have solution?

image

jhoeing avatar Feb 24 '22 07:02 jhoeing

You need to freeze the model as pb format.

Oceania2018 avatar Feb 24 '22 14:02 Oceania2018

Hello, Does this thransferlearning can use in other archtecture, ex: renet? Yesterday, I had tried inceptionv3 training with my data and the env was python tensorflow 2.8.0 keras. And I saved model to pb format. But when I used it, it shown another error like below.

oops

jhoeing avatar Feb 25 '22 00:02 jhoeing

Please follow this example.

Oceania2018 avatar Feb 25 '22 20:02 Oceania2018