flutter-tflite icon indicating copy to clipboard operation
flutter-tflite copied to clipboard

Is it possible to run more then one TFLite models at the same time on a Flutter App

Open chaoyifei opened this issue 10 months ago • 1 comments

is there any way to use yolov5 and osnet tflite models at same time?

chaoyifei avatar Apr 17 '24 10:04 chaoyifei

Yes it is totally posible, you just need to instantiate two interpreters, each one with their respective model. Then parse the output of each one according to their output tensor. The only thing that may prohibit you of using more than one model, is the available RAM on your device, since allocating the model and the output result requires a specific amount of memory. Also you should try to create the interpreters on different isolates for better perfomance.

DevNim98 avatar Apr 19 '24 14:04 DevNim98