DeepSpeech: Running python DeepSpeech.py on my machine ends prematurely with an error

What should I do? This is the command line log of effects when DeepSpeech.py is run on my machine.

I just installed vanilla TensorFlow with pip install tensorflow and then installed DeepSpeech by following the instructions on the README on GitHub. Did I forget something?

Shyamals-iMac:DeepSpeech shyamalchandra$ python DeepSpeech.py 
Loading the LM will be faster if you build a binary file.
Reading /Users/shyamalchandra/DeepSpeech/data/lm/lm.arpa
----5---10---15---20---25---30---35---40---45---50---55---60---65---70---75---80---85---90---95--100
****************************************************************************************************
Traceback (most recent call last):
  File "DeepSpeech.py", line 23, in <module>
    from util.spell import correction
  File "/Users/shyamalchandra/DeepSpeech/util/spell.py", line 9, in <module>
    MODEL = kenlm.Model('./data/lm/lm.arpa')
  File "kenlm.pyx", line 117, in kenlm.Model.__init__ (python/kenlm.cpp:2242)
IOError: Cannot read model './data/lm/lm.arpa' (lm/read_arpa.cc:65 in void lm::ReadARPACounts(util::FilePiece &, std::vector<uint64_t> &) threw FormatLoadException. first non-empty line was "version https://git-lfs.github.com/spec/v1" not \data\. Byte: 43)

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 25 (8 by maintainers)

Most upvoted comments

I assume you didn’t compile deepspeech from source, but did a pip install.

With that assumption note that the argument ordering of deepspeech changed between the 0.1.1 release[1] and master[2], which you are referring to for your command line argument ordering.

As you have 0.1.1 (or 0.1.0) installed you should use the following odering

./deepspeech models/output_graph.pb audio_input.wav models/alphabet.txt models/lm.binary models/trie

You need to checkout the DeepSpeech repo after installing git lfs[1]

i have installed git lfs and still get the same error