Key not found in checkpoint Tensorflow

前端 未结 2 664
梦谈多话
梦谈多话 2021-02-13 11:38

I\'m using Tensorflow v1.1 and I\'ve been trying to figure out how to use my EMA\'ed weights for inference, but no matter what I do I keep getting the error

2条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-13 12:00

    The key not found in checkpoint error means that the variable exists in your model in memory but not in the serialized checkpoint file on disk.

    You should use the inspect_checkpoint tool to understand what tensors are being saved in your checkpoint, and why some exponential moving averages are not being saved here.

    It's not clear from your repro example which line is supposed to trigger the error

提交回复
热议问题