Skip to content
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

edgetpu.ftlite is numpy.int8 but Coral only support uint8 input type #13108

Closed
1 task done
oscarhuang1117 opened this issue May 24, 2024 · 2 comments
Closed
1 task done
Labels
question Further information is requested Stale

Comments

@oscarhuang1117
Copy link

Search before asking

Question

I have used this code ( !yolo export model=/content/drive/MyDrive/yolov8/best.pt format=edgetpu ) in Colab, and successfully obtained \best_saved_model\yolov8s-pose_full_integer_quant_edgetpu.tflite.
But when I use yolov8s-pose_full_integer_quant_edgetpu.tflite on my Coral, it tells me ValueError: Only support uint8 input type, then I check my edgetpu.tflite's type, which is numpy.int8.
Please tell me how to solve this problem, thanks!

Additional

No response

@oscarhuang1117 oscarhuang1117 added the question Further information is requested label May 24, 2024
@glenn-jocher
Copy link
Member

@oscarhuang1117 hello! It looks like there's a mismatch between the data types expected by the Coral Edge TPU and the ones produced by the export process. To resolve this, you can modify the export process to ensure the model uses uint8 quantization instead of int8. Unfortunately, direct control over this isn't available through the YOLO CLI or API directly.

However, you can manually adjust the quantization parameters in the TensorFlow code before exporting if you have access to the TensorFlow model conversion scripts. If you're using the Ultralytics export functionality, ensure you're using the latest version as updates and fixes are continuously made.

If the issue persists, consider opening an issue on the Ultralytics GitHub page to get specific help or updates on this matter.

Copy link

👋 Hello there! We wanted to give you a friendly reminder that this issue has not had any recent activity and may be closed soon, but don't worry - you can always reopen it if needed. If you still have any questions or concerns, please feel free to let us know how we can help.

For additional resources and information, please see the links below:

Feel free to inform us of any other issues you discover or feature requests that come to mind in the future. Pull Requests (PRs) are also always welcomed!

Thank you for your contributions to YOLO 🚀 and Vision AI ⭐

@github-actions github-actions bot added the Stale label Jun 24, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jul 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested Stale
Projects
None yet
Development

No branches or pull requests

2 participants