【问题标题】:Why is Mozilla Deepspeech using Tensorflow 0.11 when I have 0.12 installed?当我安装了 0.12 时,为什么 Mozilla Deepspeech 使用 Tensorflow 0.11?
【发布时间】:2018-12-27 22:42:58
【问题描述】:

我使用 Anaconda3 和 python 3.6 并使用 pip install tensorflow deepspeech。

当我运行以下命令时出现错误:

deepspeech --model models/output_graph.pb --alphabet models/alphabet.txt --audio voice.wav

Loading model from file models/output_graph.pb
TensorFlow: v1.11.0-9-g97d851f04e
DeepSpeech: unknown
Warning: reading entire model file into memory. Transform model file into an mmapped graph to reduce heap usage.
2018-12-26 18:19:30.748212: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA

请注意,我使用的是从使用此命令的说明中获得的预训练模型:

wget -O - https://github.com/mozilla/DeepSpeech/releases/download/v0.3.0/deepspeech-0.3.0-models.tar.gz |焦油 xvfz -

Tensorflow v1.11.0 来自哪里? pip freeze 将 Tensorflow 显示为 v0.12.0?我该如何解决这个问题?

【问题讨论】:

    标签: tensorflow mozilla-deepspeech


    【解决方案1】:

    顺便说一句:pypi 上的当前版本的deepspeech 似乎使用了tensorflow == 1.11.0。我没有检查*.whl 包,但是上传日期here 表明该包是在10 月23 日上传的,而DeepSpeech 在this commit 的稍后日期(10 月31 日)迁移到tensorflow == 1.12.0rc2

    现在,您需要检查以下事项:

    • 确保您在 inside 环境中使用 pip,即确保首先执行 source activate env-name
    • 还要确保 DeepSpeech 安装在同一环境中。请记住,您的 Anaconda 环境仍然可以使用系统默认 Python 中的包(如果您使用的是 linux)。
    • 如果上述方法不起作用,请尝试this one。从您的脚本中打印出 TensorFlow 库的路径(即1.11.0,以及从您调用pip freeze 的位置(即从终端)。

    【讨论】:

      猜你喜欢
      • 2019-06-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-07-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多