kylecorry31 / ML4K-AI-Extension

Use machine learning in AppInventor, with easy training using text, images, or numbers through the Machine Learning for Kids website.
MIT License
20 stars 15 forks source link

Message "Classification for this project is only available in the browser" #41

Open bh26 opened 2 years ago

bh26 commented 2 years ago

Hi, I am going back to an old project I built for an App inventor workshop I am running soon and the app returns this message "class is only available in the browser". I went back to the three steps to be sure the model was trained and updated. the key is still the same . When I connected it through the AI companion I have the same message , including the fact that it showed the status =2 notification message that I had prepared. I even went to import the extension again and needed to rebuild part of the app but got the same problem again. Any idea of what's happening? thanks Bernard

dalelane commented 2 years ago

Support for image ML models in Machine Learning for Kids used to be provided by the IBM Watson service "Visual Recognition".

That service was withdrawn by IBM and is no longer available.

A new version of the App Inventor extension (1.2.0, although this was later updated with fixes in 1.2.1) was released so that image ML models are performed natively inside of App Inventor, to remove the need to make API calls to the IBM cloud service.

You need to update to a newer version of the App Inventor extension that includes this new capability.

bh26 commented 2 years ago

Thanks Dale. Where can I get this new extension?

Bernard Haddad

Le mer. 22 déc. 2021 à 14:18, Dale Lane @.***> a écrit :

Support for image ML models in Machine Learning for Kids used to be provided by the IBM Watson service "Visual Recognition".

That service was withdrawn by IBM and is no longer available.

A new version of the App Inventor extension (1.2.0 https://github.com/kylecorry31/ML4K-AI-Extension/releases/tag/v1.2.0, although this was later updated with fixes in 1.2.1 https://github.com/kylecorry31/ML4K-AI-Extension/releases/tag/v1.2.1) was released so that image ML models are performed natively inside of App Inventor, to remove the need to make API calls to the IBM cloud service.

You need to update to a newer version of the App Inventor extension that includes this new capability.

— Reply to this email directly, view it on GitHub https://github.com/kylecorry31/ML4K-AI-Extension/issues/41#issuecomment-999570998, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFOISAC5RJVMKSNP2ZY6FATUSHF3LANCNFSM5KSQNNWA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

dalelane commented 2 years ago

The Machine Learning for Kids website or this website - the same way you would've gotten it before.

Currently you're still using a version you imported from many months ago. You need to remove that version from your project, then add the current version and use that instead.

bh26 commented 2 years ago

That's what I did before and I repeated it again. The extension I imported has these properties: Extension Version: 5 Date Built: 2021-09-19 But, still, I get "Please train a machine learning model before you try to do this" I did train it a few minutes before. Bernard Haddad -- Disclaimer ---------- Important Note: This e-mail may contain trade secrets or privileged, undisclosed or otherwise confidential information. If you have received this e-mail in error, you are hereby notified that any review, copying or distribution of it is strictly prohibited. Please inform us immediately and destroy the original transmittal. Thank you for your cooperation.

On Wed, Dec 22, 2021 at 4:01 PM Dale Lane @.***> wrote:

The Machine Learning for Kids website or this website - the same way you would've gotten it before.

Currently you're still using a version you imported from many months ago. You need to remove that version from your project, then add the current version and use that instead.

— Reply to this email directly, view it on GitHub https://github.com/kylecorry31/ML4K-AI-Extension/issues/41#issuecomment-999639723, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFOISAE6WBMAJWIHY627TNDUSHR3NANCNFSM5KSQNNWA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

dalelane commented 2 years ago

I did train it a few minutes before.

Where did you do this? How did you do this?

bh26 commented 2 years ago

Hi, Here is a quick recording of what I did in ML4K, then I used this URL to import the extension. In one case I even added a drawing in order to make the training really useful. thanks for your help, https://drive.google.com/file/d/13_rD4XsYqm_OxXMW2eDpDXzvbiLgZcAv/view?usp=sharing

MLK_AI issue.mp4 https://drive.google.com/file/d/13_rD4XsYqm_OxXMW2eDpDXzvbiLgZcAv/view?usp=drive_web

Bernard Haddad -- Disclaimer ---------- Important Note: This e-mail may contain trade secrets or privileged, undisclosed or otherwise confidential information. If you have received this e-mail in error, you are hereby notified that any review, copying or distribution of it is strictly prohibited. Please inform us immediately and destroy the original transmittal. Thank you for your cooperation.

On Wed, Dec 22, 2021 at 11:42 PM Dale Lane @.***> wrote:

I did train it a few minutes before.

Where did you do this? How did you do this?

— Reply to this email directly, view it on GitHub https://github.com/kylecorry31/ML4K-AI-Extension/issues/41#issuecomment-999923208, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFOISAFEU3QRGILRMKHWD7DUSJH4RANCNFSM5KSQNNWA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

dalelane commented 2 years ago

Support for image ML models in Machine Learning for Kids used to be provided by the IBM Watson service "Visual Recognition".

That service was withdrawn by IBM and is no longer available.

A new version of the App Inventor extension was released so that image ML models are performed natively inside of App Inventor, to remove the need to make API calls to the IBM cloud service.

The models are now trained inside the App Inventor project application. The ML model is now trained by the App Inventor extension. The ML model lives inside the App Inventor application. The ML model is created in and exists within the App Inventor application. It never leaves the mobile device.

Training a model on your web browser on your computer doesn't affect any of this.

The new version of the App Inventor extension trains it's own models. Which it does using the new "Train model" block. The App Inventor extension/application can't access your computer or any models you may have trained there.

dalelane commented 2 years ago

But, still, I get "Please train a machine learning model before you try to do this"

That's what this message is telling you. To train a model using the "Train model" block.

bh26 commented 2 years ago

Ok, now I understand. This is now impossible for all image based projects, either Scratch, Python or App inventor. I thought there was something special for App Inventor. That's too bad because I liked your UX especially for the drawings since that does not exist in the Teachable machine site. Is there a plan to move, at least this part to the google based ML? Bernard Haddad -- Disclaimer ---------- Important Note: This e-mail may contain trade secrets or privileged, undisclosed or otherwise confidential information. If you have received this e-mail in error, you are hereby notified that any review, copying or distribution of it is strictly prohibited. Please inform us immediately and destroy the original transmittal. Thank you for your cooperation.

On Thu, Dec 23, 2021 at 6:04 PM Dale Lane @.***> wrote:

Support for image ML models in Machine Learning for Kids used to be provided by the IBM Watson service "Visual Recognition".

That service was withdrawn by IBM and is no longer available.

A new version of the App Inventor extension was released so that image ML models are performed natively inside of App Inventor, to remove the need to make API calls to the IBM cloud service.

The models are now trained inside the App Inventor project application. The ML model is now trained by the App Inventor extension. The ML model lives inside the App Inventor application. The ML model is created in and exists within the App Inventor application. It never leaves the mobile device.

Training a model on your web browser on your computer doesn't affect any of this.

The new version of the App Inventor extension trains it's own models. Which it does using the new "Train model" block. The App Inventor extension/application can't access your computer or any models you may have trained there.

— Reply to this email directly, view it on GitHub https://github.com/kylecorry31/ML4K-AI-Extension/issues/41#issuecomment-1000427464, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFOISAFWAPGBFVSSQECTFSLUSNJAJANCNFSM5KSQNNWA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

dalelane commented 2 years ago

Sorry, I don't know what you mean. What is impossible??

dalelane commented 2 years ago

Would it perhaps be easier if you tried one of the existing projects (e.g. https://github.com/IBM/taxinomitis-docs/raw/master/project-worksheets/pdf/worksheet-judgeabook-appinventor.pdf )? Or at least looked at the instructions for one?

It feels like we're both talking at cross purposes here, as I can't think of anything that isn't possible now the models are hosted on the device

bh26 commented 2 years ago

got it!! This Judgeabook app was an eye opener. As we say in french, "je comprends vite mais il faut m'expliquer longtemps". The only drawback is that this new extension does not work on all of my devices and I don't have too many of these for my workshops. Anyway, it works for me and that's the best thing. Thank you for your help, and have good holidays.

Bernard Haddad -- Disclaimer ---------- Important Note: This e-mail may contain trade secrets or privileged, undisclosed or otherwise confidential information. If you have received this e-mail in error, you are hereby notified that any review, copying or distribution of it is strictly prohibited. Please inform us immediately and destroy the original transmittal. Thank you for your cooperation.

On Sat, Dec 25, 2021 at 9:51 PM Dale Lane @.***> wrote:

Would it perhaps be easier if you tried one of the existing projects (e.g. https://github.com/IBM/taxinomitis-docs/raw/master/project-worksheets/pdf/worksheet-judgeabook-appinventor.pdf )? Or at least looked at the instructions for one?

It feels like we're both talking at cross purposes here, as I can't think of anything that isn't possible now the models are hosted on the device

— Reply to this email directly, view it on GitHub https://github.com/kylecorry31/ML4K-AI-Extension/issues/41#issuecomment-1001071545, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFOISAF6KVL7YNG3JGTL3IDUSYVELANCNFSM5KSQNNWA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

bh26 commented 2 years ago

Hi I built another app using the image processing to identify a figure from the image made with fingers in one hand. i followed the same process but when i ask for training the model in the device i get this error message " unable to process training image" Is there a problem with one image and how to find it?

Thanks, Bernard Haddad

Le dim. 26 déc. 2021 à 11:05, bh26 @.***> a écrit :

got it!! This Judgeabook app was an eye opener. As we say in french, "je comprends vite mais il faut m'expliquer longtemps". The only drawback is that this new extension does not work on all of my devices and I don't have too many of these for my workshops. Anyway, it works for me and that's the best thing. Thank you for your help, and have good holidays.

Bernard Haddad -- Disclaimer ---------- Important Note: This e-mail may contain trade secrets or privileged, undisclosed or otherwise confidential information. If you have received this e-mail in error, you are hereby notified that any review, copying or distribution of it is strictly prohibited. Please inform us immediately and destroy the original transmittal. Thank you for your cooperation.

On Sat, Dec 25, 2021 at 9:51 PM Dale Lane @.***> wrote:

Would it perhaps be easier if you tried one of the existing projects (e.g. https://github.com/IBM/taxinomitis-docs/raw/master/project-worksheets/pdf/worksheet-judgeabook-appinventor.pdf )? Or at least looked at the instructions for one?

It feels like we're both talking at cross purposes here, as I can't think of anything that isn't possible now the models are hosted on the device

— Reply to this email directly, view it on GitHub https://github.com/kylecorry31/ML4K-AI-Extension/issues/41#issuecomment-1001071545, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFOISAF6KVL7YNG3JGTL3IDUSYVELANCNFSM5KSQNNWA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>