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

Inline _make_grid() meshgrid #9170

Merged
merged 2 commits into from
Aug 26, 2022
Merged

Inline _make_grid() meshgrid #9170

merged 2 commits into from
Aug 26, 2022

Conversation

glenn-jocher
Copy link
Member

@glenn-jocher glenn-jocher commented Aug 26, 2022

Signed-off-by: Glenn Jocher [email protected]

πŸ› οΈ PR Summary

Made with ❀️ by Ultralytics Actions

🌟 Summary

Refinement of grid generation in YOLOv5 for compatibility adjustment.

πŸ“Š Key Changes

  • Consolidated conditional code for grid generation into a single line.

🎯 Purpose & Impact

  • 🧹 Cleans up the code by removing unnecessary conditionals.
  • πŸš€ Simplifies maintenance by reducing code complexity.
  • ✨ Ensures compatibility with various versions of PyTorch (>=0.7) without altering functionality.

@glenn-jocher glenn-jocher merged commit 5d3d051 into master Aug 26, 2022
@glenn-jocher glenn-jocher deleted the glenn-jocher-patch-1 branch August 26, 2022 13:29
@glenn-jocher glenn-jocher self-assigned this Aug 26, 2022
ctjanuhowski pushed a commit to ctjanuhowski/yolov5 that referenced this pull request Sep 8, 2022
* Inline _make_grid() meshgrid 

Signed-off-by: Glenn Jocher <[email protected]>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Signed-off-by: Glenn Jocher <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
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