I trained a custom YOLOv8 model and then exported it as tflite model using the below code.
I then used the instructions under Добавление метаданных в модели LiteRT | Google AI Edge | Google AI for Developers to attach metadata into the tflite model. I then tried to use the tflite model in my flutter application for object detection but unfortunately, I am getting the below error.
The article إضافة بيانات وصفية إلى نماذج LiteRT | Google AI Edge | Google AI for Developers does talk about output metadata but I am not sure how to use it to mitigate the error message “Failed to initialize detector. Mismatch between number of output tensors (2) and output tensors metadata (1).” any help is appreciated!