Skip to content
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

APP error 0 not trained #43

Open
neragr opened this issue Jan 9, 2022 · 9 comments
Open

APP error 0 not trained #43

neragr opened this issue Jan 9, 2022 · 9 comments

Comments

@neragr
Copy link

neragr commented Jan 9, 2022

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.

@dalelane
Copy link
Collaborator

dalelane commented Jan 9, 2022

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

@fcaballero
Copy link

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

@dalelane
Copy link
Collaborator

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
Copy link
Collaborator

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

@fcaballero
Copy link

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

@fcaballero
Copy link

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

@dalelane
Copy link
Collaborator

dalelane commented Mar 20, 2022

@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
Copy link
Collaborator

dalelane commented Mar 20, 2022

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

@fcaballero
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants