Find it! project not working

70 views
Skip to first unread message

Saurabh Aggarwal

unread,
Feb 27, 2022, 1:11:39 PM2/27/22
to Machine Learning for Kids
Hi All - The project FIND IT is not working on MIT APP INVENTOR


Capture.PNG

I modified code for other labels: Hand, Face and Phone.

As per the document: https://github.com/IBM/taxinomitis-docs/raw/master/project-worksheets/pdf/worksheet-findit.pdf, it does not need any API KEY. but when I process the app on phone, it asks to use API API key.

Screenshot_20220227-180906-485.png
Any help is appreciated.

Dale Lane

unread,
Feb 27, 2022, 1:22:21 PM2/27/22
to Machine Learning for Kids
The message from App Inventor is referring to the unique key for your Machine Learning for Kids project

It's this code in the URL here
appinventor.png

It's not referring to an API key for IBM Cloud, which like you say, isn't relevant or required for this project.

Dale Lane

unread,
Feb 27, 2022, 1:23:05 PM2/27/22
to Machine Learning for Kids
I'm not sure what more I can add in addition to the error message in your screenshot - the most likely reason for the error is that your App Inventor project is referring to a Machine Learning for Kids project that has been deleted.

Saurabh Aggarwal

unread,
Feb 28, 2022, 4:29:11 AM2/28/22
to Machine Learning for Kids
I understand. The model is TRAINED and working WELL on https://machinelearningforkids.co.uk/ and recognizing the stuff.
However, it's not working on MI2 app.

I adapted the code and recreated the app again with limited functions by following the documentation: https://github.com/IBM/taxinomitis-docs/raw/master/project-worksheets/pdf/worksheet-findit.pdf but still giving error when run on Android.

Could you please check and indicate what could have gone wrong there?

Many thanks in advance.

Capture.PNG

Capture.PNG
Screenshot_20220228-092713-200.png


Dale Lane

unread,
Feb 28, 2022, 5:05:54 AM2/28/22
to Machine Learning for Kids
The image model you train in your browser lives in your web browser. 
Your App Inventor app can't access the local storage in your web browser.
You need to train a model in the App Inventor app. 
You need to use the TrainNewModel block to do this.
You can see examples of this by following the instructions in the worksheets 

Saurabh Aggarwal

unread,
Feb 28, 2022, 6:08:02 AM2/28/22
to Machine Learning for Kids
Hmm, could you please help to locate the relevant document which I could use to add ' TrainNewModel' block? Much appreciated !!!

Dale Lane

unread,
Feb 28, 2022, 6:36:22 AM2/28/22
to Machine Learning for Kids
Add this to your code

screenshot.png

Saurabh Aggarwal

unread,
Feb 28, 2022, 7:20:04 AM2/28/22
to Machine Learning for Kids
I think, it might need something 'more' to train the model by inputting multiple images which I would like to classify? Just adding this won't help I think.

Tried with following, still same issue.

Would it be possible to share a sample code/document which I could refer perhaps? Googling this did not help.
Capture.PNG

Dale Lane

unread,
Feb 28, 2022, 7:22:04 AM2/28/22
to Machine Learning for Kids
You need to add the block somewhere that is executed - blocks in App Inventor that are just floating on the canvas aren't run. 

You could attach it to a new button, add it to one of your existing code blocks, run it at startup.... you just need to run it

Sorry, I was assuming you were familiar with App Inventor so didn't give enough detail before

Saurabh Aggarwal

unread,
Feb 28, 2022, 7:37:44 AM2/28/22
to Machine Learning for Kids
Worked, many thanks for your advise, really appreciated.
Reply all
Reply to author
Forward
0 new messages