cancel
Showing results for 
Search instead for 
Did you mean: 

Discrepancy in Predictions Between Laptop and STM Microcontroller for 1D CNN Model

khushbu_parmar
Visitor

I am working on deploying a 1D CNN model on an STM microcontroller using STM32CubeMX with the X-CUBE-AI package to convert the TensorFlow Lite model into C code.

While testing the model, I noticed significant discrepancies in predictions:

  • On Laptop: Using the quantized model for inference gives reasonable predictions.
  • On Microcontroller: Using the same test data, the predictions differ substantially when validating the model on hardware.

Steps Taken:

  1. Ensured the test data was preprocessed identically for both laptop and microcontroller predictions.
  2. Used X-CUBE-AI to generate C code from the quantized TFLite model.
  3. Deployed the generated C code on the microcontroller for validation.

Questions:

  1. What could cause such prediction differences between the laptop and microcontroller?
  2. Could this issue be related to quantization or numerical precision differences during deployment?
  3. Are there any additional steps or configurations in X-CUBE-AI to ensure consistent performance between platforms?

 

 

0 REPLIES 0