-
-
Notifications
You must be signed in to change notification settings - Fork 16.4k
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
Cannot copy from a TensorFlowLite tensor (Identity) with shape [1, 6, 8400] to a Java object with shape [1, 80, 80, 21]. #12426
Comments
@HoangBee102 this error indicates a shape mismatch between the TensorFlowLite tensor and the Java object. To resolve this, ensure that the output format of the model matches the input requirements of your application. You might need to reshape or transpose the tensor accordingly. Check the model's output configuration and the input expectations of your Java object for compatibility. If you need further assistance, consider sharing additional details about your inference pipeline, including the model configuration and relevant code snippets. For comprehensive information on YOLOv5 usage, refer to the Ultralytics Docs at https://docs.ultralytics.com/yolov5/. |
`public void setInput(Bitmap resizedbitmap){
My custom train has 2 class, model export from ultralytic hub .tflite Author say me:
Pls help me howto fix??? |
@HoangBee102 i see that you're trying to use a custom YOLOv5 model in a demo app, and it seems you are facing some issues related to the model input and output configurations. It's important to ensure that the input preprocessing in your custom code matches the input requirements of the model and the post-processing matches the model's output format. It looks like there might be a discrepancy between the input processing in your code and the model's expected input format. Regarding the author's suggestion, it would be helpful to review the instruction link provided and confirm if the conversion steps have been followed accurately. For comprehensive guidance on using custom YOLOv5 models, including input preprocessing and output post-processing, I recommend referring to the Ultralytics Docs at https://docs.ultralytics.com/yolov5/. Feel free to provide additional details or code snippets if you need further assistance. |
👋 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 ⭐ |
@HoangBee102 did you sloved the problem? |
Search before asking
Question
Cannot copy from a TensorFlowLite tensor (Identity) with shape [1, 6, 8400] to a Java object with shape [1, 80, 80, 21].
Help me fix this error for my app, pls!
Additional
No response
The text was updated successfully, but these errors were encountered: