Closed tino926 closed 1 year ago
Hello, Is the model generated normally? I think you can ignore this WARNING message if tflite model can running normally.
I have tried, and the output int8 model can work normally.
Hi,
After conducting some investigations, I am confident that your tool works great.
I wanted to share some additional information for your reference.
I actually modified yolov5-6.1's exporting code by removing some final layers, which resulted in a .onnx model with three output nodes. However, after using your tool to convert the .onnx model, I noticed that the order of the output nodes in the resulting .tflite model was changed. As a result, my c++ code displayed incorrect detection results due to the mismatched order of the anchors and output nodes. Perhaps there is a way to improve this?
Additionally, would you consider adding the command
edgetpu_compiler -s -a [tflite file] -o [output folder]
to your project to output the edgetpu model altogether?
Hi. I'm glad my tools can help you. For yolov5, tool can work with two format models, one is 3 outputs and one is 1 output(with coordinate processing). About order changed of outputs , I have tried some methods to make it matched, but failed... For edgetpu_compiler, it's not in planning, because I'm not known with it, but welcome for PR.
i am now trying to convert yolov5-6.1's model to tflite int8 model. I use yolov5-6.1's official method (set opset=11) to export pytorch model to onnx model
then i use your method to convert the model from onnx to tflite as:
during the process, i got this WARNING message:
the version of installed packages is: python: 3.8 onnx: 1.13.0 onnxruntime: 1.14.0 numpy: 1.24.2 tensorflow: 2.9.0 opencv-python: 4.7.0 onnx-simplifier: 0.4.17