When trying to use the pre-trained model in Raspberry 3 with Raspbian Jessie I get this error. I suspect I am running out of memory as the error takes some time to appear while my memory consumption builds up.
I used the binary version of Tensorflow using the instructions here. The only change that I did was:
python util/taskcluster.py --arch arm --target /path/to/destination/folder
lissyx
((slow to reply) [NOT PROVIDING SUPPORT])
6
@fotiDim Right, so it’s likely I did an error when handling the merge of r1.4 TensorFlow. They use RASPBERRY_PI define to do the same as we did with __ARM_RPI__. Our build does properly define __ARM_RPI__ but not RASPBERRY_PI, and the check is against the absence of those defines. So it means out builds are defining IS_MOBILE_PLATFORM while it should not. Once tasks in https://tools.taskcluster.net/groups/XmLsLKXdQ3OTfzfdDQPM3Q gets completed we can retrigger a build against those artifacts and it should solve the issue :). I’m on a flight right now between Paris and Boston, and given the build time of TensorFlow (3h at least) it’s likely I won’t be able to handle all of that before I do reach Austin.
lissyx
((slow to reply) [NOT PROVIDING SUPPORT])
7
lissyx
((slow to reply) [NOT PROVIDING SUPPORT])
9
So, it looks like I will be able to merge that:
Reproducing your error with current bogus artifact:
pi@raspberrypi:~/nc_r1.3 $ ./deepspeech ~/tmp/output_graph.pb ~/wav/LDC93S1.wav ~/tmp/alphabet.txt
Invalid argument: No OpKernel was registered to support Op 'SparseToDense' with these attrs. Registered devices: [CPU], Registered kernels:
device='CPU'; T in [DT_STRING]; Tindices in [DT_INT64]
device='CPU'; T in [DT_STRING]; Tindices in [DT_INT32]
device='CPU'; T in [DT_BOOL]; Tindices in [DT_INT64]
device='CPU'; T in [DT_BOOL]; Tindices in [DT_INT32]
device='CPU'; T in [DT_FLOAT]; Tindices in [DT_INT64]
device='CPU'; T in [DT_FLOAT]; Tindices in [DT_INT32]
device='CPU'; T in [DT_INT32]; Tindices in [DT_INT64]
device='CPU'; T in [DT_INT32]; Tindices in [DT_INT32]
[[Node: SparseToDense = SparseToDense[T=DT_INT64, Tindices=DT_INT64, validate_indices=true](CTCBeamSearchDecoder, CTCBeamSearchDecoder:2, CTCBeamSearchDecoder:1, SparseToDense/default_value)]]
Segmentation fault
Using build I made:
pi@raspberrypi:~/nc_r1.4 $ ./deepspeech ~/tmp/output_graph.pb ~/wav/LDC93S1.wav ~/tmp/alphabet.txt
she had your dark suit in greasy wash water all year
@lissyx shall I open another discussion for the accuracy or should I wait for the next release first? Not that I only face the accuracy problem on the Raspberry Pi.
lissyx
((slow to reply) [NOT PROVIDING SUPPORT])
17
Yes, please open another thread so we do not pollute this one
@lissyx I am giving it another go. I made a clean install and installed everything from scratch. I am getting the same error and your link for the updated binaries does not work anymore. Can re-upload or even better put them on Github?
lissyx
((slow to reply) [NOT PROVIDING SUPPORT])
19
I gave it another go with your files. I tried another power supply and I had the same problems. There must be a fundamental difference with mine and your setup. Is it possible to export the img from your SD card and I burn onto my SD?