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

Clip Objects365 autodownload labels #5214

Merged
merged 1 commit into from
Oct 16, 2021
Merged

Conversation

glenn-jocher
Copy link
Member

@glenn-jocher glenn-jocher commented Oct 16, 2021

Fixes out of bounds labels that seem to affect ~10% of images in dataset.

πŸ› οΈ PR Summary

Made with ❀️ by Ultralytics Actions

🌟 Summary

Upgraded bounding box calculations for Objects365 dataset configuration in YOLOv5.

πŸ“Š Key Changes

  • Imported additional utility functions, including xyxy2xywhn from utils.general.
  • Revised the way bounding box dimensions are calculated, now using xyxy2xywhn for normalization and clipping.

🎯 Purpose & Impact

  • 🎨 Improved Accuracy: Using xyxy2xywhn helps ensure bounding box coordinates are normalized and clipped correctly, which may reduce errors during training and inference.
  • πŸ› οΈ Code Maintainability: Relying on a dedicated utility function for coordinate transformations makes the codebase cleaner and more maintainable.
  • πŸ” Data Quality: Ensures that the bounding box data for the Objects365 dataset is more precise, potentially leading to improved model performance for users working with this dataset.

Fixes out of bounds labels that seem to affect ~10% of images in dataset.
@glenn-jocher glenn-jocher self-assigned this Oct 16, 2021
@glenn-jocher
Copy link
Member Author

Object365 trains with 0 corrupt images with this PR :)

@glenn-jocher glenn-jocher merged commit 6d9b99f into master Oct 16, 2021
@glenn-jocher glenn-jocher deleted the update/objects365_clip branch October 16, 2021 06:19
glenn-jocher added a commit that referenced this pull request Oct 18, 2021
* Clip Objects365 autodownload labels (#5214)

Fixes out of bounds labels that seem to affect ~10% of images in dataset.

* Inplace ops
BjarneKuehl pushed a commit to fhkiel-mlaip/yolov5 that referenced this pull request Aug 26, 2022
* Clip Objects365 autodownload labels (ultralytics#5214)

Fixes out of bounds labels that seem to affect ~10% of images in dataset.

* Inplace ops
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.

1 participant