1

我试图在 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.
4

1 回答 1

0

Swig是一个构建和打包工具。它不是为 Windows 预先构建的,这就是您收到swigwrapper错误的原因。您可以在此处阅读有关在 Windows 上运行 Swig 的更多信息

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

于 2021-05-18T07:30:28.770 回答