-
-
Notifications
You must be signed in to change notification settings - Fork 16.6k
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
Command 'edgetpu_compiler --version' returned non-zero #6215
Comments
@dariogonle Edge TPU export requires edgetpu_compiler installed on your system. See https://coral.ai/docs/edgetpu/compiler/ |
Thank you so much @glenn-jocher. |
@dariogonle good news 😃! Your original issue may now be fixed ✅ in PR #6223. This PR enables automatic installation of Edge TPU compiler if required during export of Edge TPU models: python export.py --weights yolov5s.pt --include edgetpu To receive this update:
Thank you for spotting this issue and informing us of the problem. Please let us know if this update resolves the issue for you, and feel free to inform us of any other issues you discover or feature requests that come to mind. Happy trainings with YOLOv5 🚀! |
Hi @glenn-jocher,
Apparently, it works fine but the model yolov5n-int8_edgetpu.tflite is not generated. The log says it is, but it's not. What's more it says that it is 0.0MB. The only thing I see that was generated is yolov5n-int8.tflite but I suppose that this is a previous model required to generate the edgtpu model. Another anomaly I've found is that if I run
The export script gives the following error: If I use img-size of 416 it works fine (I mean as with 640), but with 704 it seems to be to big. Is there any explication? EDIT: I run on a terminal
And I got the yolov5n-int8_edgetpu.tflite. There might be a problem here, but I don't see it Lines 308 to 332 in f80c463
|
@dariogonle 👋 hi, thanks for letting us know about this possible problem with YOLOv5 🚀. Your Edge TPU export at --img 704 issue is already explained in the error message in your screenshot "Compilation failed due to large activation tensors in model". Your Edge TPU export for We've created a few short guidelines below to help users provide what we need in order to get started investigating a possible problem. How to create a Minimal, Reproducible ExampleWhen asking a question, people will be better able to provide help if you provide code that they can easily understand and use to reproduce the problem. This is referred to by community members as creating a minimum reproducible example. Your code that reproduces the problem should be:
For Ultralytics to provide assistance your code should also be:
If you believe your problem meets all the above criteria, please close this issue and raise a new one using the 🐛 Bug Report template with a minimum reproducible example to help us better understand and diagnose your problem. Thank you! 😃 |
Search before asking
YOLOv5 Component
Export
Bug
I was trying to export yolov5n.pt to edgetpu running the following command:
It exports correctly the model to TF, but at the time of edge tpu I get the following message:
Does anybody exported it correctly?
Thank you in advance.
Environment
Ubuntu 20.04
Python 3.8.10
Minimal Reproducible Example
No response
Additional
No response
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: