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

Support extensive shape for functions related to bounding box localization #10516

Merged
merged 3 commits into from
Dec 17, 2022

Conversation

developer0hye
Copy link
Contributor

@developer0hye developer0hye commented Dec 16, 2022

This PR will make us play with bounding boxes more easily.

Signed-off-by: Yonghye Kwon developer.0hye@gmail.com

πŸ› οΈ PR Summary

Made with ❀️ by Ultralytics Actions

🌟 Summary

Enhancement of bounding box coordinate transformations to support higher dimensional tensors.

πŸ“Š Key Changes

  • Implemented the use of ellipsis (...) in array indexing for box conversion functions (e.g., xyxy2xywh, xywh2xyxy, etc.), which allows these functions to operate on inputs with arbitrary number of dimensions.
  • The changes apply to both PyTorch tensor and NumPy array operations, maintaining functionality across different object types.
  • Adjusted clip_boxes function to support clipping for higher-dimensional tensors utilizing the same ellipsis indexing pattern.

🎯 Purpose & Impact

  • Flexibility: The modifications introduce flexibility in handling bounding boxes, enabling batch processing and multi-dimensional data, leading to cleaner code when dealing with datasets that contain multiple images or annotations.
  • Performance: Batch operations can improve performance, allowing more efficient computations when processing images or video sequences in a machine learning context, specifically within object detection tasks.
  • Consistency: All related functions now follow the same indexing pattern, increasing the maintainability of the codebase.
  • Impact: This will be particularly beneficial for users and developers working on applications involving a high volume of data, such as video analysis or large-scale image processing, ultimately enhancing the YOLOv5's usability in complex machine learning pipelines. πŸš€

…ation

Signed-off-by: Yonghye Kwon <developer.0hye@gmail.com>
@developer0hye developer0hye changed the title support extensive shape for functions related to bounding box localiz… support extensive shape for functions related to bounding box localization Dec 16, 2022
@developer0hye developer0hye changed the title support extensive shape for functions related to bounding box localization Support extensive shape for functions related to bounding box localization Dec 16, 2022
@glenn-jocher glenn-jocher self-assigned this Dec 17, 2022
@glenn-jocher glenn-jocher merged commit 8d65f9d into ultralytics:master Dec 17, 2022
@glenn-jocher
Copy link
Member

@developer0hye PR is merged. Thank you for your contributions to YOLOv5 πŸš€ and Vision AI ⭐

@developer0hye developer0hye deleted the patch-14 branch December 17, 2022 14:42
@developer0hye
Copy link
Contributor Author

developer0hye commented Dec 19, 2022

@glenn-jocher

Hi Jocher!
Is there way to talk with you on a messenger?

@glenn-jocher
Copy link
Member

glenn-jocher commented Dec 19, 2022

@developer0hye yes, you can message me on LinkedIn at https://www.linkedin.com/in/glenn-jocher/ or WhatsApp at +13012376695

@developer0hye
Copy link
Contributor Author

@glenn-jocher Okay, thanks!

@glenn-jocher
Copy link
Member

@developer0hye you're welcome! If you have any more questions or need assistance, feel free to ask here on GitHub. We're always happy to help 😊

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.

2 participants