-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build Errors and Improper Inference for Patch-Based Inference #102
Comments
There is a workaround to build the patch-based inference codebase. Note: The following steps have to be done after cloning the repo and installing the python packages necessary.
cp TinyEngine/third_party/CMSIS/CMSIS/NN/Source/ConvolutionFunctions/arm_nn_mat_mult_kernel_s8_s16_reordered.c TinyEngine/src/kernels/int_forward_op/
diff --git a/TinyEngine/include/tinyengine_function.h b/TinyEngine/include/tinyengine_function.h
index 55f379c..bb4ed0b 100644
--- a/TinyEngine/include/tinyengine_function.h
+++ b/TinyEngine/include/tinyengine_function.h
@@ -17,6 +17,9 @@
* Target ISA: ARMv7E-M
* -------------------------------------------------------------------- */
+#include "arm_nnfunctions.h"
+#include "arm_nnsupportfunctions.h"
+
#include <math.h>
#include <stdbool.h>
#include <stdint.h> However, on running the code on the board, I am unable to get an inference result (using |
Simply renaming the function |
Thanks for the reply. We tried renaming the function to both
Nevertheless, I will add these inputs to the workarounds stated above. |
Building upon your insights, we've explored additional strategies, yet encountered persistent issues. Here's a summary:
While these adjustments occasionally impact prediction outcomes, the issue of classifying 'person' and 'no person' as the same remains consistent. |
@meenchen I am trying the tutorial(vww patchbased) and also getting the same build errors.
+#include "arm_nnfunctions.h"
+#include "arm_nnsupportfunctions.h"
#include <math.h>
#include <stdbool.h>
#include <stdint.h>
Finally, I build the project successfully but get wrong inference result as shown in the picture below. |
@Oslomayor Thank you for your assistance! Best regards |
@winffke I have no solution, good luck! |
I am trying to run the inference tutorial on STM32Cube IDE 1.5.0 as documented in the repo. However, on generating code using the script
examples/vww_patchbased.py
and moving the generated foldercodegen
to the inference project foldertutorial/TinyEngine_vww_tutorial/Src/TinyEngine
, the following errors are seen in the IDE.IDE console output is below.
Do let me know if any other data is required.
The text was updated successfully, but these errors were encountered: