mit-han-lab / tinyengine

[NeurIPS 2020] MCUNet: Tiny Deep Learning on IoT Devices; [NeurIPS 2021] MCUNetV2: Memory-Efficient Patch-based Inference for Tiny Deep Learning; [NeurIPS 2022] MCUNetV3: On-Device Training Under 256KB Memory
https://mcunet.mit.edu
MIT License
806 stars 131 forks source link

Problem when doing inference tutorial #30

Closed rodonguyen closed 1 year ago

rodonguyen commented 1 year ago

Hi team,

This is quite an amateur question but I'm doing the Inference Tutorial up to step 2 (created a new directory and moved libraries).

So up to this point, I just want to run the empty int main(void) to make sure the libraries are loaded successfully and use another model in the future. I

Still, in main.cpp, the error appears in the first line #include "main.h" saying fatal error: main.h: No such file or directory despite it is in Inc and included in includePath. What should I do to resolve this issue?

image
Image 1
image
Image 2

Appreciate any support you can provide :) Please ask me if you need any clarification. Rodo

rodonguyen commented 1 year ago

One more question actually, these packages (in Src/main.cpp) are nowhere to be found in TinyEngine repo: #include "genNN.h", #include "tinyengine_function.h", "stm32746g_discovery.h". Could you explain it?

Sorry VSCode search apparently doesn't work properly, I found them with search in folder explorer.

rodonguyen commented 1 year ago

So I think the reason it doesn't run properly is that it requires STM32CudeIDE (a compatible IDE), which is step 3.