报错:
tensorflow.python.framework.errors_impl.DataLossError: Unable to open table file /home/wpq/data/model.ckpt.data-00000-of-00001:
Data loss: not an sstable (bad magic number): perhaps your file is in a different file format and you
need to use a different restore operator?
解决方案:
I have fixed the issue by this:
replace model.ckpt the model.ckpt.data-00000-of-00001
即使用 model.ckpt替换 model.ckpt.data-00000-of-00001,去掉model.ckpt.data-00000-of-00001的后缀即可
本文详细介绍了在使用TensorFlow框架时遇到的DataLossError错误,该错误通常发生在尝试加载模型时,具体表现为无法打开特定的模型文件。文章提供了一个有效的解决方案,即通过替换文件名后缀从model.ckpt.data-00000-of-00001为model.ckpt,从而成功解决了这一问题。
1317





