I have some Keras experience and am learning TensorFlowSharp (https://github.com/migueldeicaza/TensorFlowSharp). Using the ExampleInceptionInference project, I want to use a model I trained in my Keras python code.
(I have created a .pb file using @jdehesa reply here: How to export Keras .h5 to tensorflow .pb?)
When I load the .pb model file in TensorFlowSharp, this line fails:
runner.AddInput (graph ["input"] [0], tensor).Fetch (graph ["output"] [0]);
It seems that graph ["input"]
and graph ["output"]
are both null.
Do I need to name the layers in my model perhaps?
The Keras model I am using is a modified and retrained version of VGG16.
Is it possible to output a list of named layers in TensorFlowSharp? Or is it possible to reference them in some other way? (by number?)