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

Add min_items filter option #9997

Merged
merged 5 commits into from
Nov 1, 2022
Merged

Add min_items filter option #9997

merged 5 commits into from
Nov 1, 2022

Conversation

glenn-jocher
Copy link
Member

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

@AyushExel @Laughing-q dataset filter

Signed-off-by: Glenn Jocher glenn.jocher@ultralytics.com

πŸ› οΈ PR Summary

Made with ❀️ by Ultralytics Actions

🌟 Summary

Implementation of a minimum item filter for dataset images in dataloaders.

πŸ“Š Key Changes

  • Added a new parameter min_items to filter out images with fewer objects than specified.
  • Improved error chaining in exceptions to help debugging.
  • Implemented logic to filter images based on the number of annotated objects.

🎯 Purpose & Impact

  • The min_items parameter allows users to tailor datasets to exclude images with too few objects, which can improve model training relevance and efficiency.
  • Enhanced error messages aid users in troubleshooting dataset loading issues more easily.
  • The change might impact dataset composition by potentially reducing the number of images available for training, but this should lead to more meaningful training if properly configured.

@AyushExel @Laughing-q dataset filter

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
@glenn-jocher glenn-jocher self-assigned this Nov 1, 2022
@glenn-jocher glenn-jocher merged commit c55e2cd into master Nov 1, 2022
@glenn-jocher glenn-jocher deleted the min_items_filter branch November 1, 2022 13:53
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