Question/Issue:
While deploying the audio classification model on a raspberry pi zero and 5, I’m getting Error: Classifying failed, error code was -5.
Project ID:
relay-v4
Context/Use case:
I’m trying to run an audio classification model on a raspberry pi zero or raspberry pi 5. I’m able to successfully build the model for deployment on linux AARCH64 (for pi 5) and AARCHv7, but when i run the model using the edge-impulse-linux-runner command, the model fails with error code -5. I have a usb mic attached to the pi which get recognized by the model and i have tuned it to match the input frequency required for the model and have played around with different windowing samples.
Steps Taken:
- Build model for different linux architecture to run on pi 0 and pi 5
- Tried to run on a windows pc, but still getting same error
- Tried different usb and serial mic
- Tried to recreate the model
Expected Outcome:
model should be able to classify audio samples in live env.
Actual Outcome:
Error: Classifying failed, error code was -5
at LinuxImpulseRunner.classifyContinuous (/usr/local/lib/node_modules/edge-impulse-linux/build/library/classifier/linux-impulse-runner.js:326:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async onData (/usr/local/lib/node_modules/edge-impulse-linux/build/library/classifier/audio-classifier.js:84:35)
Reproducibility:
Always
Environment:
- Platform: RPI 0, RPI 5 (16GB)
- Build Environment Details: Linux AARCH64, Linux AARCHv7
- OS Version: [Raspbian OS, tried both- 32 bit and 64 bit]
- Edge Impulse Version (Firmware): [1.22.0]
- To find out Edge Impulse Version:
- if you have pre-compiled firmware: run edge-impulse-run-impulse --raw and type AT+INFO. Look for Edge Impulse version in the output.
- if you have a library deployment: inside the unarchived deployment, open model-parameters/model_metadata.h and look for EI_STUDIO_VERSION_MAJOR, EI_STUDIO_VERSION_MINOR, EI_STUDIO_VERSION_PATCH
- Edge Impulse CLI Version: [1.22.0]
- Project Version: [1.0.0]
-
Custom Blocks / Impulse Configuration: [impulse configuration]
Logs/Attachments:
included above