Illegal Instruction error on Rasberry Pi

Hi,

I am aware deepspeech on raspi would be experimental but I tried anyways.

I installed python3 on my Rasberry Pi (Raspian with ARMv7)

Then I did pip3 install deepspeech.

The library installed without any error.

I am trying to run pretrained models using command prompt but it gives me error ‘Illegal Instruction’ after it prints ‘Loading model from
/model/output_graph.pb’.

Does someone knows what to do to fix? or what to try?

Thanks in advance

RPi or RPi3 ? The very first RPi is not even ARMv7. We do specifically target the RPi3.

I am on RPi3.

Hm. Which version of Raspbian?
Can you try the alpha? pip3 install --upgrade deepspeech==0.2.0a5 ?

As you can see, others are getting it to work properly: Error while running sample model on Raspbian GNU/Linux 9.4 (stretch)

Hold on. Sorry. I think I misinterpreted. The raspberry I have is rpi2modelb v1.1. Will this still work?

Nope, RPi3B is Cortex-A53 which we target for, and yours is Cortex-A7. So it’s likely there’s differences in the instructions set. If you feel brave enough, it’s doable to rebuild (cross-compilation), but you will have to adjust a few flags to match your hardware when building: https://github.com/mozilla/tensorflow/blob/r1.6/tools/bazel.rc#L52-L56

Could you update your initial topic title ? So that people know easier it’s RPi2 v1.1 hardware.

Sure. Also thanks for your help