ML4K-AI-Extension icon indicating copy to clipboard operation
ML4K-AI-Extension copied to clipboard

APP error 0 not trained

Open neragr opened this issue 4 years ago • 9 comments

Hi, I have trained an image classificator in ml4kids and I have imported the model to app inventor. I have programmed the mobile app following your instructions, but when I try to use it, and classify an image I got the error "0: not trained". I have tested the model in ml4kids, scratch 3 and python and it works. Also I have checked text models and they work properly.

neragr avatar Jan 09 '22 21:01 neragr

You need to train a model in your App Inventor project, using the Train new model block.

dalelane avatar Jan 09 '22 21:01 dalelane

Hi @dalelane, I'm mentoring in Technovation girls programme and my team have the same issue, but it's not clear how exactly we should use that block? BTW in you readme file it says it can be used only for text, is still the case? Thanks

fcaballero avatar Feb 27 '22 18:02 fcaballero

hi @fcaballero

You need to use the Train New Model block in your App Inventor project. That block will train a model.

If you try and use a ML model in your App Inventor project before you create it, you'll get the error described above.

dalelane avatar Feb 27 '22 18:02 dalelane

You may find it easier to start with one of the worksheets which has instructions for how to do this.

Screenshot 2022-02-27 at 18 26 31

dalelane avatar Feb 27 '22 18:02 dalelane

@dalelane Thank you! we''ll check those!

fcaballero avatar Feb 28 '22 08:02 fcaballero

Hi @dalelane, sorry to bother you again, we have followed the tutorials you mentioned above and unfortunately they don't work. It has been more than an hour and we don't see any result, we also tried in our project and with the same result. Do you have another idea what we could do to make it work? thanks in advance Screenshot_20220320-163420

fcaballero avatar Mar 20 '22 15:03 fcaballero

@fcaballero If you send me a copy of your App Inventor project, I can give it a try

I also had a quick run-through of making the project for myself this afternoon to double-check that there wasn't a bug I wasn't aware of. I recorded my screen while doing this - you can see this at https://youtu.be/oBoi3sRwDe0 You may want to have a quick skim through that to compare with what you've done - you might see a difference that explains why your project isn't working

(edit - by the way, YouTube seems to be taking forever to process the screen-recording, so if you only see the fuzzy 360p version, it might be worth waiting a bit until the HD version is available!)

dalelane avatar Mar 20 '22 18:03 dalelane

It has been more than an hour

By the way, I don't think it's worth waiting that long. If it isn't done in a few minutes, I wouldn't expect that to work.

The video at https://www.youtube.com/watch?v=oBoi3sRwDe0 is intentionally unedited so that you can see how long the whole thing should take. Naturally there will be minor differences depending on how slow/fast your Android device is, but that gives you an idea of the ballpark you can expect

dalelane avatar Mar 20 '22 18:03 dalelane

Thank you Dale, we will check the video! :)

fcaballero avatar Mar 21 '22 10:03 fcaballero