You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I trained my simple model for grayscale 96*96 images and transferred it to the onnx model, then I tried to deploy the model on the ESP32-CAM board, after several attempts, I finally managed to run my code without errors, but the problem is that the accuracy has decreased from 99% to nearly 10%. In my code I load images from raw files saved by numpy library.
intrun_inference(void *image){
Tensor<int16_t> input;
input.set_element((int16_t *)image).set_exponent(input_exponent).set_shape({96, 96, 1}).set_auto_free(false);
model.forward(input);
auto *score = model.l10.get_output().get_element_ptr();
auto max_score = score[0];
int max_index = 0;
for (size_t i = 1; i < 10; i++)
{
if (score[i] > max_score)
{
max_score = score[i];
max_index = i;
}
}
return (max_index);
}
Also confusion matrix is:
Did I commit errors? I have already tested loading images from SD card with MNIST model without any problems.
The text was updated successfully, but these errors were encountered:
github-actionsbot
changed the title
Accuracy drop significantly after deploying model on ESP32
Accuracy drop significantly after deploying model on ESP32 (AIV-603)
Apr 7, 2023
Hello everyone, I finally solved this problem here with a lot of experiments and I want to let you know about my repository AI_EDGE which has all the useful information and tools to implement a successful benchmark from SD Card.
Hi, I trained my simple model for grayscale 96*96 images and transferred it to the onnx model, then I tried to deploy the model on the ESP32-CAM board, after several attempts, I finally managed to run my code without errors, but the problem is that the accuracy has decreased from 99% to nearly 10%. In my code I load images from raw files saved by numpy library.
And for loading images from SDcard:
Also confusion matrix is:
Did I commit errors? I have already tested loading images from SD card with MNIST model without any problems.
The text was updated successfully, but these errors were encountered: