Does anyone know of any good inference tutorials using Python

Hello All,

Does anyone know of any good inference tutorials using python for models produced by edge impulse? I’m wanting to run the model on a raspberry pi. The particular use case I have in mind is on vibration data.

Many Thanks

Hi @kelter101757, not at the moment. I know some people have tried wasmer (https://github.com/wasmerio/wasmer-python) to interact with the WebAssembly export, but it’s not ideal.

A quick fix could be to compile https://github.com/edgeimpulse/example-standalone-inferencing with your model (just follow the steps, no C++ experience required), then just call the executable from Python.

We’ll come out with a better solution somewhere before the summer!

A few extra steps but looks easy enough.

@kelter101757 We now have some docs on this here: https://docs.edgeimpulse.com/docs/through-webassembly-other-programming-languages

1 Like

Thanks for the post. I tried to run it on Raspberry Pi and I get the follow message “error: The system architecture (armv7l) is not yet supported by this installation script.”. Does anyone know how to get around this?
I’m running Raspbian GNU/Linux 10 (buster) and hardware details are :

4.19.75-v7+
#1270 SMP Tue Sep 24 18:45:11 BST 2019
armv7l GNU/Linu

Which install script gives this error? It looks like wasmer should run on the Pi from their docs.