NN support on OpenMV

General discussion about topics related to OpenMV.
User avatar
ericchu923
Posts: 9
Joined: Mon May 06, 2019 2:09 am

NN support on OpenMV

Postby ericchu923 » Tue Dec 10, 2019 3:10 am

Hi everyone, I use OpenMV M7 On my school project.
I have some question for OpenMV.
1. Because heap is too small , so can I run my nn network on SD card instead to use ram ?
2. I know ARM's CMSIS-NN are extremely out of date, but I need to use these tools to train my network for my school project.
How can I reduce my network size for my M7 cam? Until now, I tried smile network and chars74k dataset trained a to z (26 outputs)
And trained network size is 49kb. I need to train smaller network to free my ram (like cifar10-fast).
3. Where are tensorflow's tutorial? this tutorial's link is dead:
https://github.com/tensorflow/tensorflo ... a_model.md

Sorry for poor English, any opinions are welcome. Thank you.
User avatar
iabdalkader
Posts: 1214
Joined: Sun May 24, 2015 3:53 pm

Re: NN support on OpenMV

Postby iabdalkader » Tue Dec 10, 2019 4:32 pm

Hi,

* By M7 do you mean F7 ? or H7 ? The H7 has enough memory to run bigger networks.
* No networks can't run from SD they need to be loaded in RAm.
* You can make networks smaller by removing layers (or making layers smaller).
* I'm not sure what's the current state of Tensorflow support is, you'd have to ask Kwabena about this.
User avatar
kwagyeman
Posts: 4431
Joined: Sun May 24, 2015 2:10 pm

Re: NN support on OpenMV

Postby kwagyeman » Thu Dec 12, 2019 2:49 pm

Hi, I'll update the links, there's really no TensorFlow tutorial yet. The support is still really alpha right now. Just the person detector network Google trained and mobilenet seem to work. It's going to be a while for all the fixes for the software to get done from Google.
Nyamekye,
Oligarch007
Posts: 1
Joined: Mon Dec 30, 2019 1:52 am

Re: NN support on OpenMV

Postby Oligarch007 » Mon Dec 30, 2019 5:45 am

Hey there....
I had just trained my caffe model (cat and dog classifier).
And have gone through the tutorial provided by you guys, wiz.(https://community.arm.com/innovation/b/ ... openmv-cam). I further quantized the model and convert it into binary file with .network extension.

But the problem being my .network file is about 50mb in size. I am total naive at deep-learning and machine learning.
I dont know now what to do make it work. As i've seen many issues about network file size on the forum. Please guide me through , so i can deploy my own model on my OpenMV cam.

p.s. - i've been following (http://adilmoujahid.com/posts/2016/06/i ... hon-caffe/) for training the above model of my own.
User avatar
kwagyeman
Posts: 4431
Joined: Sun May 24, 2015 2:10 pm

Re: NN support on OpenMV

Postby kwagyeman » Mon Dec 30, 2019 4:17 pm

Hi, we are moving all our support to using TensorFlow models now. Please see the tf module: http://docs.openmv.io/library/omv.tf.ht ... #module-tf

Please note that you need to make sure you use mobilenet as the model you use transfer learning with. Google has not yet released all operations yet to make keras work in a general purpose way. We are waiting on better support from google still and ARM linking ARM CMSIS-NN in. We expect everything to get done in 2020.
Nyamekye,

Return to “General Topics”

Who is online

Users browsing this forum: No registered users and 4 guests