【问题标题】:terminate called after throwing an instance of 'std::length_error' in Deepspeech在 Deepspeech 中抛出“std::length_error”实例后调用终止
【发布时间】:2021-01-08 16:04:45
【问题描述】:

我在从头开始训练模型后尝试解码 wav 文件,我完成了训练和测试阶段没有错误,我得到了 WER & CER 和 Loss 值。 注意:我已经用这个命令完成了解码,没有错误,但是当我用新模型测试时出现了。

native_client/deepspeech --model /home/xyz/DeepSpeech/data/exprt_dir/output_graph.pb --scorer /home/xyz/DeepSpeech/data/lm/lm.scorer --audio data/test5.wav --beam_width 9000 > data/decoding.txt
TensorFlow: v2.2.0-15-g518c1d0
DeepSpeech: v0.9.0-alpha.3-0-g78ae08c
Warning: reading entire model file into memory. Transform model file into an  mmapped graph to reduce heap usage.
2020-09-22 12:15:00.293543: I tensorflow/core/platform/cpu_feature_guard.cc:143]  Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
terminate called after throwing an instance of 'std::length_error'
what():  vector::_M_default_append
Abandon (core dumped)`

我尝试了不带记分器、管道和梁的命令以及来自火车数据集的文件,但错误仍然存​​在。

native_client/deepspeech --model /home/xyz/DeepSpeech/data/exprt_dir/output_graph.pb --audio data/decoding_online/test5.wav
TensorFlow: v2.2.0-15-g518c1d0
DeepSpeech: v0.9.0-alpha.3-0-g78ae08c
Warning: reading entire model file into memory. Transform model file into an mmapped graph to reduce heap usage.
2020-09-22 13:56:17.511266: I tensorflow/core/platform/cpu_feature_guard.cc:143]       Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
terminate called after throwing an instance of 'std::length_error'
what():  vector::_M_default_append
Abandon (core dumped)

你可以在下面找到我拥有的包的版本(运行 pip list 显示的不仅仅是这些包,但我只保留了重要的包)

(deepspeech-venv) (base) root@xyz:/home/xyz/DeepSpeech# pip  list
Package              Version      Location                            
-------------------- ------------ ------------------------------------
deepspeech-training  0.9.0a3      /home/xyz/DeepSpeech/training
ds-ctcdecoder        0.9.0a3      
tensorboard          1.15.0       
tensorflow-estimator 1.15.1       
tensorflow-gpu       1.15.2  

【问题讨论】:

    标签: python speech-recognition speech-to-text mozilla-deepspeech


    【解决方案1】:

    仅供参考,此问题已在Discourse 上详细讨论。

    一般来说,如果您没有积极开发 DeepSpeech,请不要使用 master 分支,因为它有时会中断。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-11-14
      • 1970-01-01
      相关资源
      最近更新 更多