Running .tflite model on android

Hello, I have a real time yolo model. My yolo model detects dinners in the image. Now I want food to be classified by type Ex: image-> evening food(yolo)-> soup(classification). My question : I did train image classification model, but I don’t know how to run it after the yolo model. I would love any help. Thanks…

Hi @Laura1

Do you want to use it with python, java or swift api?

There can be multiple tflite models inside an android application. You have to close() the TensorFlow Lite Interpreter when you do not need it anymore.

Regards

@George_Soloupis hey there, Could you please help…
I am unable to close my custom tflite model that my friend created and deployed on my flutter app.
I am able to run only one instance bcz of this. My app on flutter has to run two tflite models one after the other(based on a few if conditions), but I am unable to close the tflite model, making the app unable to use for a second image.
Would be highly grateful if it could be fixed !

Doesn’t this work?

I tried but it wasnt able to load a model, and I built the same project from scratch, copying most of the part, but on tflite this time instead of tflite_flutter.
I