trying to change the gapflow-mnist example

Discussions about the AI-deck
Post Reply
eladpar
Beginner
Posts: 1
Joined: Tue Nov 16, 2021 11:13 am

trying to change the gapflow-mnist example

Post 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.
gemenerik
Beginner
Posts: 19
Joined: Wed Apr 07, 2021 11:11 am

Re: trying to change the gapflow-mnist example

Post 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.
kimberly
Bitcraze
Posts: 1050
Joined: Fri Jul 06, 2018 11:13 am

Re: trying to change the gapflow-mnist example

Post 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
Post Reply