Skip to content

Classify GettingStarted

Getting started

Since this assignment need to use Teachable machine then that mean we are creating our own model


Getting the model

  1. First step is obviously getting the dataset, feel free to pick any theme e.g. fruit
    https://www.kaggle.com/datasets/moltean/fruits
    

kaggle

Get them from there or idk maybe get one yourself

  1. Head to Google Teachable Machine to create .tflite model

    https://teachablemachine.withgoogle.com/train/image
    
    Teachable Machine

  2. Name each class properly and upload your data.
    Step1

  3. Click train and just wait patiently

    mind you this would take a long time depend on your data.

  4. Export model to tflite Step2

  5. Download the model Step3

  6. Unpack the model on assets folder on the root of your flutter project Step7

  7. Add this to pubspec.yaml

      assets:
        - assets/model_unquant.tflite
        - assets/labels.txt
    

mind you the indentation matter

flutter:
  uses-material-design: true

  assets:
    - assets/model_unquant.tflite
    - assets/labels.txt