TMIC: App Inventor Extension for the Deployment of Image Classification Models Exported from Teachable Machine

I used the URL which is generated when we upload the model. Should I try doing that again from scratch?

Hi, yes I would suggest that - you need to export as Tensorflow.js. I just tried your app with a TM model I trained rapidly just for testing (Teachable Machine) and with this model your app terminates running the model. So I guess the problem is related to the model you exported from Google Teachable Machine.

This gets downloaded as a zip file.
image
How can we use it in MIT App Inventor

Hi you have to upload the Tensorflow.js model and then use the link int the TMIC extension.
GTM-forum

I did the whole process again, it worked, Thanks so much for guiding.

I am glad it worked now! :slightly_smiling_face: It would be great if you could share here the working version of your app (.aia), as we are collecting this kind of app as part of our research at the Federal University of Santa Catarina/Brazil. thanks!

Sure ! It is just the first template as we wanted to test it first. Final version will take time. Thanks !!
Plant_disease_detection.aia (469.4 KB)

Thanks! Success with finalizing the app!

1 Like

Hi.
I'm trying to create an app that recognizes letters, but I don't know why it doesn't work.
ShoutOutV1.aia (2.2 MB)
Can someone please help me?

Hi, I tried your app, and it seems again to be a problem with the TM model, as it never stops the classification. You can check this using just for testing a status label the way I did:
CaptureApp2


I would suggest you try to retrain your tm model and then try again it withing the TMIC to see if the classification stops with this new trained model.

ShoutOutV1 (1).aia (2.2 MB)
Thank you, now it works :smiley:

I am glad it worked now! :slightly_smiling_face: It would be great, if you also could share here the working version of your app (.aia), as we are collecting this kind of app as part of our research at the Federal University of Santa Catarina/Brazil. thanks!

Hi
I am using the above model in my app but it doesnt seem to work . Can someone please help. The model works in the browser. app is attached below, I am using Android 13 google phone, MIT AI Companion recently downloaded.
sultansazligi.aia (1.6 MB)

Hi, what exactely is your problem? I run the the aia with the companion and it executed the teachable model. Yet there is an error msg indicating that some arguments are not found. This may due to the fact that in the TM model you are using labels with special characters "labels":["Çıkrıkçın","kaşıkgaga","Elmabaş Patka","dikkuyruk","Sutavuğu","Sakarmeke","Yalıçapkını","Saksağan","Mavi Baştankara","Flamingo","Ebabil","Uzunbacak","Angıt","Kerkenez","ibibik"], while in your code you use the labels without special characters:


Hope this helps!

Correcting the key names to exactly the names of the labels in the TM model (special characters/ capital letters etc.) the code should execute without error:

Thank you . it is worked. Project is running.

1 Like

I am glad it worked now!

1 Like

how edit webviewer in teachable machine? it shows none and cannot edit but it replies error message due to this property.

Error: You must specify a WebViewer using the WebViewer designer property before you can call ClassifyVideoData

thx

Hello, I am not sure if I understood your question? You have to add an webviewer, which you need to specify as the webviewer as one of TMICs parameters

1 Like

i found that i haven't add the webviewer just like you mentioned. thx.