Skip to content

Conversation

glenn-jocher
Copy link
Member

@glenn-jocher glenn-jocher commented Nov 1, 2022

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

πŸ› οΈ PR Summary

Made with ❀️ by Ultralytics Actions

🌟 Summary

Optimization of image filtering logic in data loader.

πŸ“Š Key Changes

  • Updated the conditional check from len(x) > min_items to len(x) >= min_items for determining which images to include in a dataset.
  • Fixed the logging message to correctly display the number of images filtered from the dataset using n instead of nf.

🎯 Purpose & Impact

  • The modification ensures images with exactly min_items number of annotations will also be included in the dataset, rather than strictly more than min_items.
  • The updated logging message provides accurate feedback on the dataset filtering process, aiding in debugging and dataset understanding.
  • πŸ§‘β€πŸ’» Developers will benefit from more precise dataset creation, and πŸ“ˆ model training may improve due to the inclusion of additional valid images.
  • πŸ–ΌοΈ Users leveraging the Ultralytics YOLOv5 framework for object detection tasks may experience slightly increased dataset sizes and potentially more robust training results.

Signed-off-by: Glenn Jocher <[email protected]>
@glenn-jocher glenn-jocher self-assigned this Nov 1, 2022
@glenn-jocher glenn-jocher merged commit 82a5585 into master Nov 1, 2022
@glenn-jocher glenn-jocher deleted the glenn-jocher-patch-2 branch November 1, 2022 15:41
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