-
-
Notifications
You must be signed in to change notification settings - Fork 16.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
*.tflite export #453
Comments
Hello @Mostafa-elgendy, thank you for your interest in our work! Please visit our Custom Training Tutorial to get started, and see our Jupyter Notebook , Docker Image, and Google Cloud Quickstart Guide for example environments. If this is a bug report, please provide screenshots and minimum viable code to reproduce your issue, otherwise we can not help you. If this is a custom model or data training question, please note that Ultralytics does not provide free personal support. As a leader in vision ML and AI, we do offer professional consulting, from simple expert advice up to delivery of fully customized, end-to-end production solutions for our clients, such as:
For more information please visit https://www.ultralytics.com. |
@Mostafa-elgendy the export pipeline is pytorch to onnx to tflite. You can export to onnx following the export tutorial: https://docs.ultralytics.com/yolov5 |
I tried to convert the ONNX file to TFlite. When converting using These issues seem related: |
@bartvollebregt suggest you raise an issue on the relevant repo, and supply them code to reproduce. |
@bartvollebregt I wrote a PR to convert yolov5 to TFLite model with TensorFlow 2.3, try using #959 if you are interested. |
@zldrobit |
@zldrobit Did you get the How did you get around it? |
@BernardinD I ran into this problem when I use different TF versions for converting models and inference. |
@zldrobit I used 1.15.3 in the hopes to avoid having to update my edgetpu version |
@BernardinD , I haven't used an edgetpu. I fail to infer TFLite model on TF 1.15, which is converted with TF 2.3. |
I tried running the TF 2.3 tflite model on TF 1.x and also tried running the Update: turns out I was using the TF 2.3 graph in both attempt. I falsely assumed your conversion script overwrote the previous file but it actually threw an error during the tflite conversion due to fact that TF 1.15.3 doesn't have the Update: After editing your script to include
|
@BernardinD I think this may be a bug of TFLite 1.15. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
did you fix this error? |
@lijianyu1985 We have fixed this problem long ago. Plz use the latest YOLOv5 v6.1 version and try again. |
❔Question
Additional context
I have followed the instruction to train your model on a custom dataset and got "last_yolov5s_results.pt" this weight file.
My question is how to use this file to run the yolov5 model on an android device?
for example how to convert it to tflite
The text was updated successfully, but these errors were encountered: