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

Refactor out-of-place Detect() for reduced ops #7257

Merged
merged 1 commit into from
Apr 3, 2022

Conversation

glenn-jocher
Copy link
Member

@glenn-jocher glenn-jocher commented Apr 3, 2022

Reduced layers in ONNX, CoreML etc. exports

πŸ› οΈ PR Summary

Made with ❀️ by Ultralytics Actions

🌟 Summary

Enhanced coordinate calculation in YOLOv5 model.

πŸ“Š Key Changes

  • Updated the formula used to calculate the x, y coordinates in bbox prediction.
  • Modified the torch.cat axis parameter in the AWS Inferentia compatible code path.

🎯 Purpose & Impact

  • Ensures more accurate spatial transformations for bbox predictions, potentially leading to better model performance.
  • Correction of the tensor concatenation process ensures proper alignment of the bounding box (bbox) attributes, which could improve inference results on AWS Inferentia-powered devices.

@glenn-jocher glenn-jocher merged commit 4f839b7 into master Apr 3, 2022
@glenn-jocher glenn-jocher deleted the glenn-jocher-patch-1 branch April 3, 2022 17:26
BjarneKuehl pushed a commit to fhkiel-mlaip/yolov5 that referenced this pull request Aug 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant