Wassim Chakroun
Wassim Chakroun

Reputation: 21

How to integrate my own tflite model on Flutter?

I have completed a tensorflow model than converted it correctly to tflite in order to use it in a mobile app using flutter. I didn't know how to integrate a personalized tflite model with flutter. All the available examples use the pretrained models. When I tried my model, the camera launches for a while and stops immediately! enter image description here

I followed the source code from this link which uses the "tflite" pacakge : https://medium.com/@shaqian629/real-time-object-detection-in-flutter-b31c7ff9ef96 I added my own tflite model alongside with other models in all the ".dart" files and in "pubspec.yaml".

Upvotes: 2

Views: 2289

Answers (1)

user19792351
user19792351

Reputation: 21

you can try the 'tflite_flutter' package. 'tflite' package is not suitable for custom trained models as you will get shape incompatible error message

Upvotes: 2

Related Questions