-
Notifications
You must be signed in to change notification settings - Fork 201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CMSIS-NN CIFAR10 example for STM32F746G-DISCO does not work? #16
Comments
Not sure if I call it a workaround but finally I have this example running.
it means I just simply cut this one:
|
Hello marcin_ch, I am currently working on this project for my thesis. Please I need help getting it through. Do you have the link to step by step procedures so that I can follow? |
Hi @youngolutosin , |
I have gone through the steps and I was able to Implement the first basic camera example and it worked. I am stucked at check failed:mdb_status == 0 (2 vs.0) No file or directory. I have edited the mean_file and source file but in caffe/exmaples/cifar10 directory, I don't have mean.binaryproto, cifar10_train_lmdb and cifar10_test_lmdb. Please how did you solve the problem? Thank you in advance. |
Hi @youngolutosin , And then have a look at issue I created here with the same question as you. Hope that helps. |
Thank you for your response. I already figured out the problem. My project
is working now. Seems the model is sensitive to some pictures. I an working
on how to train the model with my own dataset and reduce the class to the
specific I wanted.
Thank you and I really appreciate.
Regards,
Young.
…On Mon, 15 Jul 2019, 12:58 marcin-ch, ***@***.***> wrote:
Hi @youngolutosin <https://github.com/youngolutosin> ,
first of all, make sure you double-checked Troubleshooting guide
<https://developer.arm.com/solutions/machine-learning-on-arm/developer-material/how-to-guides/image-recognition-on-arm-cortex-m-with-cmsis-nn/troubleshooting>
And then have a look at issue I created here
<#14> with the same
question as you. Hope that helps.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#16?email_source=notifications&email_token=AK2TEGPX375RZYUVYQV4ABTP7RC4TA5CNFSM4HJC4N2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZ5HJNA#issuecomment-511341748>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AK2TEGJZK4272STVYUIOTFDP7RC4TANCNFSM4HJC4N2A>
.
|
@youngolutosin ,
And what may be also helpful for you is the keyword: Hope that helps and good luck! |
@marcin-ch @youngolutosin Hello ! I'm doing the same CMSIS_NN CIFAR10 example ,following the same guide ,but I met some problems. It seems that you have done it successfully, and I will be very grateful if you offered some help! |
Hi @youngolutosin @marcin-ch @shell0108 , I'm currently working on this project for my thesis as well. Did you notice a difference when running the model on the board or on a laptop? |
Hi,
The accuracy of the cifar model after optimization will obviously reduce
due to the conversion of the model from float32 into fixed point integer.
This technique compresses the model and it affects the performance of the
model.
You know the idea is to find a balance between speed, accuracy and model
size so that the model will fit into the flash and ram respectively. This
is very difficult to achieve.
I cannot remember the precise amount of drop in accuracy, but yes, the
accuracy dropped when I ran it on the board.
You can look into STM32 CubeAI software expansion (it supports Keras,
TFlowLite, Caffe, ONNX etc). Alot of improvement has been made ever since
and you can achieve a better result using this.
I hope it helps.
Cheers.
…On Sun, 8 Nov 2020 at 12:05, Josh Bindels ***@***.***> wrote:
Hi @youngolutosin <https://github.com/youngolutosin> @marcin-ch
<https://github.com/marcin-ch> @shell0108 <https://github.com/shell0108> ,
I'm currently working on this project for my thesis as well.
Did you notice a difference when running the model on the board or on a
laptop?
When I run accuracy tests using caffe or as a python script on my host
machine I'm getting a decent accuracy. But, when I run a similar accuracy
test on the board the accuracy is quite low, ~30%.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#16 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AK2TEGN32GXWT223NC4JAZTSOZUNTANCNFSM4HJC4N2A>
.
--
*Warm Regards,*
*Ademola Olutosin Ajibola*
*Master Communicative Electronics,*
*+37257844919,*
*Tallinn University of Technology, School of Information Technology,*
*Ehitajate tee 5, 19086, Tallinn, Estonia.*
|
This looks very promising!
Thank you, I really appreciate it!
On Sun, 8 Nov 2020 at 11:17 AM, youngolutosin <[email protected]>
wrote:
… Hi,
The accuracy of the cifar model after optimization will obviously reduce
due to the conversion of the model from float32 into fixed point integer.
This technique compresses the model and it affects the performance of the
model.
You know the idea is to find a balance between speed, accuracy and model
size so that the model will fit into the flash and ram respectively. This
is very difficult to achieve.
I cannot remember the precise amount of drop in accuracy, but yes, the
accuracy dropped when I ran it on the board.
You can look into STM32 CubeAI software expansion (it supports Keras,
TFlowLite, Caffe, ONNX etc). Alot of improvement has been made ever since
and you can achieve a better result using this.
I hope it helps.
Cheers.
On Sun, 8 Nov 2020 at 12:05, Josh Bindels ***@***.***>
wrote:
> Hi @youngolutosin <https://github.com/youngolutosin> @marcin-ch
> <https://github.com/marcin-ch> @shell0108 <https://github.com/shell0108>
,
>
> I'm currently working on this project for my thesis as well.
>
> Did you notice a difference when running the model on the board or on a
> laptop?
> When I run accuracy tests using caffe or as a python script on my host
> machine I'm getting a decent accuracy. But, when I run a similar accuracy
> test on the board the accuracy is quite low, ~30%.
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <
#16 (comment)
>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AK2TEGN32GXWT223NC4JAZTSOZUNTANCNFSM4HJC4N2A
>
> .
>
--
*Warm Regards,*
*Ademola Olutosin Ajibola*
*Master Communicative Electronics,*
*+37257844919,*
*Tallinn University of Technology, School of Information Technology,*
*Ehitajate tee 5
<https://www.google.com/maps/search/Ehitajate+tee+5?entry=gmail&source=g>,
19086, Tallinn, Estonia.*
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#16 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABZCLFT7W7UK5VPF63UQVXLSOZV3VANCNFSM4HJC4N2A>
.
|
You are welcome.
…On Sun, 8 Nov 2020 at 17:02, Josh Bindels ***@***.***> wrote:
This looks very promising!
Thank you, I really appreciate it!
On Sun, 8 Nov 2020 at 11:17 AM, youngolutosin ***@***.***>
wrote:
> Hi,
>
> The accuracy of the cifar model after optimization will obviously reduce
> due to the conversion of the model from float32 into fixed point integer.
> This technique compresses the model and it affects the performance of the
> model.
>
> You know the idea is to find a balance between speed, accuracy and model
> size so that the model will fit into the flash and ram respectively. This
> is very difficult to achieve.
>
> I cannot remember the precise amount of drop in accuracy, but yes, the
> accuracy dropped when I ran it on the board.
>
> You can look into STM32 CubeAI software expansion (it supports Keras,
> TFlowLite, Caffe, ONNX etc). Alot of improvement has been made ever since
> and you can achieve a better result using this.
>
> I hope it helps.
>
> Cheers.
>
>
> On Sun, 8 Nov 2020 at 12:05, Josh Bindels ***@***.***>
> wrote:
>
> > Hi @youngolutosin <https://github.com/youngolutosin> @marcin-ch
> > <https://github.com/marcin-ch> @shell0108 <
https://github.com/shell0108>
> ,
> >
> > I'm currently working on this project for my thesis as well.
> >
> > Did you notice a difference when running the model on the board or on a
> > laptop?
> > When I run accuracy tests using caffe or as a python script on my host
> > machine I'm getting a decent accuracy. But, when I run a similar
accuracy
> > test on the board the accuracy is quite low, ~30%.
> >
> > —
> > You are receiving this because you were mentioned.
> > Reply to this email directly, view it on GitHub
> > <
>
#16 (comment)
> >,
> > or unsubscribe
> > <
>
https://github.com/notifications/unsubscribe-auth/AK2TEGN32GXWT223NC4JAZTSOZUNTANCNFSM4HJC4N2A
> >
> > .
> >
>
>
> --
>
>
>
>
>
> *Warm Regards,*
>
> *Ademola Olutosin Ajibola*
>
> *Master Communicative Electronics,*
>
> *+37257844919,*
>
>
> *Tallinn University of Technology, School of Information Technology,*
>
> *Ehitajate tee 5
> <https://www.google.com/maps/search/Ehitajate+tee+5?entry=gmail&source=g
>,
> 19086, Tallinn, Estonia.*
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <
#16 (comment)
>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/ABZCLFT7W7UK5VPF63UQVXLSOZV3VANCNFSM4HJC4N2A
>
> .
>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#16 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AK2TEGIYV7JELNDS64RAFT3SO2XHXANCNFSM4HJC4N2A>
.
--
*Warm Regards,*
*Ademola Olutosin Ajibola*
*Master Communicative Electronics,*
*+37257844919,*
*Tallinn University of Technology, School of Information Technology,*
*Ehitajate tee 5, 19086, Tallinn, Estonia.*
|
Hello @marcin-ch I know this is a very old project for you, but I am trying to figure out this camera for another project and I am having trouble with the stm32 DCMI. I was wondering if you could upload the generated bin file you get when running the lines: cd cmsisnn_demo/ Although my end goal is ML, I really need to figure out how to use the camera first. I would really appreciate any advice or help, thanks!! |
where should this |
Can you share your project report, I am working image recognition using cortex processor with cmsis library, can you help me in completing the project, I don't have much knowledge on this topic. |
@NarendraKumarMadireddy seems this is the one |
It’s been awhile. I really do not have access to this project anymore.
On Tue, 15. Aug 2023 at 01:25, marcin-ch ***@***.***> wrote:
@NarendraKumarMadireddy <https://github.com/NarendraKumarMadireddy> seems
this is the one
Image recognition on Arm Cortex-M with CMSIS-NN.pdf
<https://github.com/ARM-software/ML-examples/files/12339969/Image.recognition.on.Arm.Cortex-M.with.CMSIS-NN.pdf>
and Youtube video as well which might be helpful
Image recognition on Arm Cortex-M with CMSIS-NN in 5 steps
<https://www.youtube.com/watch?v=EkYp0glSenE>
—
Reply to this email directly, view it on GitHub
<#16 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AK2TEGL3WTFJLAQMPKQXIQDXVKQWRANCNFSM4HJC4N2A>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
*Regards,*
*Olutosin Ademola*
*+37253564286,*
*DevOps Engineer | ML Engineer*
*Tallinn, Estonia.*
|
Can you share your project report, I am working on this image recognition using cortex processor with cmsis library, can you help me in completing the project, I don't have much knowledge on this topic. Can you share the correct detailed step by step process. |
Can you share your project report, I am working image recognition using cortex processor with cmsis library, can you help me in completing the project, I don't have much knowledge on this topic. Can you share me the step by step procedure please 🥺. |
Can you share your project report, I am working image recognition using cortex processor with cmsis library, can you help me in completing the project, I don't have much knowledge on this topic. Can you share me the step by step procedure 🥺 please |
I don’t have access to the project anymore. Please sto spamming.
On Tue, 15. Aug 2023 at 15:31, Narendra Kumar ***@***.***> wrote:
Hi @youngolutosin <https://github.com/youngolutosin> @marcin-ch
<https://github.com/marcin-ch> @shell0108 <https://github.com/shell0108> ,
I'm currently working on this project for my thesis as well.
Did you notice a difference when running the model on the board or on a
laptop?
When I run accuracy tests using caffe or as a python script on my host
machine I'm getting a decent accuracy. But, when I run a similar accuracy
test on the board the accuracy is quite low, ~30%.
Can you share your project report, I am working image recognition using
cortex processor with cmsis library, can you help me in completing the
project, I don't have much knowledge on this topic.
Can you share me the step by step procedure 🥺 please
—
Reply to this email directly, view it on GitHub
<#16 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AK2TEGLZGHOMYGE5MLC72TDXVNT37ANCNFSM4HJC4N2A>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
*Regards,*
*Olutosin Ademola*
*+37253564286,*
*DevOps Engineer | ML Engineer*
*Tallinn, Estonia.*
|
Thankyou but can you share me some report or etc , I am new to Linux and caffe |
Sorry , thankyou |
Last question, do anyone have the windows version tutorial/PDFs/report of this project? |
Hello All,
I am following this Image recognition on Arm Cortex-M with CMSIS-NN guide
I have exactly the same hardware:
the same software installed
and I am able to reproduce all mentioned in the guide steps (including building basic camera app, quantizing the model, converting the model), except the final one! = Deploy transformed model on an Arm Cortex-M processor
The final call is:
The only difference is in
the original call refers to
But I have not changed camera_app folder, just used already prepared by ARM folder with camera_with_nn (ARM provides ready-to-go camera apps without NN and with NN, here)
And mbed finishes with info
(I know, not much descriptive... but I do not see any ERRORs during building, only:
multiple definition of
orfirst defined here
)So perhaps any known issues reffering to above?
Has anyone tried to complete this guide?
Hints more than welcome.
The text was updated successfully, but these errors were encountered: