DataLoss:恢复张量流图时不是稳定的(坏魔术数)

时间:2018-12-30 20:55:59

标签: python python-3.x tensorflow object-detection yolo

语言:python3.x

我使用以下API训练了对象识别模型:https://github.com/thtrieu/darkflow

训练后,检查点存储在ckpt文件夹中。保存了4个文件。

1个.index文件

2个.meta文件

3 .profile文件

4个.data-00000-of-00001文件

当我尝试在计算机上还原图形时,我在该模型上训练模型成功还原并运行了模型。

当我移动机器时,图形无法还原,并引发以下错误:

Running entirely on CPU
Loading from ./ckpt/yolov2-tiny-voc-1c-589
2018-12-30 20:43:14.628170: W tensorflow/core/framework/op_kernel.cc:1273] OP_REQUIRES failed at save_restore_v2_ops.cc:184 : Data loss: not an sstable (bad magic number)
2018-12-30 20:43:16.853852: W tensorflow/core/framework/op_kernel.cc:1273] OP_REQUIRES failed at save_restore_v2_ops.cc:184 : Data loss: not an sstable (bad magic number)
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/client/session.py", line 1334, in _do_call
    return fn(*args)
  File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/client/session.py", line 1319, in _run_fn
    options, feed_dict, fetch_list, target_list, run_metadata)
  File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/client/session.py", line 1407, in _call_tf_sessionrun
    run_metadata)
tensorflow.python.framework.errors_impl.DataLossError: not an sstable (bad magic number)
     [[{{node save/RestoreV2}} = RestoreV2[dtypes=[DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, ..., DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT], _device="/job:localhost/replica:0/task:0/device:CPU:0"](_arg_save/Const_0_0, save/RestoreV2/tensor_names, save/RestoreV2/shape_and_slices)]]

完整的错误消息非常多,因此我将其张贴在这里: https://drive.google.com/open?id=1-FJezfP7COSIDvElAvHCR2wzln21c-_S

请询问任何您可能需要的更多信息

0 个答案:

没有答案