Page 1 of 1

trying to change the gapflow-mnist example

Posted: Tue Nov 16, 2021 11:19 am
by eladpar
Hey, I am trying to change the NN that is implemented through the gap-flow example mnist module,
in order to facilitate an infrastructure for running different custom NN on AI-deck.
So far I have managed to integrate the use of a camera in the mnist example,
but I am having trouble changing the given NN.
Specifically, where the constructor "modelCNN" is implemented (?)

(as given in line 54 https://github.com/bitcraze/AIdeck_exam ... odel.c#L54)
Your help will much be appreciated,
Elad.

Re: trying to change the gapflow-mnist example

Posted: Tue Nov 16, 2021 1:33 pm
by gemenerik
Hi Elad!
eladpar wrote: Tue Nov 16, 2021 11:19 am Specifically, where the constructor "modelCNN" is implemented (?)
This is determined by a prefix, in this example set in common.mk
Perhaps this is done to clarify what CNN will be called from the application code (although the prefix "model" doesn't tell you much), but I must say it is confusing.

Re: trying to change the gapflow-mnist example

Posted: Thu Nov 18, 2021 3:49 pm
by kimberly
That example was an attempt to make have an neural network application that is more separate to the SDK as it was implemented at the time.

The constructor get's build by the autotiler, so after you do make all those files are available to you.

But yes, the make file structure necessary for the SDK is confusing, I absolutely agree. It might be good to find another example to put here, but I also advise to look at the examples by greenwaves sdk as well: https://github.com/GreenWaves-Technologies/gap_sdk