Okay thank you. This could be the issue.
I tried the following:
!pip install --ignore-installed --upgrade tensorflow==2.5.0
But I got problems with software dependencies. Later I should spend time to get it working with version 2.5.0
Do you know how to swith to lib_task_api instead of lib_interpreter?
Thank you so much!! It finally worked with tensorflow 2.5.0 and PyYaml Version 5.1.
We changed the lines inside lib_interpreter, but it did not work. I believe that there must be done more changes inside the android app.
I wish you all the best.
We are aware of a breaking change in TF 2.6 regarding model signature def, resulted in a change in output tensor order of object detection models created by Model Maker. That the root cause of the issue you raised in the first comment. We’re actively working on fixing it. For the time being, please stick to TF 2.5 when training and running Model Maker for object detection.
Hey I am using the salad object detection colab ( Google Colab ) and am running into this exact same error. I followed the instructions to downgrade the tensorflow to 2.5 with PyYaml 5.1 and still getting error. What am I missing?
Yes, I am getting that error. I did see your answer but I am using the Salad detector object demo. When I import the project into Android Studio, there is no file called TFLiteObjectDetionAPIModel.java. So I don’t know how to change the order of the outputs in this project. This is what worked for me with the Salad Objection Demo.
Changed notebook to CPU by editing the notepook settings
Changed the tensorflow version and modelmaker
!pip install -q tensorflow==2.5.0
!pip install -q --use-deprecated=legacy-resolver tflite-model-maker
!pip install -q pycocotools
Ran all the other cells as is and it worked. I was able to generate a model file (model.tflite) and evaluate that file as well as test the performance of that file on a URL image.