GazeML icon indicating copy to clipboard operation
GazeML copied to clipboard

About read transferred pb model wrong?

Open l35633 opened this issue 4 years ago • 2 comments

hi,I keep ckpt model and parameters to one pb file, then read the pb model file in a another code,but the wrong info below:

ValueError: Input 0 of node hourglass/pre/BatchNorm/cond_1/AssignMovingAvg was passed float from hourglass/pre/BatchNorm/cond_1/AssignMovingAvg/Switch:1 incompatible with expected float_ref.

any ways? Thank you so much!

l35633 avatar Aug 08 '20 03:08 l35633

check this issue, it helped me with a similar problem #29

funkfuzz avatar Oct 19 '20 09:10 funkfuzz

@l35633 could you share the code you used to try to save the model and then read the model? Did funfuzzes suggestion help you?

I got the same error. Google tells that it's a common problem. See these links:

  • https://github.com/onnx/tensorflow-onnx/issues/77
  • https://github.com/tensorflow/tensorflow/issues/3628
  • https://stackoverflow.com/questions/51858203/cant-import-frozen-graph-with-batchnorm-layer

Hyrtsi avatar Apr 12 '22 07:04 Hyrtsi