flutter-ml / google_ml_kit_flutter

A flutter plugin that implements Google's standalone ML Kit
MIT License
978 stars 746 forks source link

I can't use custom model from teachable machine #410

Closed argyaa closed 1 year ago

argyaa commented 1 year ago

Sorry I am beginner here, I'm learning to use custom model from teachable machine because I can't make my own model but when I use it in my app it throws an error. I just replaced the default model in assets to my own model. is there a tutorial I should learn?

Pinteezy commented 1 year ago

yeah me too I found that for some reason when I exported as quantized model it made the error go away. But I find that it doesn't accept the labels file from teachable machine. So I run this model and it just returns a bunch of empty labels and I am assuming because I can't provide it the labels.txt file teachable machine generates

argyaa commented 1 year ago

yeah me too I found that for some reason when I exported as quantized model it made the error go away. But I find that it doesn't accept the labels file from teachable machine. So I run this model and it just returns a bunch of empty labels and I am assuming because I can't provide it the labels.txt file teachable machine generates

@Pinteezy so how do you show the labels? teach me please

fbernaly commented 1 year ago

From Google's documentation: https://developers.google.com/ml-kit/custom-models