Git-lfs | 'lm::FormatLoadException'

I installed git-lfs before cloning deepspeech 0.6.1

!sudo add-apt-repository -y ppa:git-core/ppa
!sudo apt-get update
!curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh.deb | bash
!sudo apt-get -y install git-lfs git

Then

!git clone https://github.com/mozilla/DeepSpeech/ 
!cd DeepSpeech && git checkout v0.6.1 

On

!./bin/run-ldc93s1.sh

I am getting the following error. I have read on other posts that this is due to bad install of git-lfs. I tried installing it again, after removing the deepspeech clone, but still getting the same error.

Loading the LM will be faster if you build a binary file.
Reading data/lm/lm.binary
----5---10---15---20---25---30---35---40---45---50---55---60---65---70---75---80---85---90---95--100
terminate called after throwing an instance of 'lm::FormatLoadException'
  what():  ../kenlm/lm/read_arpa.cc:65 in void lm::ReadARPACounts(util::FilePiece&, std::vector<long unsigned int>&) threw FormatLoadException.
first non-empty line was "version https://git-lfs.github.com/spec/v1" not \data\. Byte: 43
Fatal Python error: Aborted

Thread 0x00007f07ffff8700 (most recent call first):
  File "/usr/lib/python3.6/threading.py", line 295 in wait
  File "/usr/lib/python3.6/queue.py", line 164 in get
  File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/summary/writer/event_file_writer.py", line 159 in run
  File "/usr/lib/python3.6/threading.py", line 916 in _bootstrap_inner
  File "/usr/lib/python3.6/threading.py", line 884 in _bootstrap

Thread 0x00007f085e418700 (most recent call first):
  File "/usr/lib/python3.6/threading.py", line 295 in wait
  File "/usr/lib/python3.6/queue.py", line 164 in get
  File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/summary/writer/event_file_writer.py", line 159 in run
  File "/usr/lib/python3.6/threading.py", line 916 in _bootstrap_inner
  File "/usr/lib/python3.6/threading.py", line 884 in _bootstrap

Current thread 0x00007f08d974e780 (most recent call first):
  File "/usr/local/lib/python3.6/dist-packages/ds_ctcdecoder/swigwrapper.py", line 279 in init
  File "/usr/local/lib/python3.6/dist-packages/ds_ctcdecoder/__init__.py", line 30 in __init__
  File "/content/DeepSpeech/evaluate.py", line 48 in evaluate
  File "DeepSpeech.py", line 684 in test
  File "DeepSpeech.py", line 951 in main
  File "/usr/local/lib/python3.6/dist-packages/absl/app.py", line 250 in _run_main
  File "/usr/local/lib/python3.6/dist-packages/absl/app.py", line 299 in run
  File "DeepSpeech.py", line 974 in <module>
Aborted (core dumped)

Adding
!git lfs install

resolves the issue!

1 Like