bitcraze / aideck-gap8-examples

Examples on how to use the GAP8 on the AI-deck
46 stars 49 forks source link

Issues with the classification demo #91

Closed knmcguire closed 1 year ago

knmcguire commented 2 years ago

Soon PR #89 will be merged but there are still issues with it though.

This all still needs to be investigated

aqqz commented 2 years ago

Is the current ai example must run on the sdk4.7 version, I use the lastest 4.12 version can not run it, it seems memory problems.

knmcguire commented 2 years ago

It's based on the bitcraze/aideck docker container, which is SDK 4.8. Interesting that there are issues with the latest SDK! That really means that this example is right on the border of what it can handle together with the bootloader and CPX.

Did you flash the example over air or with a programmer (so without the bootloader) ?

aqqz commented 2 years ago

Yes, I have not test the bootloader ways, test it on the jtag progarmmer.

knmcguire commented 2 years ago

ah woow, then it really takes up a lot of memory then, even if I reduced the message queues. of cpx

I was planning to at one point try these networks : https://github.com/GreenWaves-Technologies/image_classification_networks and see which work with CPX. I won't have time for that for the next few weeks. Perhaps that is something you can already look at?

eladpar-rnd commented 2 years ago

I couldn't run the example on SDK 4.12 (as mentioned in closed issue) but reverting to GAP SDK 4.8.0 solved the problem

in the mean time, i have finished compiling the example (got the img file) but the flashing part dosnn't work: Screenshot from 2022-08-14 15-22-57

Is it possible to get a few words on how to flash the GAP8 with the .img file via the JTAG? @aqqz

knmcguire commented 2 years ago

@eladpar-rnd Your followup questions is not related to this issue. Could you please post the question in Q&A of https://discussions.bitcraze.io/

knmcguire commented 1 year ago

Just a comment, there has been a thought about cpx not being thread safe, so that it is actually not about the size of the networks. See this ticket: https://github.com/bitcraze/aideck-gap8-examples/issues/100