【问题标题】:Not able to train the Deepspeech model on Windows无法在 Windows 上训练 Deepspeech 模型
【发布时间】:2021-08-06 14:07:01
【问题描述】:

我尝试在 Windows 上训练 Deepspeech 模型,因为我无法使用 Linux。但是,我无法训练我收到错误

  File "E:/deepspeech-german-master/DeepSpeech/training/deepspeech_training/train.py", line 30, in <module>
    from DeepSpeech.native_client.ctcdecode import ctc_beam_search_decoder, Scorer
  File "E:\deepspeech-german-master\DeepSpeech\native_client\ctcdecode\__init__.py", line 3, in <module>
    from . import swigwrapper # pylint: disable=import-self
ImportError: cannot import name 'swigwrapper' from 'DeepSpeech.native_client.ctcdecode' (E:\deepspeech-german-master\DeepSpeech\native_client\ctcdecode\__init__.py)```

I installed Kenlm language model using cygwin. But I am not able to train. If anybody has used it on windows. Can you please help, I am stuck on this since back so many days.

【问题讨论】:

    标签: python speech-recognition training-data mozilla-deepspeech


    【解决方案1】:

    Swig 是一个构建和打包工具。它不是为 Windows 预先构建的,这就是您收到 swigwrapper 错误的原因。你可以read more about running Swig on Windows here

    在 Windows 上运行 DeepSpeech 的更好方法是安装 Docker,并使用 Docker 环境进行训练。这消除了您面临的许多依赖问题。这是documented in the DeepSpeech PlayBook

    【讨论】:

      猜你喜欢
      • 2020-01-03
      • 2019-01-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-07-09
      • 2019-11-06
      • 1970-01-01
      • 2021-06-06
      相关资源
      最近更新 更多