Frozen-Graph-TensorFlow icon indicating copy to clipboard operation
Frozen-Graph-TensorFlow copied to clipboard

read values

Open AshishGusain17 opened this issue 5 years ago • 5 comments
trafficstars

Hey, Can you tell how to read the values like weights and gradients using this frozen graph. We also have other model.ckpt.data .meta .index files. Is there any way?

AshishGusain17 avatar Jun 09 '20 20:06 AshishGusain17

You could figure out a way to load checkpoint models as a Keras model, then you could try to export a frozen model using the methods I described.

leimao avatar Jun 17 '20 00:06 leimao

Is there even a way to load inference models as keras models. If so, can you share some articles or docs file link

AshishGusain17 avatar Jun 17 '20 10:06 AshishGusain17

It is not possible to load the frozen model to Keras as far as I know.

leimao avatar Jun 17 '20 21:06 leimao

So, how can I load weights to keras model. I have tensorflow model available i.e. model.ckpt,data,frozen graph,checkpoint. If not load, how can I get the values of weights and gradients in each layer

AshishGusain17 avatar Jun 18 '20 19:06 AshishGusain17

HI @leimao, thanks for the documentation, I wanted to ask you if there is any way to make batch predictions using the freeze model, similar to how the predict() function is used with the 'batch_size=' parameter

felipetobars avatar Sep 22 '22 16:09 felipetobars