我试着在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.
发布于 2021-05-18 15:30:29
Swig是一个构建和打包工具。它不是为Windows预先构建的,这就是您收到swigwrapper
错误的原因。你可以使用read more about running Swig on Windows here。
在Windows上运行DeepSpeech的一个更好的方法是安装Docker,并使用Docker环境进行培训。这消除了你面临的很多依赖问题。这是documented in the DeepSpeech PlayBook。
https://stackoverflow.com/questions/67567532
复制相似问题