This project is an example of integration between tflite model and flutter mobile application framework. Resourcecs:
- Clone it
git clone https://github.com/MOo207/starter_tflite_classification_model.git
- Get dependencies
flutter pub get
- When you export your model, jsut copy it in assets/model and update pubspec if required
- Change tf_model_config.dart but make sure that your model is quantized to float16
class TFModelConfig {
// TODO: change the model here
static const assetsModel = "assets/model/model.tflite";
// TODO: Change the labels here
static const assetsLabels = "assets/model/labels.txt";
// TODO: change your assets also
}
- Run the project
flutter run
- You will have all use cases for using tflite with flutter (run on image, run on frame)