【问题标题】:Restore Tensorflow model on docker在 docker 上恢复 TensorFlow 模型
【发布时间】:2017-01-30 14:18:09
【问题描述】:

我正在使用基于 tensorflow 的人脸识别模型。在我的本地机器上 - ubuntu 14.04 - 一切正常。 当我使用 docker 部署它时,我收到以下错误:

DataLossError: Unable to open table file /data/model/model.ckpt-80000: 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?

我正在使用 python 实现 tensorflow。 该模型采用旧的 11.* 格式(model.meta 和 model.ckpt-80000),而 tensorflow python 版本是 12.* 。这应该不是问题,因为这是我本地机器的配置,也是我从中获取模型的地方。 我的机器和docker机器的tensorflow、numpy和protobuf的版本是一样的。

有什么建议吗?


更新

我创建了一个可以在我的机器上完美运行的小脚本。然后,我在部署的虚拟机(AWS 实例)上运行相同的脚本,但不在 docker 上。它也失败了,同样的错误。 部署的机器是ubuntu 16.04。

【问题讨论】:

    标签: docker tensorflow


    【解决方案1】:

    好像我正在处理一个损坏的文件

    【讨论】:

      猜你喜欢
      • 2018-09-06
      • 2016-05-01
      • 1970-01-01
      • 2017-08-21
      • 1970-01-01
      • 1970-01-01
      • 2018-11-17
      • 1970-01-01
      • 2018-07-02
      相关资源
      最近更新 更多