transcribe.py: Segmentation fault when loading Mozilla Deepspeech's language model
See original GitHub issuepython3 transcribe.py --model-path models/librispeech_pretrained.pth --audio-path my-recording.wav --decoder beam --lm-path ../DeepSpeech/data/lm/lm.binary
Segmentation fault (core dumped)
(gdb) info threads
Id Target Id Frame
* 1 Thread 0x7fe921e04700 (LWP 12660) fst::ArcIterator<fst::VectorFst<fst::ArcTpl<fst::TropicalWeightTpl<float> >, fst::VectorState<fst::ArcTpl<fst::TropicalWeightTpl<float> >, std::allocator<fst::ArcTpl<fst::TropicalWeightTpl<float> > > > > >::Seek (this=<optimized out>, a=0) at /tmp/pip-8jivklgg-build/third_party/openfst-1.6.7/src/include/fst/vector-fst.h:619
2 Thread 0x7fe918e02700 (LWP 12657) 0x00007fe8deb47b40 in ?? () from /usr/local/lib/python3.5/dist-packages/torch/lib/libgomp-c0d7b783.so.1
3 Thread 0x7fe916601700 (LWP 12656) 0x00007fe8deb47b40 in ?? () from /usr/local/lib/python3.5/dist-packages/torch/lib/libgomp-c0d7b783.so.1
4 Thread 0x7fe919603700 (LWP 12658) 0x00007fe8deb47b51 in ?? () from /usr/local/lib/python3.5/dist-packages/torch/lib/libgomp-c0d7b783.so.1
5 Thread 0x7fe927eb3700 (LWP 12610) syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
Mozilla Deepspeech also uses KenLM language models. What am I doing wrong? If the file formats are incompatible, the failure could be a bit more graceful.
Let me know if you need further info.
Are there any prepared language models that I could try out?
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (3 by maintainers)
Top Results From Across the Web
Python error: Segmentation fault when training - DeepSpeech
Hi, My ds-ctcdecoder version is 0.6.0a15 I am running Debian GNU/Linux 9.11 (stretch) x86_64 I am using DeepSpeech version 0.6.0-alpha.15 ...
Read more >Segmentation fault - DeepSpeech - Mozilla Discourse
Dear Support. I am facing an error. I Initializing variables… I STARTING Optimization Epoch 0 | Training | Elapsed Time: 0:37:58 | Steps: ......
Read more >Python error: Segmentation fault when training - DeepSpeech
I was able to train a model on 0.6.0 with our arabic character encodings. It looks like there was an issue with encoding...
Read more >Error running session: Not found: PruneForTargets: Some ...
Hi, I am trying to train my own model on some 1000 files which is about 1 ... not found: initialize_state Segmentation fault...
Read more >Python error: Segmentation fault when training - DeepSpeech
No, segfault with “Bus error” is weird, I don't know what we can do there. Please reproduce with latest 0.6.0, and share more...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You can download pretrained ones from: http://www.openslr.org/11/
Or more general models: http://www.keithv.com/software/giga/
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.