How were you able to download the .eim x86 model file? I will appreciate your details.
Hello @rgvgreatcoder,
x86 on Linux is not yet officially supported (consequently either documented). However, we needed it for a project so most of the work has been done and you should be able to download it when downloading it from your Ubuntu machine.
Can you try to install Edge Impulse Linux CLI from your Ubuntu machine please to be able to download the model?
npm install edge-impulse-linux -g
Then, if you run the helper, you should see the following output:
edge-impulse-linux-runner --help
Usage: edge-impulse-linux-runner [options]
Edge Impulse Linux runner 1.2.6
Options:
-V, --version output the version number
--model-file <file> Specify model file, if not provided the model will be fetched from Edge Impulse
--api-key <key> API key to authenticate with Edge Impulse (overrides current credentials)
--download <file> Just download the model and store it on the file system
--clean Clear credentials
--silent Run in silent mode, don't prompt for credentials
--quantized Download int8 quantized neural networks, rather than the float32 neural networks. These might run faster on some architectures, but
have reduced accuracy.
--enable-camera Always enable the camera. This flag needs to be used to get data from the microphone on some USB webcams.
--dev List development servers, alternatively you can use the EI_HOST environmental variable to specify the Edge Impulse instance.
--verbose Enable debug logs
-h, --help output usage information
So make sure you can run the standalone inference using:
edge-impulse-linux-runner --model-file coin-detector.eim
If theses steps work, you can use our Python SDK to go further.
Note that I haven’t fully used our Python SDK on linux yet, I will probably use it later this month in order to prepare the following webinar: https://www.sparkfun.com/perfecting_factory_5_with_edge
Regards,
Louis
@rgvgreatcoder @louis Note: x86 on Linux is officially supported. If you want to download from the Studio go to Dashboard, and enable ‘Show Linux deploys’. You can then download all available eim models from the Deployment page.
You can also download via the CLI via:
edge-impulse-linux-runner --download mymodel.eim --force-target runner-linux-x86_64
Guys,
I wanted to share that I was able to run both: edge impulse CLI and edge impulse library in my Python code, in my Ubuntu 20.04 that runs in WSL2 in my Windows 10 machine!
Using the Windows Terminal to open up Ubuntu, I ran the following:
pip3 install edge_impulse_linux # To use in the Python code
npm install edge-impulse-linux -g # To install the CLI
Then I used Visual Studio Code with the “Remote - WSL” plug in, I was basically running VSCode inside Ubuntu machine. So in there, I created the my new Python project.
To use the edge impulse model (.eim file) on my Python code, I ran the following command to download it (as you mentioned above):
edge-impulse-linux-runner --download mymodel.eim --force-target runner-linux-x86_64
I had no issues after that. Thank you all for your support! …