Error with sample model on Raspbian Jessie

(Lissyx) #21

We could, but I’ll have to be in the office to do that, so not before tomorrow at best. Besides, can you sha1sum to verify everything? Models, audio, code, libs?

(Foti Dim) #22

There you go:
224594024eed9d69d4c85a90a0f24fb2e3bfe19b ./models/trie
b90017e816572ddce84f5843f1fa21e6a377975e ./models/output_graph.pb
47d7a0e69778a3cc3c4012cbdee122401df0dca3 ./models/lm.binary
163607ce1fe2135c7b3b130b6b0bc16c47bb209c ./models/alphabet.txt

1f20d309fb3a07d5dad01f934adcaa8ee5656154  ./bin/README.mozilla
26d885f7a8557c293f42ae72c51f5340e4454bab  ./bin/deepspeech
27e1ac471eead95e8389e67fef8abf5446475b0b  ./bin/
71ee4a4524235a94d463853b381ca0dc7c81171b  ./bin/
029ecf9d7b5a8dfdd5bdf7146a7c128111abab45  ./bin/
2be65d4ff1d982f78d4f45a900c5ee9627ad59da  ./bin/
6023b6a9d16e1febe8bf5d2e5ac1269e9f0fc116  ./bin/
8e6627932560a0b5a33e3a1ee8ebbc0da5e4fa29  ./bin/generate_trie
d22157abc0fc0b4ae96380c09528e23cf77290a9  ./bin/LICENSE

I have realised a few things:

  • The very first error that I got was because of lm.binary which is around 1,5GB. It does not fit into RPi’s memory and that is why it crashes.
  • The second error that I got (trying without lm.binary) got resolved by using your “LDC93S1” output_graph.pb. Of course recognition was totally off in that case.

So the questions arise:

  • What is the lm.binary file and is it really needed?
  • How can accuracy be achieved without the lm.binary file?
  • Is there a proper output_graph.pb that I can use?

(Lissyx) #23

lm.binary is the language model, used to improve recognition when accoustic model was phonetically right but the word was wrong.

For output_graph.pb, I think the one I used for “good” decoding was the test overfit LC93S1.

(Lissyx) #24

I just checked @fotiDim and in my tests above, perfect decoding was achieved on overfitted LDC93S1 output_graph.pb

(Lissyx) #25
pi@raspberrypi:~/tc/rpi3-cpu $ time ./deepspeech ~/models-release/models/output_graph.pb ~/models-release/audio/2830-3980-0043.wav ~/models-release/models/alphabet.txt -t
experience proves les
cpu_time_overall=80.82691 cpu_time_mfcc=0.02943 cpu_time_infer=80.79748

real	1m39.378s
user	1m17.210s
sys	0m6.850s

(Lissyx) #26

SHA1 for release’s output_graph.pb and alphabet.txt matches yours, but as you can see in the post above, I have proper decoding.

(Foti Dim) #27

That is weird then. Can I ask as last favor to hand out the .img from your sd card?

(Lissyx) #28

Send me an email in private

(Foti Dim) #29

@lissyx just sent it